summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKr1ss2019-01-30 20:28:06 +0100
committerKr1ss2019-01-30 20:28:06 +0100
commita7237039d508b542f283edf58280a2460ae8ca99 (patch)
tree02c110befa2a2c344c13a5806b1180ff7d63adc1
parent719a5c5e1e0225d22ba7768fcb0dac72b03e9de5 (diff)
downloadaur-hget-git.tar.gz
pick up the package, simplify PKGBUILD
-rw-r--r--.SRCINFO2
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD24
3 files changed, 15 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b14f4b6514f..8dd5047d77e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = hget-git
pkgdesc = Rocket fast, interruptable, resumable download accelerator written in Golang
- pkgver = r30.03213a9
+ pkgver = r32.8cff5f7
pkgrel = 1
url = https://github.com/huydx/hget
arch = x86_64
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..c6a9b954b0e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*
+
+!.gitignore
+!PKGBUILD
+!.SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
index f5afd8a8fc4..d0629bf74d3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,12 +1,13 @@
-# Maintainer: Edgar Fournival <contact at edgar-fournival dot fr>
+# Maintainer: Kr1ss <kr1ss.x@yandex.com>
+# Contributor: Edgar Fournival <contact at edgar-fournival dot fr>
pkgname=hget-git
_pkgname=hget
-pkgver=r30.03213a9
+_vendor="github.com/huydx"
+pkgver=r32.8cff5f7
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')
@@ -15,23 +16,16 @@ source=("git+$url.git")
md5sums=('SKIP')
pkgver() {
- cd $GOPATH/$_vendor/$_pkgname
+ cd "$_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
+ cd "$_pkgname"
+ make 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"
+ install -Dm755 "$_pkgname/bin/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
+ install -Dm644 "$_pkgname/LICENSE.txt" "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}