summaryrefslogtreecommitdiff
path: root/pcr/bitcoin-daemon/PKGBUILD
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-08-27 05:07:26 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-08-27 05:07:26 -0300
commit0ff008e3c9dcc5ef088f481dfff3dcd121575598 (patch)
treed6f6cf5d6939e1f030a48d3711d3606570afd08f /pcr/bitcoin-daemon/PKGBUILD
parented9d1c12bbfcf9cb8b3d53e886edb679df372640 (diff)
move some packages from [social] to [pcr] and remove unused [social]
Diffstat (limited to 'pcr/bitcoin-daemon/PKGBUILD')
-rw-r--r--pcr/bitcoin-daemon/PKGBUILD56
1 files changed, 56 insertions, 0 deletions
diff --git a/pcr/bitcoin-daemon/PKGBUILD b/pcr/bitcoin-daemon/PKGBUILD
new file mode 100644
index 000000000..8815eae9f
--- /dev/null
+++ b/pcr/bitcoin-daemon/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: fauno <fauno@kiwwwi.com.ar>
+# Contributor (Arch): Artefact2 <artefact2@gmail.com>
+# Contributor (Arch): shahid <helllamer@gmail.com>
+# Based on bitcoin by
+# Maintainer (Arch): shahid <helllamer@gmail.com>
+
+pkgname=bitcoin-daemon
+_pkgname=bitcoin
+pkgver=0.5.2
+pkgrel=1
+pkgdesc="Bitcoin is a peer-to-peer network based digital currency (daemon with JSON-RPC interface)."
+arch=('i686' 'x86_64' 'mips64el')
+url="http://www.bitcoin.org/"
+depends=('expat' 'boost-libs>=1.46' 'miniupnpc>=1.6' 'openssl')
+makedepends=('boost' 'gcc' 'make')
+conflicts=('bitcoin')
+license=('MIT')
+install="bitcoin-daemon.install"
+source=("http://downloads.sourceforge.net/sourceforge/${_pkgname}/${_pkgname}-${pkgver}-linux.tar.gz"
+ bitcoin-daemon.install
+ rc.bitcoind)
+
+s1=$srcdir/${_pkgname}-${pkgver}-linux
+src=$s1/src/src
+makefile_unix=makefile.unix
+md5sums=('6d40f645ddc042de26d64e83656f38e0'
+ '0375ba4d6c3425eee350dc8b7575403d'
+ '7faa439885f3adbba5847ae75aac5484')
+
+build() {
+ cd $src
+
+ 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'
+
+ # make bitcoind
+ make $MAKEFLAGS -f $makefile_unix bitcoind
+}
+
+package() {
+ # get compiled binaries
+ mkdir -p ${pkgdir}/{var/lib/${pkgname},usr/{share/licenses/${pkgname},bin},etc/rc.d}
+
+ install -D -m755 ${src}/bitcoind ${pkgdir}/usr/bin/
+
+ install -D -m755 ${srcdir}/rc.bitcoind ${pkgdir}/etc/rc.d/
+
+ install -D -m 644 ${s1}/COPYING \
+ ${pkgdir}/usr/share/licenses/${pkgname}/
+}