summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMantas Mikul─Śnas2019-04-29 10:16:11 +0300
committerMantas Mikul─Śnas2019-04-29 10:16:11 +0300
commit6658c2c69ba30ec5ad898028f3da4633ce5496e0 (patch)
tree2a667eb77883732ea9dcb92ca6452b458b70aca5 /PKGBUILD
parent9572a9fa3053b0d9c23ba236e7098ee1ca90ea6e (diff)
downloadaur-oor.tar.gz
work around build system ignoring DESTDIR
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b7748892807..0532c87496a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -28,7 +28,12 @@ build() {
package() {
cd oor
- make PREFIX="/usr/bin/" DESTDIR="$pkgdir" install
+ install -dm755 "$pkgdir"/usr/lib/systemd/system
+ make \
+ DESTDIR="$pkgdir" \
+ PREFIX="/usr/bin/" \
+ SERVICEPREF="$pkgdir/usr/lib/systemd/system/" \
+ install
install -Dm600 oor/oor.conf.example "$pkgdir"/usr/share/doc/"$pkgname"/oor.conf
install -Dm644 "$srcdir"/oor.service "$pkgdir"/usr/lib/systemd/system/oor.service
}