diff options
author | David Cristofaro | 2018-11-07 13:41:57 +1100 |
---|---|---|
committer | David Cristofaro | 2018-11-07 13:41:57 +1100 |
commit | 97352988f5389cc32b14611315b0b0e4fcf41a33 (patch) | |
tree | 4e752474c6628c3771e4c6071d68a53b51982b06 | |
parent | 0f84493199d3bd4c8d3b1efbebe784e84f6f17d9 (diff) | |
download | aur-97352988f5389cc32b14611315b0b0e4fcf41a33.tar.gz |
Update pkgver
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 7 insertions, 6 deletions
@@ -1,6 +1,6 @@ pkgbase = lucky-git pkgdesc = A Crystal web framework that catches bugs for you, runs incredibly fast, and helps you write code that lasts. - pkgver = 0.10.0.rc3.r22.gcc1333c + pkgver = 0.12.0.r4.3b9103d pkgrel = 1 url = https://luckyframework.org/ arch = x86_64 @@ -1,6 +1,6 @@ # Maintainer: David Cristofaro <david@dtcristo.com> pkgname=lucky-git -pkgver=0.10.0.rc3.r22.gcc1333c +pkgver=0.12.0.r4.3b9103d pkgrel=1 pkgdesc='A Crystal web framework that catches bugs for you, runs incredibly fast, and helps you write code that lasts.' arch=('x86_64') @@ -14,18 +14,19 @@ source=('git+https://github.com/luckyframework/lucky_cli.git') sha256sums=('SKIP') pkgver() { - cd lucky_cli - git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + cd "lucky_cli" + local tag=$(git rev-list --tags --max-count=1) + printf "%s.r%s.%s" "$(git describe --tags $tag | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')" "$(git rev-list --count $tag..)" "$(git rev-parse --short HEAD)" } build() { - cd lucky_cli + cd "lucky_cli" shards install crystal build src/lucky.cr --release --no-debug } package() { - cd lucky_cli + cd "lucky_cli" install -Dm755 lucky "$pkgdir/usr/bin/lucky" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |