diff options
author | Michael Straube | 2017-06-28 18:37:13 +0200 |
---|---|---|
committer | Michael Straube | 2017-06-28 18:37:13 +0200 |
commit | a83431b0d04bbf1fef3bd6ba6094409877e3e33d (patch) | |
tree | 208c2419106ec8878c52d69ead9e59db528d9e5c | |
parent | c9fe3817032522206ca136cf363332165eb2707e (diff) | |
download | aur-a83431b0d04bbf1fef3bd6ba6094409877e3e33d.tar.gz |
Build out-of-tree
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 14 |
2 files changed, 9 insertions, 7 deletions
@@ -10,7 +10,7 @@ pkgbase = leocad depends = qt5-base depends = hicolor-icon-theme source = leocad-17.02.tar.gz::https://github.com/leozide/leocad/archive/v17.02.tar.gz - source = https://github.com/leozide/leocad/releases/download/v17.02/Library-Linux-9781.zip + source = leocad-17.02-library.zip::https://github.com/leozide/leocad/releases/download/v17.02/Library-Linux-9781.zip sha256sums = 5d3d00a559dc74aed4b2605a8e0ab30722b34267102c57d34d9f0c9f5369df25 sha256sums = e3af3ca4eb1ba1c4ee820343876a8be5f8c39bf69c51400a1db176a188f780a8 @@ -12,22 +12,24 @@ license=('GPL') depends=('qt5-base' 'hicolor-icon-theme') makedepends=('qt5-tools') source=("$pkgname-$pkgver.tar.gz::https://github.com/leozide/leocad/archive/v$pkgver.tar.gz" - "https://github.com/leozide/leocad/releases/download/v$pkgver/Library-Linux-9781.zip") + "$pkgname-$pkgver-library.zip::https://github.com/leozide/leocad/releases/download/v$pkgver/Library-Linux-9781.zip") sha256sums=('5d3d00a559dc74aed4b2605a8e0ab30722b34267102c57d34d9f0c9f5369df25' 'e3af3ca4eb1ba1c4ee820343876a8be5f8c39bf69c51400a1db176a188f780a8') -build() { - cd $pkgname-$pkgver +prepare() { + mkdir -p build +} - qmake-qt5 \ +build() { + cd build + qmake-qt5 ../$pkgname-$pkgver \ INSTALL_PREFIX=/usr \ DISABLE_UPDATE_CHECK=1 make } package() { - cd $pkgname-$pkgver - + cd build make INSTALL_ROOT="$pkgdir" install install -Dm644 ../library.bin "$pkgdir"/usr/share/leocad/library.bin } |