summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Désaulniers2016-11-19 05:50:37 -0500
committerSimon Désaulniers2016-11-19 05:50:37 -0500
commitecf6e296af41788f0e97679f00942310071ae8a4 (patch)
tree9e664a74f04ca6d7a14a0424700964492d3ffea8
parent39f2d1b32d647e8ad3d4c821b508c199d44785ef (diff)
downloadaur-ecf6e296af41788f0e97679f00942310071ae8a4.tar.gz
use appropriate version number from git
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 7 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 584ccd97c7b..22b07f35ced 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = dpaste
pkgdesc = A simple pastebin for light values (max 64KB) using OpenDHT distributed hash table.
- pkgver = 0.0.1
+ pkgver = 20161119
pkgrel = 1
url = https://github.com/sim590/dpaste
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 9eea672a38d..ee43d5b0408 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Simon Désaulniers <rostydela@gmail.com>
pkgname='dpaste'
-pkgver='0.0.1'
+pkgver=20161119
pkgrel=1
pkgdesc="A simple pastebin for light values (max 64KB) using OpenDHT distributed hash table."
arch=('i686' 'x86_64')
@@ -10,6 +10,11 @@ source=('git://github.com/sim590/dpaste')
depends=('opendht-git')
sha256sums=('SKIP')
+pkgver() {
+ cd "${srcdir}/dpaste"
+ git log -1 --format="%cd" --date=short | sed "s|-||g"
+}
+
build() {
cd "${srcdir}/dpaste"
make