summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsetBoolean2021-05-01 12:42:29 +0200
committersetBoolean2021-05-01 12:42:29 +0200
commit272e079e722bf9f9a8053a5510b955facb57608a (patch)
treef40880c66b7c875515a47dd82d5c44956b2cd432
parent06d2a8d4ca9722858ae27d26cf7b5d1b379d4c1e (diff)
downloadaur-272e079e722bf9f9a8053a5510b955facb57608a.tar.gz
update pkver scheme
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD10
-rwxr-xr-xhornet.install6
3 files changed, 16 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2b8640f1b4e7..6f292d101732 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = hornet-git
pkgdesc = HORNET is a powerful IOTA fullnode software
- pkgver = 1.0.1
- pkgrel = 2
+ pkgver = 1.0.1.r0.gb185dbcf
+ pkgrel = 1
url = https://github.com/gohornet/hornet
install = hornet.install
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 7f5fdce824c1..f4aba005d398 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,9 @@
pkgname="hornet-git"
_pkgname="hornet"
_branch="main"
-pkgver="1.0.1"
-pkgrel="2"
+_pkgver="1.0.1"
+pkgver="1.0.1.r0.gb185dbcf"
+pkgrel="1"
pkgdesc="HORNET is a powerful IOTA fullnode software"
arch=('x86_64')
url="https://github.com/gohornet/hornet"
@@ -17,6 +18,11 @@ sha256sums=('SKIP'
backup=('etc/hornet/config.json' 'etc/hornet/config_as.json' 'etc/hornet/config_chrysalis_testnet.json' 'etc/hornet/peering.json' 'etc/hornet/profiles.json')
install=$_pkgname.install
+pkgver() {
+ cd ${_pkgname}
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
build() {
cd ${srcdir}/hornet
diff --git a/hornet.install b/hornet.install
index 0d6524d55748..2b246222e16e 100755
--- a/hornet.install
+++ b/hornet.install
@@ -13,6 +13,12 @@ post_install() {
post_upgrade () {
chown -R hornet:hornet /var/lib/hornet /etc/hornet
+
+ printf "##########################################################################################\
+ \n# Please diff your config in /etc/hornet/config.json with the new one provided by the #\
+ \n# package in /etc/hornet/config.json.pacnew for any changes made upstream as the upgrade #\
+ \n# process doesn't touch your existing configuration. #\
+ \n##########################################################################################\n"
}
pre_remove() {