diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-03-04 18:07:40 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-03-04 18:07:40 -0300 |
commit | 41562238cd6a3ddab2b3073e3ffcbca254a95d91 (patch) | |
tree | 3f22473e83481489127335472fb61c724fbd9fc8 /social/bitcoin-daemon/PKGBUILD | |
parent | 11ea1816962daf30e568ce760a062c8290be7772 (diff) |
bitcoin-daemon-0.3.20.01-1
Diffstat (limited to 'social/bitcoin-daemon/PKGBUILD')
-rw-r--r-- | social/bitcoin-daemon/PKGBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/social/bitcoin-daemon/PKGBUILD b/social/bitcoin-daemon/PKGBUILD new file mode 100644 index 000000000..6abe2303a --- /dev/null +++ b/social/bitcoin-daemon/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: fauno <fauno@kiwwwi.com.ar> +# Contributor: Artefact2 <artefact2@gmail.com> +# Contributor: shahid <helllamer@gmail.com> + +pkgname=bitcoin-daemon +_pkgname=bitcoin +pkgver=0.3.20.01 +_bcver=0.3.20 +pkgrel=1 +pkgdesc="Bitcoin is a peer-to-peer network based digital currency." +arch=('i686' 'x86_64') +url="http://www.bitcoin.org/" +depends=('expat' 'boost-libs>=1.43') +makedepends=('boost') +conflicts=('bitcoin-bin' 'bitcoin') +license=('MIT') +install="bitcoin-daemon.install" +source=("http://downloads.sourceforge.net/sourceforge/${_pkgname}/${_pkgname}-${pkgver}-linux.tar.gz" + "makefile.archlinux" + "bitcoin-daemon.install" + "rc.bitcoind") + +build() { + cd $srcdir/${_pkgname}-${_bcver}/src + + # copy correct makefile to src dir + cp $srcdir/makefile.archlinux Makefile + + # fixes... + mkdir -p obj/nogui 2>/dev/null + rm -f cryptopp/obj/* + + # to build (single-threaded make due to OOM issues) + make bitcoind +} + +package() { + cd $srcdir/${_pkgname}-${_bcver} + mkdir -p $pkgdir/{usr/bin,usr/share/licenses/$pkgname,etc/rc.d,var/lib/$pkgname} + + install -D -m755 ./src/bitcoind $pkgdir/usr/bin/ + install -D -m755 $srcdir/rc.bitcoind $pkgdir/etc/rc.d/bitcoind + install -m 644 ./license.txt $pkgdir/usr/share/licenses/$pkgname/ + + # strip shit from executables + find $pkgdir/usr/bin/ -type f | xargs -L1 strip + + # the bitcoin data directory should not readable by others (wallet is sensitive data) + chown -R 8333:8333 $pkgdir/var/lib/$pkgname + chmod -R 700 $pkgdir/var/lib/$pkgname +} +md5sums=('e10954969479c0bcee16cce5061ddb20' + 'c8676f09f2ab8e2e216cc694ff00168e' + 'a388684057de2bb543cb7f795dc693cf' + '4a9ab4997487bb5f8e3c6b1d580045af') |