mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
update PKGBUILD
This commit is contained in:
parent
6c204bba0a
commit
9427077649
1 changed files with 22 additions and 23 deletions
45
PKGBUILD
45
PKGBUILD
|
@ -1,40 +1,39 @@
|
||||||
# Maintainer: wowario <wowario at protonmail dot com>
|
# Maintainer: wowario <wowario at protonmail dot com>
|
||||||
# Contributor: wowario <wowario at protonmail dot com>
|
# Contributor: wowario <wowario at protonmail dot com>
|
||||||
|
|
||||||
pkgbase="wownero"
|
pkgbase=('wownero-git')
|
||||||
pkgname=('wownero')
|
pkgname=('wownero-git')
|
||||||
|
_gitbranch='dev-v0.5'
|
||||||
pkgver=0.5.0.0
|
pkgver=0.5.0.0
|
||||||
pkgrel=1
|
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')
|
license=('custom:Cryptonote')
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="http://wownero.org/"
|
url="http://wownero.org/"
|
||||||
depends=('boost-libs' 'openssl' 'zeromq' 'unbound')
|
depends=('boost-libs' 'zeromq' 'unbound' 'libusb')
|
||||||
makedepends=('git' 'cmake' 'boost')
|
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}"
|
pkgver() {
|
||||||
_build="build"
|
cd "${srcdir}/${pkgname}"
|
||||||
|
printf "$(echo ${pkgver} | sed 's/\.r.*//').r%s.g%s" \
|
||||||
|
"$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/${_wownero}"
|
cd "${srcdir}/${pkgname}"
|
||||||
git fetch && git checkout dev-v0.5
|
USE_SINGLE_BUILDDIR=1 make
|
||||||
CMAKE_FLAGS+=" -DCMAKE_BUILD_TYPE=Release "
|
|
||||||
CMAKE_FLAGS+=" -DCMAKE_INSTALL_PREFIX=/usr "
|
|
||||||
mkdir -p $_build && cd $_build
|
|
||||||
cmake $CMAKE_FLAGS ../
|
|
||||||
make
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package_wownero() {
|
package_wownero-git() {
|
||||||
install -Dm644 "${srcdir}/${_wownero}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
install -Dm644 "${srcdir}/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
install -Dm644 "${srcdir}/${_wownero}/utils/conf/wownerod.conf" "${pkgdir}/etc/wownerod.conf"
|
install -Dm644 "${srcdir}/${pkgname}/utils/conf/wownerod.conf" "${pkgdir}/etc/wownerod.conf"
|
||||||
install -Dm644 "${srcdir}/${_wownero}/utils/systemd/wownerod.service" "${pkgdir}/usr/lib/systemd/system/wownerod.service"
|
install -Dm644 "${srcdir}/${pkgname}/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}/${pkgname}/build/release/bin/wownerod" "${pkgdir}/usr/bin/wownerod"
|
||||||
install -Dm755 "${srcdir}/${_wownero}/build/bin/wownero-wallet-cli" "${pkgdir}/usr/bin/wownero-wallet-cli"
|
install -Dm755 "${srcdir}/${pkgname}/build/release/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"
|
install -Dm755 "${srcdir}/${pkgname}/build/release/bin/wownero-wallet-rpc" "${pkgdir}/usr/bin/wownero-wallet-rpc"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue