From a8de41105c41679ca0a775e6482eb9d558a4f866 Mon Sep 17 00:00:00 2001 From: xpamych Date: Sat, 22 Oct 2022 14:53:14 +0300 Subject: [PATCH] add prepare --- strelaysrv/lure.sh | 4 ++++ syncthing/lure.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/strelaysrv/lure.sh b/strelaysrv/lure.sh index a0e9431..e2fdb48 100644 --- a/strelaysrv/lure.sh +++ b/strelaysrv/lure.sh @@ -18,6 +18,10 @@ checksums=('SKIP' 'SKIP' 'SKIP') +prepare() { +cd "${srcdir}" +} + package() { install -Dm755 strelaysrv "${pkgdir}/usr/bin/syncthing-relaysrv" install -Dm644 "${srcdir}/syncthing-relaysrv.service" "${pkgdir}/usr/lib/systemd/system/syncthing-relaysrv.service" diff --git a/syncthing/lure.sh b/syncthing/lure.sh index dbbb9e0..d9f3caf 100644 --- a/syncthing/lure.sh +++ b/syncthing/lure.sh @@ -12,6 +12,10 @@ build_deps=('git' 'go') sources_amd64=("https://github.com/${name}/${name}/releases/download/v${version}/${name}-linux-amd64-v${version}.tar.gz") checksums=('SKIP') +prepare() { +cd "${srcdir}" +} + package() { install -Dm755 syncthing "${pkgdir}/usr/bin/syncthing" install -Dm644 man/strelaysrv.1 "${pkgdir}/usr/share/man/man1/${name}.1"