PKGBUILDs/extra/qtscriptgenerator/PKGBUILD

57 lines
1.5 KiB
Bash
Raw Normal View History

2017-01-21 00:22:59 +00:00
# $Id$
2012-06-06 20:29:23 +00:00
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - fix ARM FTBFS
pkgname=qtscriptgenerator
pkgver=0.2.0
2017-01-21 00:22:59 +00:00
pkgrel=5
2012-06-06 20:29:23 +00:00
pkgdesc="A tool that generates Qt bindings for Qt Script"
arch=("i686" "x86_64")
url="https://code.google.com/p/qtscriptgenerator/"
license=('GPL')
2017-01-21 00:22:59 +00:00
depends=('qt4')
2012-06-06 20:29:23 +00:00
makedepends=('pkgconfig' 'mesa')
2017-01-21 00:22:59 +00:00
source=("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$pkgname/$pkgname-src-$pkgver.tar.gz"
2012-06-06 20:29:23 +00:00
'phonon.patch'
'no-phonon.patch'
'upstream_arm_fix_ftbfs.diff')
sha1sums=('4c1078f26b196156e857c17c9d11a66cfea66f00'
'cca1cd546628a10a91475a82fe12ad2e4066a7d0'
2017-01-21 00:22:59 +00:00
'99e4c14eb00eed5fcd7fb6e87b0286ab733b80b4'
2012-06-06 20:29:23 +00:00
'049b21e33144b738cd1a62315d251f8e45643804')
2017-01-21 00:22:59 +00:00
prepare() {
cd $pkgname-src-$pkgver
# Don't build webkit or phonon bindings
sed -e '/webkit/d' -e '/phonon/d' -i qtbindings/qtbindings.pro
2012-06-06 20:29:23 +00:00
patch -p1 -i "${srcdir}"/phonon.patch
patch -p1 -i "${srcdir}"/no-phonon.patch
patch -p1 -i "${srcdir}"/upstream_arm_fix_ftbfs.diff
2017-01-21 00:22:59 +00:00
}
build() {
cd $pkgname-src-$pkgver
2012-06-06 20:29:23 +00:00
# prepare plugins
cd generator
2013-03-01 21:37:50 +00:00
qmake-qt4
2012-06-06 20:29:23 +00:00
make
2013-03-01 21:37:50 +00:00
QTDIR=/usr ./generator --include-paths=/usr/include/qt4
2012-06-06 20:29:23 +00:00
# build plugins
2013-03-01 21:37:50 +00:00
cd ../qtbindings
qmake-qt4
2012-06-06 20:29:23 +00:00
make
}
package() {
2017-01-21 00:22:59 +00:00
cd $pkgname-src-$pkgver/qtbindings
2012-06-06 20:29:23 +00:00
# move plugins to correct directory
2013-03-01 21:37:50 +00:00
install -d "${pkgdir}"/usr/lib/qt4/plugins/script
2012-06-06 20:29:23 +00:00
cp -a "${srcdir}"/$pkgname-src-$pkgver/plugins/script/* \
2013-03-01 21:37:50 +00:00
"${pkgdir}"/usr/lib/qt4/plugins/script/
2012-06-06 20:29:23 +00:00
}