summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD42
1 files changed, 19 insertions, 23 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 51b713b41e8..0fb2e77d6a6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,10 +2,10 @@
pkgname=masari
pkgver=0.2.4.5
+pkgrel=1
_gituser=masari-project
_gitrepo=masari
_gitver=v0.2.4.5
-pkgrel=1
pkgdesc="Masari: cryptonote currency daemon and wallet"
arch=('x86_64' 'i686')
url="https://github.com/$_gituser/$_gitrepo"
@@ -18,22 +18,18 @@ optdepends=( 'doxygen: documentation'
'graphviz: documentation'
'ldns: SSL toolkit' )
checkdepends=('gtest')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/$_gitver.tar.gz")
-md5sums=('88e405bcfd58c9166cbdd9bbca908a33')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$_gitver.tar.gz"
+ boost.patch)
+md5sums=('88e405bcfd58c9166cbdd9bbca908a33'
+ '31bd8669529a3bc4f372731a01501ca6')
prepare() {
- if [ ! -d "$srcdir/$pkgname-$pkgver" ]; then
- if [ -d "$srcdir/$_gitrepo-$_gitver" ]; then
- mv "$srcdir/$_gitrepo-$_gitver" "$srcdir/$pkgname-$pkgver"
- elif [ -d "$srcdir/$pkgname-$_gitver" ]; then
- mv "$srcdir/$pkgname-$_gitver" "$srcdir/$pkgname-$pkgver"
- fi
- fi
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$pkgname-$pkgver"
+ patch -p1 -i ../boost.patch
}
build() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$pkgname-$pkgver"
mkdir build && cd build
CXXFLAGS="-Wno-error=class-memaccess"
cmake ..
@@ -41,25 +37,25 @@ build() {
}
package() {
- cd "${pkgname}-${pkgver}"
+ cd "$pkgname-$pkgver"
install -Dm755 "./build/bin/masari-blockchain-blackball" \
- "${pkgdir}/usr/bin/masari-blockchain-blackball"
+ "$pkgdir/usr/bin/masari-blockchain-blackball"
install -Dm755 "./build/bin/masari-blockchain-export" \
- "${pkgdir}/usr/bin/masari-blockchain-export"
+ "$pkgdir/usr/bin/masari-blockchain-export"
install -Dm755 "./build/bin/masari-blockchain-import" \
- "${pkgdir}/usr/bin/masari-blockchain-import"
+ "$pkgdir/usr/bin/masari-blockchain-import"
install -Dm755 "./build/bin/masari-blockchain-usage" \
- "${pkgdir}/usr/bin/masari-blockchain-usage"
+ "$pkgdir/usr/bin/masari-blockchain-usage"
install -Dm755 "./build/bin/masarid" \
- "${pkgdir}/usr/bin/masarid"
+ "$pkgdir/usr/bin/masarid"
install -Dm755 "./build/bin/masari-gen-trusted-multisig" \
- "${pkgdir}/usr/bin/masari-gen-trusted-multisig"
+ "$pkgdir/usr/bin/masari-gen-trusted-multisig"
install -Dm755 "./build/bin/masari-wallet-cli" \
- "${pkgdir}/usr/bin/masari-wallet-cli"
+ "$pkgdir/usr/bin/masari-wallet-cli"
install -Dm755 "./build/bin/masari-wallet-rpc" \
- "${pkgdir}/usr/bin/masari-wallet-rpc"
+ "$pkgdir/usr/bin/masari-wallet-rpc"
install -Dm644 ./utils/conf/masarid.conf \
- "${pkgdir}/etc/masarid.conf"
+ "$pkgdir/etc/masarid.conf"
install -Dm644 LICENSE \
- "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}