summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcyfraka2021-02-02 11:16:18 +0100
committercyfraka2021-02-02 11:16:18 +0100
commitf7f8516bd5d4cf36ff274b5c61eec107b266e1e7 (patch)
tree1631d225bdec243bc5860e33d9d0f2e1a55f819c
parent17c0ce72e1ece52fa75a6a9a7441c974ae6df3b6 (diff)
downloadaur-f7f8516bd5d4cf36ff274b5c61eec107b266e1e7.tar.gz
VCS package guidelines learned
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD9
2 files changed, 9 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 257c8e32caa..1bb4b136777 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = curseradio-git
pkgdesc = Command line radio player
- pkgver = 1
- pkgrel = 0
+ pkgver = r16.5dbc5c5
+ pkgrel = 1
url = https://github.com/Cyfraka/curseradio
arch = any
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index d1310981131..b5c78c12c0e 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=r16.5dbc5c5
+pkgrel=1
pkgdesc="Command line radio player"
arch=('any')
url="https://github.com/Cyfraka/curseradio"
@@ -14,6 +14,11 @@ 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"
python setup.py install --root="$pkgdir" --optimize=1