add prepare

This commit is contained in:
Евгений Храмов 2022-10-22 14:53:14 +03:00
parent 393aec4a50
commit a8de41105c
2 changed files with 8 additions and 0 deletions

@ -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"

@ -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"