pkgname=raiblocks-git pkgver=9.0.r78.gc7bf58d1 pkgrel=1 pkgdesc="RaiBlocks is a cryptocurrency designed from the ground up for scalable instant transactions and zero transaction fees." arch=('i686' 'x86_64') url="http://raiblocks.com/" license=('BSD 2-clause') depends=('qt5-base' 'boost' 'boost-libs') provides=(raiblocks) install=install pkgver() { cd "raiblocks" git describe --long --tags | sed 's/^[vV]//;s/\([^-]*-g\)/r\1/;s/-/./g' } source=(raiblocks.desktop raiblocks128.png raiblocks.service git+https://github.com/clemahieu/raiblocks.git git+https://github.com/boostorg/beast.git git+https://github.com/weidai11/cryptopp.git git+https://github.com/clemahieu/lmdb.git git+https://github.com/miniupnp/miniupnp.git git+https://github.com/clemahieu/phc-winner-argon2.git) sha256sums=('74b9bc75c3d5596603e54e2553ff69d367f384789c7565437a72a64dc22f0fdd' '7e08e2b6d50638fb1438c746da78defc49ef317ee8ffa6feeb52635a976a0ea9' '53ed2e7cf24c02172e3e804dd8689674867d82ca21b7d03be590d7a9b3a9c8bb' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP') prepare() { cd "$srcdir/raiblocks" #revert boost 1.66 commit until it makes it out of [testing] so we can use Arch's 1.65 git revert 1530785edf358de5ef50cb430656981e67686bac --no-edit --no-commit git submodule init git config submodule.beast.url $srcdir/beast git config submodule.cryptopp.url $srcdir/cryptopp git config submodule.lmdb.url $srcdir/lmdb git config submodule.miniupnp.url $srcdir/miniupnp git config submodule.phc-winner-argon2.url $srcdir/phc-winner-argon2 git submodule update --init --recursive _flags=( "-D RAIBLOCKS_GUI=ON" ) if grep -q avx2 /proc/cpuinfo; then echo "using AVX2 optimizations" _flags+=( "-D ENABLE_AVX2=ON" "-D PERMUTE_WITH_GATHER=ON" "-D PERMUTE_WITH_SHUFFLES=ON" ) else echo "excluding unsupported AVX2 optimizations" fi if grep -q sse4 /proc/cpuinfo; then echo "build with SIMD optimizations" _flags+=( "-D RAIBLOCKS_SIMD_OPTIMIZATIONS=ON" ) else echo "excluding unsupported SIMD optimizations" _flags+=( "-D RAIBLOCKS_SIMD_OPTIMIZATIONS=OFF" ) fi cmake $_flags ./ } build() { cd "$srcdir/raiblocks" make rai_wallet make rai_node } package() { cd "$srcdir/raiblocks" install -Dm755 rai_wallet "$pkgdir"/usr/bin/rai_wallet install -Dm755 rai_node "$pkgdir"/usr/bin/rai_node install -Dm644 librai_lib.so "$pkgdir"/usr/lib/librai_lib.so install -Dm644 "$srcdir"/raiblocks128.png "$pkgdir"/usr/share/pixmaps/raiblocks128.png install -Dm644 "$srcdir"/raiblocks.desktop "$pkgdir"/usr/share/applications/raiblocks.desktop install -Dm644 "$srcdir"/raiblocks.service "$pkgdir"/usr/lib/systemd/system/raiblocks-node.service } # vim:set ts=2 sw=2 et: