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