diff options
author | Skycoder42 | 2017-07-16 13:13:42 +0200 |
---|---|---|
committer | Skycoder42 | 2017-07-16 13:13:42 +0200 |
commit | 0392d68007fb30f30d0489972c08be8224ea8888 (patch) | |
tree | 50f6e3d2d62dc4d788c1af09b80b1c813b219cbf | |
parent | fcbe721a33143be0cd2a99f5cb4cff35cbcc908e (diff) | |
download | aur-0392d68007fb30f30d0489972c08be8224ea8888.tar.gz |
modify to run like official builds
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 17 insertions, 15 deletions
@@ -1,7 +1,7 @@ pkgbase = qt5-backgroundprocess pkgdesc = A Library to create background applications with simple, automated foreground control pkgver = 1.5.1 - pkgrel = 2 + pkgrel = 3 url = https://github.com/Skycoder42/QtBackgroundProcess arch = i686 arch = x86_64 @@ -1,33 +1,35 @@ # Maintainer: Felix Barz <skycoder42.de@gmx.de> pkgname=qt5-backgroundprocess pkgver=1.5.1 -pkgrel=2 +pkgrel=3 pkgdesc="A Library to create background applications with simple, automated foreground control" arch=('i686' 'x86_64') url="https://github.com/Skycoder42/QtBackgroundProcess" license=('BSD') depends=('qt5-base' 'qt5-tools') makedepends=('git') -source=("$pkgname-$pkgver::git+https://github.com/Skycoder42/QtBackgroundProcess.git#tag=$pkgver") +_pkgfqn=$pkgname-$pkgver +source=("$_pkgfqn::git+https://github.com/Skycoder42/QtBackgroundProcess.git#tag=$pkgver") md5sums=('SKIP') +prepare() { + mkdir -p build +} + build() { - cd "$pkgname-$pkgver" - git submodule update --init --recursive + cd build - qmake - make qmake_all + qmake -r "../$_pkgfqn/" make } package() { - cd "$pkgname-$pkgver" - + cd build make INSTALL_ROOT="$pkgdir" install - - FILE=$pkgdir/usr/lib/libQt5BackgroundProcess.prl - tail -n +2 "$FILE" > "$FILE.tmp" - mv "$FILE.tmp" "$FILE" - - install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # Drop QMAKE_PRL_BUILD_DIR because reference the build dir + find "$pkgdir/usr/lib" -type f -name '*.prl' \ + -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; + + install -D -m644 "../$_pkgfqn/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |