summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMantas Mikul─Śnas2015-09-16 21:02:50 +0300
committerMantas Mikul─Śnas2015-09-16 21:02:50 +0300
commit99a3999fa23b685405d4f07034dc003a7676b799 (patch)
treecbf43bb15e70f9d436c33c39dfd1b4af9b8357ae
parent7bc9e5a8b9d485505659e66eca6ca4a4ea1acbf3 (diff)
downloadaur-99a3999fa23b685405d4f07034dc003a7676b799.tar.gz
move to /usr/bin
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 8 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bbbb7be50da..2bba8a417d8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = cachefilesd
pkgdesc = Userspace daemon acting as a backend for FS-Cache
pkgver = 0.10.5
- pkgrel = 1
+ pkgrel = 2
url = http://people.redhat.com/~dhowells/fscache/
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 71fe183a967..7c202ec55ec 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=cachefilesd
pkgver=0.10.5
-pkgrel=1
+pkgrel=2
pkgdesc="Userspace daemon acting as a backend for FS-Cache"
arch=('i686' 'x86_64')
url="http://people.redhat.com/~dhowells/fscache/"
@@ -15,6 +15,11 @@ sha256sums=('125ea4f6aef4bf8e936a7cc747b59e074537a8aed74cd1bab3f05d7fbc47287f'
'aa889fcbc2ca59aed2be4ef586c3039ceadc6bc5969398a175a77c63ccbe11e0')
backup=(etc/cachefilesd.conf)
+prepare() {
+ cd "$pkgname-$pkgver"
+ sed -i "s#/sbin/#/usr/bin/#g" cachefilesd.{c,service}
+}
+
build() {
cd "$pkgname-$pkgver"
make CFLAGS="$CFLAGS"
@@ -22,7 +27,7 @@ build() {
package() {
cd "$pkgname-$pkgver"
- make DESTDIR="$pkgdir" install
+ make DESTDIR="$pkgdir" SBINDIR=/usr/bin install
install -D -m 644 "$srcdir/cachefilesd.service" "$pkgdir/usr/lib/systemd/system/cachefilesd.service"
}