Commit fef722cd authored by Carlo Landmeter's avatar Carlo Landmeter
Browse files

community/syncthing13: set proper builddir

parent 2faf2ed8
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment