extra/qtscriptgenerator to 0.2.0-2

This commit is contained in:
Jason Plum 2013-03-01 16:37:50 -05:00
parent 598194a24f
commit 29f1554d1f

View file

@ -6,7 +6,7 @@
pkgname=qtscriptgenerator
pkgver=0.2.0
pkgrel=1
pkgrel=2
pkgdesc="A tool that generates Qt bindings for Qt Script"
arch=("i686" "x86_64")
url="https://code.google.com/p/qtscriptgenerator/"
@ -31,20 +31,20 @@ build() {
# prepare plugins
cd generator
qmake
qmake-qt4
make
./generator --include-paths=/usr/include
QTDIR=/usr ./generator --include-paths=/usr/include/qt4
# build plugins
cd "${srcdir}"/$pkgname-src-$pkgver/qtbindings
qmake
cd ../qtbindings
qmake-qt4
make
}
package() {
cd "${srcdir}"/$pkgname-src-$pkgver/qtbindings
# move plugins to correct directory
install -d "${pkgdir}"/usr/lib/qt/plugins/script
install -d "${pkgdir}"/usr/lib/qt4/plugins/script
cp -a "${srcdir}"/$pkgname-src-$pkgver/plugins/script/* \
"${pkgdir}"/usr/lib/qt/plugins/script/
"${pkgdir}"/usr/lib/qt4/plugins/script/
}