diff options
author | wowario | 2019-01-02 11:05:49 +0300 |
---|---|---|
committer | wowario | 2019-01-02 11:05:49 +0300 |
commit | e58833585fc1b799c70d92a1b12a773c606a82ad (patch) | |
tree | 4e919a58dc440c4df68b47d77806225aaf7aa0e5 /PKGBUILD | |
download | aur-e58833585fc1b799c70d92a1b12a773c606a82ad.tar.gz |
add wownero-git
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ef3e5a85bde7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: wowario <wowario at protonmail dot com> +# Contributor: wowario <wowario at protonmail dot com> + +pkgbase=('wownero-git') +pkgname=('wownero-git') +_gitbranch='dev-v0.5' +pkgver=0.5.0.0 +pkgrel=1 +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' 'zeromq' 'unbound' 'libusb') +makedepends=('git' 'cmake' 'boost') +provides=('wownero-git') + +source=("${pkgname}"::"git+https://github.com/wownero/wownero#branch=${_gitbranch}") + +sha256sums=('SKIP') + +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}/${pkgname}" + USE_SINGLE_BUILDDIR=1 make +} + +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" +} |