summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdgar Fournival2016-08-13 23:58:39 +0000
committerEdgar Fournival2016-08-13 23:58:39 +0000
commit719a5c5e1e0225d22ba7768fcb0dac72b03e9de5 (patch)
tree3bb2a839cdc50888ea545612eef9ef68788abcda
downloadaur-719a5c5e1e0225d22ba7768fcb0dac72b03e9de5.tar.gz
hget-git r30.03213a9
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD37
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b14f4b6514f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = hget-git
+ pkgdesc = Rocket fast, interruptable, resumable download accelerator written in Golang
+ pkgver = r30.03213a9
+ pkgrel = 1
+ url = https://github.com/huydx/hget
+ arch = x86_64
+ arch = i686
+ license = MIT
+ makedepends = git
+ makedepends = go
+ provides = hget
+ source = git+https://github.com/huydx/hget.git
+ md5sums = SKIP
+
+pkgname = hget-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f5afd8a8fc4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Edgar Fournival <contact at edgar-fournival dot fr>
+
+pkgname=hget-git
+_pkgname=hget
+pkgver=r30.03213a9
+pkgrel=1
+pkgdesc="Rocket fast, interruptable, resumable download accelerator written in Golang"
+arch=('x86_64' 'i686')
+_vendor="github.com/huydx"
+url="https://$_vendor/$_pkgname"
+license=('MIT')
+makedepends=('git' 'go')
+provides=('hget')
+source=("git+$url.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd $GOPATH/$_vendor/$_pkgname
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ mkdir -p ./$_vendor
+ mv $_pkgname ./$_vendor
+ export GOPATH=$PWD
+}
+
+build() {
+ cd $GOPATH/$_vendor/$_pkgname
+ make clean install
+}
+
+package() {
+ install -Dm755 "$srcdir/$_vendor/$_pkgname/bin/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
+ install -Dm644 "$srcdir/$_vendor/$_pkgname/LICENSE.txt" \
+ "$pkgdir/usr/share/licenses/$_pkgname/LICENSE.txt"
+}