summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD23
2 files changed, 20 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index be9a7433266..1eddd3d2606 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
-pkgbase = wake
+pkgbase = wake-git
pkgdesc = The SiFive wake build tool
- pkgver = 0.16.0
+ pkgver = r1216.f64b193
pkgrel = 1
url = https://github.com/sifive/wake
arch = x86_64
@@ -13,8 +13,8 @@ pkgbase = wake
depends = ncurses5-compat-libs
optdepends = re2c
optdepends = utf8proc
- source = https://github.com/sifive/wake/releases/download/v0.16.0/wake_0.16.0.tar.xz
- md5sums = 7be63bd44668a6ca252a3ac53c5a1e4e
+ source = git://github.com/sifive/wake.git
+ md5sums = SKIP
-pkgname = wake
+pkgname = wake-git
diff --git a/PKGBUILD b/PKGBUILD
index 16b4649f245..2d971079da3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
# Maintainer: Jiuyang Liu <liujiuyang1994@gmail.com>
-pkgname=wake
-pkgver=0.16.0
+_pkgname=wake
+pkgname=$_pkgname-git
+pkgver=r1216.f64b193
pkgrel=1
pkgdesc="The SiFive wake build tool"
arch=('x86_64')
@@ -10,21 +11,27 @@ license=('custom')
depends=('dash' 'sqlite' 'gmp' 'fuse-common' 're2' 'ncurses5-compat-libs')
optdepends=('re2c'
'utf8proc')
-source=("https://github.com/sifive/wake/releases/download/v0.16.0/wake_$pkgver.tar.xz")
-md5sums=('7be63bd44668a6ca252a3ac53c5a1e4e')
+source=("git://github.com/sifive/wake.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd $srcdir/$_pkgname
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
prepare() {
- cd $srcdir/$pkgname-$pkgver
+ cd $srcdir/$_pkgname
+ git checkout master
}
build() {
- cd $srcdir/$pkgname-$pkgver
+ cd $srcdir/$_pkgname
make
}
package() {
- cd $srcdir/$pkgname-$pkgver
+ cd $srcdir/$_pkgname
./bin/wake 'install "'$pkgdir'/usr"'
mkdir -p $pkgdir/usr/share/licenses/wake
- install -Dm644 $srcdir/$pkgname-$pkgver/LICENSE* $pkgdir/usr/share/licenses/wake
+ install -Dm644 $srcdir/$_pkgname/LICENSE* $pkgdir/usr/share/licenses/wake
}