summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authornroi2019-04-23 22:31:57 +0200
committernroi2019-04-23 22:33:25 +0200
commit2b4378ea1b7458ffa9abfccd18939484c3824d3d (patch)
tree23a3cabe9f5a332e2bd7629d21288c78993c0ca4
parent5f7cadd488d0fe04c0a6265d87d18ebdf7f8b553 (diff)
downloadaur-2b4378ea1b7458ffa9abfccd18939484c3824d3d.tar.gz
Use tagged releases, starting with 0.1.0
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD8
2 files changed, 7 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 593256cc76a..f975b3432fe 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = cpcache-git
pkgdesc = central pacman cache
- pkgver = r340.546868c
+ pkgver = 0.1.0.r0.g9249d15
pkgrel = 1
url = https://github.com/nroi/cpcache
install = cpcache.install
@@ -9,14 +9,14 @@ pkgbase = cpcache-git
makedepends = erlang-nox
makedepends = elixir
backup = etc/cpcache/cpcache.toml
- source = git+https://github.com/nroi/cpcache.git
+ source = git+https://github.com/nroi/cpcache.git#tag=0.1.0
source = sysuser.conf
source = cpcache.install
source = cpcache.service
sha256sums = SKIP
sha256sums = 0098e749b19617c0f7d619d47a3bc3015bab62e9ad0916087502daff672fb309
sha256sums = 3a2c1155a6fc50be959be17f9c2339455c30bb85939263b29bb2ae5792d69037
- sha256sums = c4007bd6dd055e5edf09d54a840c957b7e5dab45ae85be4b26b41e34e9f63f19
+ sha256sums = a5d891b7d5cd282a3e7db445d8bbe14b230af7cb1a1e9536130e2f0e514d69bd
pkgname = cpcache-git
diff --git a/PKGBUILD b/PKGBUILD
index 9b623a9b21e..6ffe18a5ec6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: nroi <nroi@mailbox.org>
pkgname=cpcache-git
-pkgver=r340.546868c
+pkgver=0.1.0.r0.g9249d15
pkgrel=1
pkgdesc="central pacman cache"
arch=('x86_64')
@@ -9,7 +9,7 @@ license=('MIT')
makedepends=('erlang-nox' 'elixir')
install="${pkgname%-git}.install"
backup=('etc/cpcache/cpcache.toml')
-source=('git+https://github.com/nroi/cpcache.git'
+source=('git+https://github.com/nroi/cpcache.git#tag=0.1.0'
'sysuser.conf'
'cpcache.install'
'cpcache.service'
@@ -17,12 +17,12 @@ source=('git+https://github.com/nroi/cpcache.git'
sha256sums=('SKIP'
'0098e749b19617c0f7d619d47a3bc3015bab62e9ad0916087502daff672fb309'
'3a2c1155a6fc50be959be17f9c2339455c30bb85939263b29bb2ae5792d69037'
- 'c4007bd6dd055e5edf09d54a840c957b7e5dab45ae85be4b26b41e34e9f63f19'
+ 'a5d891b7d5cd282a3e7db445d8bbe14b230af7cb1a1e9536130e2f0e514d69bd'
)
pkgver() {
cd "${srcdir}/${pkgname%-git}"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {