summaryrefslogtreecommitdiff
path: root/extra/qtscriptgenerator/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/qtscriptgenerator/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/qtscriptgenerator/PKGBUILD')
-rw-r--r--extra/qtscriptgenerator/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/extra/qtscriptgenerator/PKGBUILD b/extra/qtscriptgenerator/PKGBUILD
new file mode 100644
index 000000000..7e9773a58
--- /dev/null
+++ b/extra/qtscriptgenerator/PKGBUILD
@@ -0,0 +1,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/
+}