diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 10 | ||||
-rwxr-xr-x | hornet.install | 6 |
3 files changed, 16 insertions, 4 deletions
@@ -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 @@ -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() { |