summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD12
1 files changed, 10 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 452165e8f0a9..86e83c78e787 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# shellcheck disable=SC2034,SC2148,SC2154,SC2164
pkgname=stfed
pkgver=1.0.2
-pkgrel=1
+pkgrel=2
pkgdesc="Synthing folder event daemon"
arch=('x86_64')
url="https://github.com/desbma/${pkgname}"
@@ -12,6 +12,11 @@ makedepends=('cargo')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/desbma/${pkgname}/archive/${pkgver}.tar.gz")
sha512sums=('4d9dc80c8377b53378eb8df678d50636fbdbc7628bd6740a0476e8ce02632e24c04b06c23aae1a37e8c338a9e652b363a24a26015dfd76fe792428805abb40c6')
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ sed -i 's@/usr/local/bin/@/usr/bin/@w /dev/stdout' systemd/${pkgname}.service
+}
+
build() {
cd "${pkgname}-${pkgver}"
cargo build --release --locked
@@ -24,5 +29,8 @@ check() {
package() {
cd "${pkgname}-${pkgver}"
- install -Dm 755 -t "${pkgdir}/usr/bin" ./target/release/${pkgname}
+
+ install -Dm 755 -t "${pkgdir}/usr/bin/" ./target/release/${pkgname}
+
+ install -Dm 644 -t "${pkgdir}/usr/lib/systemd/user/" systemd/${pkgname}.service
}