summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD20
2 files changed, 19 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f987add..02a9b0f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = grv
pkgdesc = terminal interface for viewing git repositories
- pkgver = v0.1.3
+ pkgver = 0.1.3
pkgrel = 1
url = https://github.com/rgburke/grv
arch = i686
@@ -11,8 +11,8 @@ pkgbase = grv
depends = curl
provides = grv
conflicts = grv
- source = https://github.com/rgburke/grv/releases/download/v0.1.3/grv_v0.1.3_linux64
- sha512sums = f65d558c0a5a9bfad6b34220b5df36584af7c021780758dbdc8714bb8fa5326a844f79e9a731aae3217ec22009583d6ca590dfe980dfccc1152573807952999a
+ source = https://github.com/rgburke/grv/releases/download/v0.1.3/grv-0.1.3-src.tar.gz
+ sha512sums = 5b579a8ddbe3e261301e22b7f1e9384ed2dbb2fa1c3355619da00bde2e81520822bf796828b5c56711074b9579aacd1178d661df787ef9636404c8fbada1f5aa
pkgname = grv
diff --git a/PKGBUILD b/PKGBUILD
index 333d9be..212bc12 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: neodarz <neodarz@neodarz.net>
pkgname=grv
-pkgver=v0.1.3
+pkgver=0.1.3
pkgrel=1
pkgdesc="terminal interface for viewing git repositories"
arch=('i686' 'x86_64')
@@ -10,11 +10,23 @@ license=('GPL-3.0')
depends=(ncurses readline curl)
provides=("$pkgname")
conflicts=("$pkgname")
-source=("https://github.com/rgburke/grv/releases/download/$pkgver/grv_"$pkgver"_linux64")
+source=("https://github.com/rgburke/grv/releases/download/v$pkgver/grv-$pkgver-src.tar.gz")
noextract=()
-sha512sums=('f65d558c0a5a9bfad6b34220b5df36584af7c021780758dbdc8714bb8fa5326a844f79e9a731aae3217ec22009583d6ca590dfe980dfccc1152573807952999a')
+sha512sums=('5b579a8ddbe3e261301e22b7f1e9384ed2dbb2fa1c3355619da00bde2e81520822bf796828b5c56711074b9579aacd1178d661df787ef9636404c8fbada1f5aa')
+
+build() {
+ export GOPATH="$srcdir"
+ mkdir -p $GOPATH/src/github.com/rgburke
+ rm -rf $GOPATH/src/github.com/rgburke/$pkgname
+ mv $srcdir/$pkgname $GOPATH/src/github.com/rgburke
+
+ cd $GOPATH/src/github.com/rgburke/$pkgname
+ make build-libgit2
+
+}
package() {
- install -Dm755 "grv_"$pkgver"_linux64" "$pkgdir/usr/bin/$pkgname"
+ cd $GOPATH/src/github.com/rgburke/$pkgname
+ make install
}