diff options
author | Skycoder42 | 2017-07-16 13:30:50 +0200 |
---|---|---|
committer | Skycoder42 | 2017-07-16 13:30:50 +0200 |
commit | 1873ea4466a04de5388ef80a8be5cbe27c8f957b (patch) | |
tree | 84bb8c28ebf0e22dd098eb33bc9d5b802fd62f92 /PKGBUILD | |
parent | fffbc889c6ca71ee58ae039e80efe1e4bd08e283 (diff) | |
download | aur-iconthemebrowser.tar.gz |
improved build
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 15 insertions, 9 deletions
@@ -1,7 +1,7 @@ # Maintainer: Felix Barz <skycoder42.de@gmx.de> pkgname=iconthemebrowser pkgver=1.1.0 -pkgrel=1 +pkgrel=2 pkgdesc="A small application to browse icon themes available in Qt" arch=('i686' 'x86_64') url="https://github.com/Skycoder42/IconThemeBrowser" @@ -10,23 +10,29 @@ depends=('qt5-base' 'qt5-tools') makedepends=('git' 'qpm') optdepends=('qt5-imageformats: Support for additional icon types' 'qt5-svg: Support for SVG-Icons') -source=("$pkgname-$pkgver::git+https://github.com/Skycoder42/IconThemeBrowser.git#tag=$pkgver") +_pkgfqn=$pkgname-$pkgver +source=("$_pkgfqn::git+https://github.com/Skycoder42/IconThemeBrowser.git#tag=$pkgver") md5sums=('SKIP') -build() { - cd "$pkgname-$pkgver" +prepare() { + mkdir -p build + + cd "$_pkgfqn" qpm install +} - qmake - make qmake_all +build() { + cd build + + qmake -r "../$_pkgfqn/" make } package() { - cd "$pkgname-$pkgver" - + cd build make INSTALL_ROOT="$pkgdir" install - + + cd "../$_pkgfqn" install -D -m644 de.skycoder42.${pkgname}.desktop "$pkgdir/usr/share/applications/de.skycoder42.${pkgname}.desktop" install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |