Last active
December 9, 2017 23:43
-
-
Save nofxx/201cf91da5bdaa953d3d903361043d42 to your computer and use it in GitHub Desktop.
AEON PKGBUILD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgbase=('aeon-git') | |
pkgname=('aeon-git') | |
_aeon='aeon' | |
pkgver=0.9.14.0.r204.2c54434 | |
pkgrel=1 | |
arch=('x86_64' 'i686' 'armv7h') | |
url="http://aeon.cash/" | |
license=('custom:Cryptonote') | |
depends=('boost-libs>=1.45' 'miniupnpc>=1.6' 'libunwind' | |
'readline' 'zeromq' | |
# For OpenSSL v1.1 | |
'unbound>=1.4.16' # depends on OpenSSL v1.1 | |
'openssl' | |
# For OpenSSL v1.0 | |
# use unbound vendored inside upstream source repo | |
#'openssl-1.0' | |
) | |
makedepends=('git' 'cmake' 'boost' 'gtest') | |
pkgdesc="Peer-to-peer anonymous digital currency (daemon, CLI wallet, and wallet API library)" | |
_upstream=https://github.com/aeonix/aeon.git | |
source=("$_aeon::git+$_upstream") | |
md5sums=('SKIP') | |
_builddir=build | |
pkgver() { | |
cd "$srcdir/$_aeon" | |
# Release tags might point to commits on a branch different than master, | |
# so don't use them. | |
#git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' | |
printf "$(echo $pkgver | grep -Eo '^[0-9]+.[0-9]+.[0-9]+.[0-9]+').r%s.%s" \ | |
"$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
prepare() { | |
cd "$srcdir/$_aeon" | |
} | |
build() { | |
cd "${srcdir}/${_aeon}/build/release" | |
make | |
} | |
package_aeon-git() { | |
provides=('aeon') | |
conflicts=('aeon') | |
backup=('etc/aeond.conf') | |
install=aeon.install | |
# Uncomment for a debug build | |
# options=(!strip debug) | |
install -D -m755 "$srcdir/$_aeon/build/bin/aeond" "$pkgdir/usr/bin/aeond" | |
install -D -m755 "$srcdir/$_aeon/build/bin/aeon-wallet-cli" "$pkgdir/usr/bin/aeon-wallet-cli" | |
install -D -m755 "$srcdir/$_aeon/build/bin/aeon-blockchain-import" "$pkgdir/usr/bin/aeon-blockchain-import" | |
install -D -m755 "$srcdir/$_aeon/build/bin/aeon-blockchain-export" "$pkgdir/usr/bin/aeon-blockchain-export" | |
#install -Dm644 $srcdir/$_aeon/utils/systemd/aeond.service "${pkgdir}/usr/lib/systemd/system/aeond.service" | |
#install -Dm644 "$srcdir/$_aeon/utils/conf/aeond.conf" "$pkgdir/etc/aeond.conf" | |
#install -D -m644 "$srcdir/$_aeon/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment