summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcyfraka2021-02-01 23:14:35 +0100
committercyfraka2021-02-01 23:14:35 +0100
commit6c1316ebf313836c5cd8735b17bd38a160b08cc9 (patch)
treebd36018ff9cd176668c2d1b85c082c9c0a1ded29
parent3758488c70cbe775e4f9476ecc9afaff3b414241 (diff)
downloadaur-6c1316ebf313836c5cd8735b17bd38a160b08cc9.tar.gz
fixing pkg number
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD8
2 files changed, 8 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0aa55b9cf43..62ea7df956d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = curseradio-git
pkgdesc = Command line radio player
- pkgver = 1
- pkgrel = 0
+ pkgver = r15.1bd4bd0
+ pkgrel = 1
url = https://github.com/Cyfraka/curseradio
arch = any
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index 0b1f6c0c726..5659756b358 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
#Maintainer: Angel Dimov <cyfraka at protonmail dot com>
pkgname=curseradio-git
_pkgname=curseradio
-pkgver=1
-pkgrel=0
+pkgver= r15.1bd4bd0
+pkgrel= 0
pkgdesc="Command line radio player"
arch=('any')
url="https://github.com/Cyfraka/curseradio"
@@ -14,6 +14,10 @@ options=(!emptydirs)
source=("git+https://github.com/cyfraka/curseradio.git")
md5sums=('SKIP')
+pkgver() {
+ cd "$_pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
package() {
cd "$_pkgname"