aboutsummaryrefslogtreecommitdiffstats
path: root/community/syncthing13/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/syncthing13/APKBUILD')
-rw-r--r--community/syncthing13/APKBUILD12
1 files changed, 7 insertions, 5 deletions
diff --git a/community/syncthing13/APKBUILD b/community/syncthing13/APKBUILD
index ddd3c66774..393d44dfba 100644
--- a/community/syncthing13/APKBUILD
+++ b/community/syncthing13/APKBUILD
@@ -22,15 +22,17 @@ source="$_realname-$pkgver.tar.gz::https://github.com/syncthing/syncthing/archiv
$_realname.confd
$_realname.initd"
-_builddir="$srcdir/src/github.com/$_realname"
+
+builddir="$srcdir/src/github.com/$_realname"
+
prepare() {
default_prepare
- mkdir -p "$_builddir"
- ln -s "$srcdir"/$_realname-$pkgver "$_builddir"/$_realname || return 1
+ mkdir -p "$builddir"
+ ln -s "$srcdir"/$_realname-$pkgver "$builddir"/$_realname || return 1
}
build() {
- cd "$_builddir"/$_realname
+ cd "$builddir"/$_realname
GOPATH="$srcdir" go run build.go -no-upgrade -version=v$pkgver
}
@@ -38,7 +40,7 @@ package() {
mkdir -p "$pkgdir"/usr/bin || return 1
install -d -o $_realname -g $_realname \
"$pkgdir"/var/lib/$_realname || return 1
- mv "$_builddir"/$_realname/bin/* \
+ mv "$builddir"/$_realname/bin/* \
"$pkgdir"/usr/bin || return 1
install -D -m755 "$srcdir"/$_realname.initd \
"$pkgdir"/etc/init.d/$_realname || return 1