summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorseiuneko2021-01-08 19:44:57 +0800
committerseiuneko2021-01-08 19:44:57 +0800
commitfcdef85a5714829eac837264d0ec2cbc4c71b9ee (patch)
treed6184edba5c479965e76b474bbc1b965efbfcd80
parentbb5ead4df685be2b3bd3bb7d2c591f77b478123f (diff)
downloadaur-fcdef85a5714829eac837264d0ec2cbc4c71b9ee.tar.gz
versioning with tag
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD6
2 files changed, 5 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d1f703dd20d..4278e3fba43 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = pup-git
pkgdesc = Parsing HTML at the command line
- pkgver = r102.681d7bb
+ pkgver = 0.4.0.r10.g681d7bb
pkgrel = 1
epoch = 1
url = https://github.com/EricChiang/pup
@@ -10,7 +10,7 @@ pkgbase = pup-git
makedepends = go
provides = pup
conflicts = pup
- source = git://github.com/EricChiang/pup.git
+ source = git+https://github.com/EricChiang/pup.git
md5sums = SKIP
pkgname = pup-git
diff --git a/PKGBUILD b/PKGBUILD
index a30bf69262e..13b2dc88d05 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=pup-git
_gitname="pup"
_gourl="github.com/ericchiang/pup"
-pkgver=r102.681d7bb
+pkgver=0.4.0.r10.g681d7bb
pkgrel=1
epoch=1
pkgdesc="Parsing HTML at the command line"
@@ -13,12 +13,12 @@ license=('MIT')
provides=('pup')
conflicts=('pup')
makedepends=('git' 'go')
-source=('git://github.com/EricChiang/pup.git')
+source=('git+https://github.com/EricChiang/pup.git')
md5sums=('SKIP')
pkgver() {
cd "$_gitname"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {