summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorpppest2020-01-24 10:40:33 -0600
committerpppest2020-01-24 10:40:33 -0600
commit7d4b1007cff9264722eccd1bec6049f09acbd15b (patch)
treecb30937801a0255fe4ad1ab62e5d8a1e4dcb9df8
parenta6cf7c4e7ccfc1e20b6762ea963caf39317e73df (diff)
downloadaur-7d4b1007cff9264722eccd1bec6049f09acbd15b.tar.gz
added pkgver func
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD18
2 files changed, 14 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 548e1a73a15..e80bf07c6ac 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = devaultcore-git
pkgdesc = QT Desktop wallet for the dvt blockchain
- pkgver = 1.1.3
+ pkgver = r16757.e8b7c87eb
pkgrel = 1
url = https://github.com/devaultcrypto/
arch = x86_64
@@ -15,8 +15,8 @@ pkgbase = devaultcore-git
depends = miniupnpc
depends = hicolor-icon-theme
depends = libevent
- source = devault-1.1.3::https://github.com/devaultcrypto/devault/archive/v1.1.3.tar.gz
- md5sums = b35b32ab22c5a493a12bcc6d200940c9
+ source = git+https://github.com/devaultcrypto/devault.git
+ md5sums = SKIP
pkgname = devaultcore-git
diff --git a/PKGBUILD b/PKGBUILD
index af191572a81..d71de39f4b5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,31 +1,35 @@
# Maintainer: Pest <ppest@protonmail.com>
_pkgname=devault
pkgname="${_pkgname}core-git"
-pkgver=1.1.3
+pkgver=r16757.e8b7c87eb
pkgrel=1
pkgdesc="QT Desktop wallet for the dvt blockchain"
arch=('x86_64')
license=('MIT')
url="https://github.com/devaultcrypto/"
-source=(${_pkgname}-${pkgver}::\
-https://github.com/devaultcrypto/devault/archive/v${pkgver}.tar.gz)
+source=("git+https://github.com/devaultcrypto/${_pkgname}.git")
depends=('boost-libs' 'qt5-base' 'qrencode' 'zeromq' 'miniupnpc' 'hicolor-icon-theme' 'libevent')
makedepends=('python' 'boost' 'qt5-tools')
-md5sums=('b35b32ab22c5a493a12bcc6d200940c9')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
prepare() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_pkgname}"
./autogen.sh
}
build() {
- cd "${_pkgname}-${pkgver}"
+ cd "${_pkgname}"
./configure --prefix=/usr/
make
}
package() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_pkgname}"
make DESTDIR="${pkgdir}/" install
install -D -m644 \
contrib/debian/devault-qt.desktop \