summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex W2019-10-07 01:55:55 +0100
committerAlex W2019-10-07 01:55:55 +0100
commit052831040e018bfd914e8101254b8605721c0e71 (patch)
treef82e5352d435154c1516e219965fc737ce36b491
parent82bb57113458a5a47050ee35163d8f67b31a8a24 (diff)
downloadaur-052831040e018bfd914e8101254b8605721c0e71.tar.gz
fix licence install
-rw-r--r--PKGBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f0f577a39d7..bbb5cf3be8a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,13 +27,14 @@ build() {
}
package() {
+ cd "$_gitname"
mkdir -p "$pkgdir/usr/bin"
install -p -m755 "$srcdir/$_gitname/$_gitname" "$pkgdir/usr/bin"
# Package license (if available)
for f in LICENSE COPYING LICENSE.* COPYING.*; do
- if [ -e "$srcdir/src/$_gourl/$f" ]; then
- install -Dm644 "$srcdir/src/$_gourl/$f" \
+ if [ -e "$f" ]; then
+ install -Dm644 "$f" \
"$pkgdir/usr/share/licenses/$_gitname/$f"
fi
done