2013-09-11 22:44:21 -04:00
|
|
|
# Maintainer: Aaron Lindsay <aaron@aclindsay.com>
|
|
|
|
|
|
|
|
pkgname=go-asink-git
|
|
|
|
pkgver=0.1
|
2013-10-12 20:39:33 -04:00
|
|
|
pkgrel=5
|
2013-09-11 22:44:21 -04:00
|
|
|
pkgdesc="An open source Dropbox clone"
|
|
|
|
arch=('x86_64' 'i686')
|
|
|
|
url="https://github.com/aclindsa/asink"
|
|
|
|
license=('GPL')
|
2013-10-12 20:39:33 -04:00
|
|
|
makedepends=('go' 'git' 'mercurial' 'sqlite')
|
2013-09-11 22:44:21 -04:00
|
|
|
options=('!strip' '!emptydirs')
|
2013-10-12 20:39:33 -04:00
|
|
|
source=("tmpfiles_asink.conf")
|
|
|
|
sha256sums=('a3ffee66244aaf41546f98f090990dbe2d4fce1bbd15f8721035484313b9d073')
|
2013-09-11 22:44:21 -04:00
|
|
|
|
|
|
|
build() {
|
|
|
|
source /etc/profile.d/go.sh
|
|
|
|
GOPATH="$srcdir:$GOPATH"
|
|
|
|
|
2013-10-12 20:39:33 -04:00
|
|
|
#get go dependencies
|
|
|
|
go get -d github.com/aclindsa/asink/asink
|
|
|
|
go get -d github.com/aclindsa/asink/asinkd
|
2013-09-11 22:44:21 -04:00
|
|
|
|
2013-10-12 20:39:33 -04:00
|
|
|
cd $srcdir
|
2013-09-11 22:44:21 -04:00
|
|
|
if [ ! -d "bin" ]; then
|
|
|
|
mkdir bin
|
|
|
|
fi
|
2013-10-12 20:39:33 -04:00
|
|
|
|
|
|
|
go build -o bin/asink github.com/aclindsa/asink/asink
|
|
|
|
go build -o bin/asinkd github.com/aclindsa/asink/asinkd
|
2013-09-11 22:44:21 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2013-09-11 23:57:02 -04:00
|
|
|
install -Dm644 tmpfiles_asink.conf "$pkgdir/usr/lib/tmpfiles.d/asink.conf"
|
|
|
|
|
2013-09-11 22:44:21 -04:00
|
|
|
cd $srcdir/bin
|
2013-09-11 23:57:02 -04:00
|
|
|
install -Dm755 asink "$pkgdir/usr/bin/asink"
|
|
|
|
install -Dm755 asinkd "$pkgdir/usr/bin/asinkd"
|
2013-09-11 22:44:21 -04:00
|
|
|
|
2013-10-12 20:39:33 -04:00
|
|
|
cd $srcdir/src/github.com/aclindsa/asink
|
2013-09-11 22:44:21 -04:00
|
|
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
|
|
install -Dm644 example_config "$pkgdir/etc/asink/example_config"
|
|
|
|
}
|