commit e7bef89daa1d0c72010e8badfbc2b173afa683cf Author: Aaron Lindsay Date: Wed Sep 11 22:44:21 2013 -0400 Initial commit diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..c2cedea --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Aaron Lindsay + +pkgname=go-asink-git +pkgver=0.1 +pkgrel=2 +pkgdesc="An open source Dropbox clone" +arch=('x86_64' 'i686') +url="https://github.com/aclindsa/asink" +license=('GPL') +makedepends=('go' 'git') +options=('!strip' '!emptydirs') +source=("asink::git+https://github.com/aclindsa/asink#branch=master") +sha256sums=('SKIP') + +build() { + source /etc/profile.d/go.sh + GOPATH="$srcdir:$GOPATH" + go get -d code.google.com/p/gopass github.com/mattn/go-sqlite3 code.google.com/p/goconf/conf code.google.com/p/go.crypto/openpgp github.com/howeyc/fsnotify github.com/jlaffaye/goftp + + cd $srcdir + if [ ! -d "src/asink" ]; then + ln -s ../asink src/asink + fi + + if [ ! -d "bin" ]; then + mkdir bin + fi + go build -o bin/asink asink/asink + go build -o bin/asinkd asink/asinkd +} + +package() { + cd $srcdir/bin + install -Dm755 "asink" "$pkgdir/usr/bin/asink" + install -Dm755 "asinkd" "$pkgdir/usr/bin/asinkd" + + cd $srcdir/src/asink + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 example_config "$pkgdir/etc/asink/example_config" +}