wownero/PKGBUILD

65 lines
2.1 KiB
Bash
Raw Normal View History

2020-04-06 14:20:07 +00:00
# Maintainer: wowario <wowario[at]protonmail[dot]com>
2018-12-02 14:29:51 +00:00
2020-04-06 14:20:07 +00:00
pkgname=wownero-git
pkgver=0.8.0.0
2018-12-02 14:29:51 +00:00
pkgrel=1
2020-04-06 14:20:07 +00:00
pkgdesc="Wownero: a fairly launched privacy-centric meme coin with no premine and a finite supply"
license=('BSD')
2018-12-02 14:29:51 +00:00
arch=('x86_64')
2020-04-06 14:20:07 +00:00
url="https://wownero.org/"
depends=('boost-libs' 'libunwind' 'openssl' 'readline' 'zeromq' 'pcsclite' 'hidapi' 'protobuf')
2018-12-02 14:29:51 +00:00
makedepends=('git' 'cmake' 'boost')
2020-04-06 14:20:07 +00:00
source=(
"${pkgname}"::"git+https://github.com/wownero/wownero#tag=v${pkgver}"
"git+https://github.com/monero-project/unbound.git"
"git+https://github.com/monero-project/miniupnp.git"
"git+https://github.com/Tencent/rapidjson.git"
"git+https://github.com/trezor/trezor-common.git"
"git+https://github.com/wownero/RandomWOW.git"
"wownero.sysusers"
"wownero.tmpfiles")
sha512sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
2018-12-02 14:29:51 +00:00
2020-04-06 14:20:07 +00:00
prepare() {
cd "${pkgname}"
git submodule init
git config submodule.external/unbound.url "$srcdir/unbound"
git config submodule.external/miniupnp.url "$srcdir/miniupnp"
git config submodule.external/rapidjson.url "$srcdir/rapidjson"
git config submodule.external/RandomWOW.url "$srcdir/RandomWOW"
git submodule update
2018-12-02 14:29:51 +00:00
}
build() {
2020-04-06 14:20:07 +00:00
cd "${pkgname}"
mkdir -p build && cd build
cmake -D BUILD_TESTS=OFF -D CMAKE_BUILD_TYPE=release -D ARCH=default ../
make
2018-12-02 14:29:51 +00:00
}
2020-04-06 14:20:07 +00:00
package() {
backup=('etc/wownerod.conf')
cd "${pkgname}"
install -Dm644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm644 "utils/conf/wownerod.conf" "${pkgdir}/etc/wownerod.conf"
install -Dm644 "utils/systemd/wownerod.service" "${pkgdir}/usr/lib/systemd/system/wownerod.service"
install -Dm644 "../wownero.sysusers" "${pkgdir}/usr/lib/sysusers.d/wownero.conf"
install -Dm644 "../wownero.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/wownero.conf"
install -Dm755 "build/bin/wownero-wallet-cli" \
"build/bin/wownero-wallet-rpc" \
"build/bin/wownerod" \
-t "${pkgdir}/usr/bin"
2018-12-02 14:29:51 +00:00
}
2020-04-06 14:20:07 +00:00
# vim: ts=2 sw=2 et: