summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Queiroz2017-04-16 22:00:54 -0300
committerJonathan Queiroz2017-04-16 22:27:49 -0300
commitd95283047ff0cd84b721704c6060effaf8fe42e1 (patch)
treeaa0449e0159e460b5e160cc8629aa945922aa102
downloadaur-d95283047ff0cd84b721704c6060effaf8fe42e1.tar.gz
Initial commit.
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD31
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b4ddb9bafc0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = go-megaannex-git
+ pkgdesc = A git-annex special remote using mega
+ pkgver = 0
+ pkgrel = 1
+ url = https://github.com/dxtr/megaannex-go
+ arch = x86_64
+ arch = i686
+ license = MIT
+ depends = git-annex
+ depends = go
+ options = !strip
+ options = !emptydirs
+ source = git+https://github.com/dxtr/megaannex-go
+ sha512sums = SKIP
+
+pkgname = go-megaannex-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a57227504f9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: johnjq <dev [at] johnjq (dot) com>
+
+pkgname=go-megaannex-git
+pkgver=0
+pkgrel=1
+pkgdesc="A git-annex special remote using mega"
+arch=("x86_64" "i686")
+url="https://github.com/dxtr/megaannex-go"
+license=("MIT")
+depends=("git-annex" "go")
+options=("!strip" "!emptydirs")
+source=("git+https://github.com/dxtr/megaannex-go")
+sha512sums=("SKIP")
+_go_mega_url=("github.com/t3rm1n4l/go-mega")
+
+#pkgver() {
+ #cd "$srcdir/megaannex-go"
+ #git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+#}
+
+build() {
+ export GOPATH="$srcdir"
+ go get -fix -v -x "${_go_mega_url}"
+ (cd "$srcdir/megaannex-go" && go build)
+}
+
+package() {
+ cd "$srcdir/megaannex-go"
+ install -Dm755 "megaannex-go" "$pkgdir/usr/bin/git-annex-remote-mega"
+ install -m 644 -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}