summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoraksr2015-11-24 17:58:15 +0100
committeraksr2015-11-24 17:58:15 +0100
commit1ac18ca2f0bbb6ddd54d0f16cac41f5be786395e (patch)
tree0d75a093528db1fa2aeeb4b8f3593c48796e28f3
parent02c57e942e0a41a697c5fb985ef4b550baf54893 (diff)
downloadaur-1ac18ca2f0bbb6ddd54d0f16cac41f5be786395e.tar.gz
Generalization.
-rw-r--r--PKGBUILD11
1 files changed, 6 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 953b2a7b557..310897b9d1f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -31,14 +31,15 @@ build() {
package() {
prefix="/usr"
manprefix="$prefix/share/man"
- licenseprefix="/usr"
+ licenseprefix="$prefix/share/licenses/$pkgname"
+ docprefix="$prefix/share/doc/$pkgname"
cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir" PREFIX="$prefix" MANPREFIX="$manprefix" install
- install -Dm644 LICENSE $pkgdir/$licenseprefix/share/licenses/$pkgname/LICENSE
+ install -Dm644 LICENSE $pkgdir/$licenseprefix/LICENSE
cd "$srcdir/opt"
make DESTDIR="$pkgdir" PREFIX="$prefix" MANPREFIX="$manprefix" install
- mkdir -p "$pkgdir/$prefix/share/doc/wmutils/examples"
- install -Dm644 ../contrib/*.sh $pkgdir/$prefix/share/doc/wmutils/examples
- install -m755 ../contrib/killwa/killwa $pkgdir/$prefix/bin/killwa
+ mkdir -p "$pkgdir/$docprefix/examples"
+ install -Dm644 ../contrib/*.sh $pkgdir/$docprefix/examples
+ install -Dm755 ../contrib/killwa/killwa $pkgdir/$prefix/bin/killwa
}