diff options
Diffstat (limited to 'extra/qtscriptgenerator/PKGBUILD')
-rw-r--r-- | extra/qtscriptgenerator/PKGBUILD | 56 |
1 files changed, 34 insertions, 22 deletions
diff --git a/extra/qtscriptgenerator/PKGBUILD b/extra/qtscriptgenerator/PKGBUILD index 7e9773a58..328e6d28e 100644 --- a/extra/qtscriptgenerator/PKGBUILD +++ b/extra/qtscriptgenerator/PKGBUILD @@ -1,38 +1,50 @@ -# $Id: PKGBUILD 75658 2010-04-02 04:17:23Z pierre $ +# $Id: PKGBUILD 145770 2011-12-30 11:51:06Z andrea $ # Maintainer: Tobias Powalowski <tpowa@archlinux.org> pkgname=qtscriptgenerator pkgver=0.1.0 -pkgrel=4 -pkgdesc="Script generator for qt" +pkgrel=5 +pkgdesc="A tool that generates Qt bindings for Qt Script" arch=("i686" "x86_64") -url="http://code.google.com/p/qtscriptgenerator/" +url="https://code.google.com/p/qtscriptgenerator/" license=('GPL') -depends=('qt' 'phonon') +depends=('qt' 'phonon' 'qtwebkit') 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') +source=("https://qtscriptgenerator.googlecode.com/files/${pkgname}-src-${pkgver}.tar.gz" + 'no-phonon.patch' + 'gcc44.patch' + 'qt48.patch' + 'phonon.patch') +sha1sums=('eeae733106369e289f257b754822bc372fd6ba75' + 'c50b26e6504f5c981a916860d9c3929e436e1067' + '87cd599403fa9bb441ddc27c77e0b6242e2cc150' + '5487e2ed1ce4d35b48b3433dc5cc2a1752a03ff1' + 'cca1cd546628a10a91475a82fe12ad2e4066a7d0') build() { - cd $srcdir/$pkgname-src-$pkgver/generator - patch -p1 -i $srcdir/qtscriptgenerator-gcc44.patch || return 1 + cd "${srcdir}"/$pkgname-src-$pkgver + + patch -p0 -i "${srcdir}"/gcc44.patch + patch -p1 -i "${srcdir}"/phonon.patch + patch -p1 -i "${srcdir}"/qt48.patch + patch -p1 -i "${srcdir}"/no-phonon.patch + # prepare plugins - patch -Np2 -i $srcdir/phonon.patch || return 1 - qmake || return 1 - make || return 1 - ./generator --include-paths=/usr/include || return 1 + cd generator + qmake + make + ./generator --include-paths=/usr/include + # build plugins - cd "$srcdir/$pkgname-src-$pkgver/qtbindings" - qmake || return 1 - make || return 1 + cd "${srcdir}"/$pkgname-src-$pkgver/qtbindings + qmake + make } package() { - cd "$srcdir/$pkgname-src-$pkgver/qtbindings" + 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/ + install -d "${pkgdir}"/usr/lib/qt/plugins/script + mv "${srcdir}"/$pkgname-src-$pkgver/plugins/script/* \ + "${pkgdir}"/usr/lib/qt/plugins/script/ } |