aboutsummaryrefslogtreecommitdiffstats
path: root/community/syncthing13/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-08-01 14:42:01 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2016-08-01 14:42:01 +0200
commitfef722cdfd859073c37ec8386932ed0ac4d6eb1c (patch)
tree0fdeb80934c250417f62e33be299cf18dbe46e2f /community/syncthing13/APKBUILD
parent2faf2ed81e07194fe82325bea6a73c9df6153362 (diff)
downloadaports-fef722cdfd859073c37ec8386932ed0ac4d6eb1c.tar.bz2
aports-fef722cdfd859073c37ec8386932ed0ac4d6eb1c.tar.xz
community/syncthing13: set proper builddir
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