From 9427077649a50468b39848c56cfc8d2d34095b7e Mon Sep 17 00:00:00 2001 From: wowario Date: Wed, 2 Jan 2019 09:05:20 +0300 Subject: [PATCH] update PKGBUILD --- PKGBUILD | 45 ++++++++++++++++++++++----------------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 57b9930d2..ef3e5a85b 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,40 +1,39 @@ # Maintainer: wowario # Contributor: wowario -pkgbase="wownero" -pkgname=('wownero') +pkgbase=('wownero-git') +pkgname=('wownero-git') +_gitbranch='dev-v0.5' pkgver=0.5.0.0 pkgrel=1 -pkgdesc="Wownero: a fairly launched privacy-centric meme coin with no premine and a finite supply" +pkgdesc="a fairly launched privacy-centric meme coin with no premine and a finite supply" license=('custom:Cryptonote') arch=('x86_64') url="http://wownero.org/" -depends=('boost-libs' 'openssl' 'zeromq' 'unbound') +depends=('boost-libs' 'zeromq' 'unbound' 'libusb') makedepends=('git' 'cmake' 'boost') -provides=('wownero') +provides=('wownero-git') -source=("${pkgname}"::"git+https://github.com/wownero/wownero") +source=("${pkgname}"::"git+https://github.com/wownero/wownero#branch=${_gitbranch}") -sha256sums+=('SKIP') +sha256sums=('SKIP') -_wownero="${pkgbase}" -_build="build" +pkgver() { + cd "${srcdir}/${pkgname}" + printf "$(echo ${pkgver} | sed 's/\.r.*//').r%s.g%s" \ + "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} build() { - cd "${srcdir}/${_wownero}" - git fetch && git checkout dev-v0.5 - CMAKE_FLAGS+=" -DCMAKE_BUILD_TYPE=Release " - CMAKE_FLAGS+=" -DCMAKE_INSTALL_PREFIX=/usr " - mkdir -p $_build && cd $_build - cmake $CMAKE_FLAGS ../ - make + cd "${srcdir}/${pkgname}" + USE_SINGLE_BUILDDIR=1 make } -package_wownero() { - install -Dm644 "${srcdir}/${_wownero}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - install -Dm644 "${srcdir}/${_wownero}/utils/conf/wownerod.conf" "${pkgdir}/etc/wownerod.conf" - install -Dm644 "${srcdir}/${_wownero}/utils/systemd/wownerod.service" "${pkgdir}/usr/lib/systemd/system/wownerod.service" - install -Dm755 "${srcdir}/${_wownero}/build/bin/wownerod" "${pkgdir}/usr/bin/wownerod" - install -Dm755 "${srcdir}/${_wownero}/build/bin/wownero-wallet-cli" "${pkgdir}/usr/bin/wownero-wallet-cli" - install -Dm755 "${srcdir}/${_wownero}/build/bin/wownero-wallet-rpc" "${pkgdir}/usr/bin/wownero-wallet-rpc" +package_wownero-git() { + install -Dm644 "${srcdir}/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 "${srcdir}/${pkgname}/utils/conf/wownerod.conf" "${pkgdir}/etc/wownerod.conf" + install -Dm644 "${srcdir}/${pkgname}/utils/systemd/wownerod.service" "${pkgdir}/usr/lib/systemd/system/wownerod.service" + install -Dm755 "${srcdir}/${pkgname}/build/release/bin/wownerod" "${pkgdir}/usr/bin/wownerod" + install -Dm755 "${srcdir}/${pkgname}/build/release/bin/wownero-wallet-cli" "${pkgdir}/usr/bin/wownero-wallet-cli" + install -Dm755 "${srcdir}/${pkgname}/build/release/bin/wownero-wallet-rpc" "${pkgdir}/usr/bin/wownero-wallet-rpc" }