summaryrefslogtreecommitdiff
path: root/extra/qtscriptgenerator/PKGBUILD
blob: 7e9773a5815c7db521c38b99c17826d731820c73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $Id: PKGBUILD 75658 2010-04-02 04:17:23Z pierre $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname=qtscriptgenerator
pkgver=0.1.0
pkgrel=4
pkgdesc="Script generator for qt"
arch=("i686" "x86_64")
url="http://code.google.com/p/qtscriptgenerator/"
license=('GPL')
depends=('qt' 'phonon')
makedepends=('pkgconfig' 'mesa')
source=(http://qtscriptgenerator.googlecode.com/files/qtscriptgenerator-src-0.1.0.tar.gz
        phonon.patch
        qtscriptgenerator-gcc44.patch)
md5sums=('ca4046ad4bda36cd4e21649d4b98886d' 'c0266892ecc645b3407f2203ee11a808'\
         'a3d48d6a3cfdd9be397bef01d3e4f638')

build() {
  cd $srcdir/$pkgname-src-$pkgver/generator
  patch -p1 -i $srcdir/qtscriptgenerator-gcc44.patch || return 1
  # prepare plugins
  patch -Np2 -i $srcdir/phonon.patch || return 1
  qmake || return 1
  make || return 1
  ./generator --include-paths=/usr/include || return 1
  # build plugins
  cd "$srcdir/$pkgname-src-$pkgver/qtbindings"
  qmake || return 1
  make || return 1
}

package() {
  cd "$srcdir/$pkgname-src-$pkgver/qtbindings"
  # move plugins to correct directory
  mkdir -p $pkgdir/usr/lib/qt/plugins/script
  mv $srcdir/$pkgname-src-$pkgver/plugins/script/* $pkgdir/usr/lib/qt/plugins/script/
}