diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-09-28 11:35:28 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-09-28 11:35:28 -0300 |
commit | 9d45c23e0baeae77cd5c9687b1b6ce97294a74b3 (patch) | |
tree | 186d54a86447c46aa1647c7125e814bd7b9f006d /social/bitcoin-daemon/PKGBUILD | |
parent | 3fd474d446f3e2cbf06e4827aa5557ebd0f86ffd (diff) | |
download | abslibre-9d45c23e0baeae77cd5c9687b1b6ce97294a74b3.tar.gz abslibre-9d45c23e0baeae77cd5c9687b1b6ce97294a74b3.tar.bz2 abslibre-9d45c23e0baeae77cd5c9687b1b6ce97294a74b3.zip |
social/bitcoin-daemon-0.4.0-1
Diffstat (limited to 'social/bitcoin-daemon/PKGBUILD')
-rw-r--r-- | social/bitcoin-daemon/PKGBUILD | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/social/bitcoin-daemon/PKGBUILD b/social/bitcoin-daemon/PKGBUILD index 9ef03573d..dd2676f46 100644 --- a/social/bitcoin-daemon/PKGBUILD +++ b/social/bitcoin-daemon/PKGBUILD @@ -1,62 +1,62 @@ # Maintainer: fauno <fauno@kiwwwi.com.ar> # Contributor: Artefact2 <artefact2@gmail.com> # Contributor: shahid <helllamer@gmail.com> +# Based on bitcoin by +# Maintainer : shahid <helllamer@gmail.com> pkgname=bitcoin-daemon _pkgname=bitcoin -pkgver=0.3.24 -_bcver=0.3.24 +pkgver=0.4.0 pkgrel=1 pkgdesc="Bitcoin is a peer-to-peer network based digital currency (daemon with JSON-RPC interface)." arch=('i686' 'x86_64') url="http://www.bitcoin.org/" -depends=('expat' 'boost-libs>=1.43' 'miniupnpc') -makedepends=('boost' 'openssl') +depends=('expat' 'boost-libs>=1.46' 'miniupnpc>=1.6') +makedepends=('boost') conflicts=('bitcoin') license=('MIT') install="bitcoin-daemon.install" -source=(http://ufpr.dl.sourceforge.net/project/bitcoin/Bitcoin/bitcoin-$_bcver/bitcoin-$pkgver-linux.tar.gz +source=("http://downloads.sourceforge.net/sourceforge/${_pkgname}/${_pkgname}-${pkgver}-linux.tar.gz" makefile.parabola bitcoin-daemon.install rc.bitcoind) +md5sums=('cb085fef9d49d25e7f3dd263950b1ed2' + '8d40b6a332721bf7354cca4070e082df' + 'a388684057de2bb543cb7f795dc693cf' + '7faa439885f3adbba5847ae75aac5484') + +s1=$srcdir/${_pkgname}-${pkgver}-linux +src=$s1/src/src/ +makefile_unix=makefile.unix build() { - cd $srcdir/$_pkgname-$_bcver/src/src - - # copy correct makefile to src dir - cp $srcdir/makefile.parabola Makefile + cd $src - # fixes... - mkdir -p obj/nogui 2>/dev/null - rm -f cryptopp/obj/* + msg "Patching $makefile_unix..." + sed -i $makefile_unix \ + -e 's/\(-DNOPCH\)/\1 -DBOOST_FILESYSTEM_VERSION=2/' \ + -e 's/-Bstatic/--as-needed ${LDFLAGS}/g' \ + -e 's/\(USE_UPNP:=\)0/\11/' \ + -e 's/$(DEBUGFLAGS)//g' \ + -e 's/CXXFLAGS/CPPFLAGS/g' \ + -e 's/-O[0-3]/${CXXFLAGS}/g' - # to build (single-threaded make due to OOM issues) - make bitcoind + # single-threaded build due to OOM issues reported + make -j1 -f $makefile_unix bitcoind } package() { - cd $srcdir/$_pkgname-$_bcver/src/src + # get compiled binaries + mkdir -p $pkgdir/{usr/{bin,share/licenses/$pkgname},var/lib/$pkgname} + install -D -m755 $src/bitcoind $pkgdir/usr/bin/ - mkdir -p $pkgdir/{usr/bin,usr/share/licenses/$pkgname,etc/rc.d,var/lib/$pkgname} + # install locales (FIXME bicycle with find|xargs) + mkdir -p $pkgdir/usr/share/locale + cd $s1/locale/ + find -name *.mo | xargs -I{} install -D -m644 {} $pkgdir/usr/share/locale/{} - install -D -m755 ./bitcoind $pkgdir/usr/bin/ - install -D -m755 $srcdir/rc.bitcoind $pkgdir/etc/rc.d/bitcoind - install -D -m 644 $srcdir/$_pkgname-$_bcver/COPYING \ + install -D -m 644 $s1/COPYING \ $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=('7a9e5d45cccd21ef88b8cbbe20946599' - 'dc3d207309d11e285ece6b3bdf61d90b' - 'a388684057de2bb543cb7f795dc693cf' - '7faa439885f3adbba5847ae75aac5484') -md5sums=('7a9e5d45cccd21ef88b8cbbe20946599' - '3172bdbc0096cb277971a26e0ca9adb6' - 'a388684057de2bb543cb7f795dc693cf' - '7faa439885f3adbba5847ae75aac5484') |