summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFadeMind2016-07-31 09:38:33 +0200
committerFadeMind2016-07-31 09:38:33 +0200
commit0757a5686a512348e9d46953d73c8c7ba235b572 (patch)
treef861451bfa41e3ab3c205336f48e1ea2ab85486a /PKGBUILD
parentebbca5c4bd52b85cde2f168ef428d37d5a3f9f80 (diff)
downloadaur-0757a5686a512348e9d46953d73c8c7ba235b572.tar.gz
minor PKGBUILD code improvements
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD12
1 files changed, 6 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3cdcf9c1f196..12689d0cd62b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -18,7 +18,10 @@ sha256sums=('987b9a5b35e5f6bef36830184bd0ab2f200a7d7525216320a379ed1a1ef24b0f')
prepare() {
mv $srcdir/$pkgname-$_gitcommit $srcdir/$pkgname
- mkdir -p build
+ if [[ -d build ]]; then
+ rm -Rf build
+ fi
+ mkdir -p build
}
build() {
@@ -30,10 +33,7 @@ build() {
}
package() {
- cd build
- make DESTDIR="$pkgdir" install
-
- cd ../$pkgname
- install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ make -C build DESTDIR="$pkgdir" install
+ install -Dm644 $pkgname/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}