wownero/PKGBUILD

40 lines
1.5 KiB
Bash
Raw Normal View History

2018-12-27 22:00:00 +00:00
# Maintainer: wowario <wowario at protonmail dot com>
# Contributor: wowario <wowario at protonmail dot com>
2019-01-02 06:05:20 +00:00
pkgbase=('wownero-git')
pkgname=('wownero-git')
_gitbranch='dev-v0.5'
2018-12-27 22:00:00 +00:00
pkgver=0.5.0.0
pkgrel=1
2019-01-02 06:05:20 +00:00
pkgdesc="a fairly launched privacy-centric meme coin with no premine and a finite supply"
2018-12-27 22:00:00 +00:00
license=('custom:Cryptonote')
arch=('x86_64')
url="http://wownero.org/"
2019-01-02 06:05:20 +00:00
depends=('boost-libs' 'zeromq' 'unbound' 'libusb')
2018-12-27 22:00:00 +00:00
makedepends=('git' 'cmake' 'boost')
2019-01-02 06:05:20 +00:00
provides=('wownero-git')
2018-12-27 22:00:00 +00:00
2019-01-02 06:05:20 +00:00
source=("${pkgname}"::"git+https://github.com/wownero/wownero#branch=${_gitbranch}")
2018-12-27 22:00:00 +00:00
2019-01-02 06:05:20 +00:00
sha256sums=('SKIP')
2018-12-27 22:00:00 +00:00
2019-01-02 06:05:20 +00:00
pkgver() {
cd "${srcdir}/${pkgname}"
printf "$(echo ${pkgver} | sed 's/\.r.*//').r%s.g%s" \
"$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
2018-12-27 22:00:00 +00:00
build() {
2019-01-02 06:05:20 +00:00
cd "${srcdir}/${pkgname}"
USE_SINGLE_BUILDDIR=1 make
2018-12-27 22:00:00 +00:00
}
2019-01-02 06:05:20 +00:00
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"
2018-12-27 22:00:00 +00:00
}