diff options
author | FadeMind | 2016-07-31 09:38:33 +0200 |
---|---|---|
committer | FadeMind | 2016-07-31 09:38:33 +0200 |
commit | 0757a5686a512348e9d46953d73c8c7ba235b572 (patch) | |
tree | f861451bfa41e3ab3c205336f48e1ea2ab85486a /PKGBUILD | |
parent | ebbca5c4bd52b85cde2f168ef428d37d5a3f9f80 (diff) | |
download | aur-0757a5686a512348e9d46953d73c8c7ba235b572.tar.gz |
minor PKGBUILD code improvements
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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" } |