summaryrefslogtreecommitdiff
path: root/pcr/bitcoin
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
parented9d1c12bbfcf9cb8b3d53e886edb679df372640 (diff)
downloadabslibre-0ff008e3c9dcc5ef088f481dfff3dcd121575598.tar.gz
abslibre-0ff008e3c9dcc5ef088f481dfff3dcd121575598.tar.bz2
abslibre-0ff008e3c9dcc5ef088f481dfff3dcd121575598.zip
move some packages from [social] to [pcr] and remove unused [social]
Diffstat (limited to 'pcr/bitcoin')
-rw-r--r--pcr/bitcoin/PKGBUILD62
-rw-r--r--pcr/bitcoin/bitcoin.desktop10
2 files changed, 72 insertions, 0 deletions
diff --git a/pcr/bitcoin/PKGBUILD b/pcr/bitcoin/PKGBUILD
new file mode 100644
index 000000000..293a7f26b
--- /dev/null
+++ b/pcr/bitcoin/PKGBUILD
@@ -0,0 +1,62 @@
+## Maintainer (Arch): shahid <helllamer@gmail.com>
+## Long PKGBUILD description, todo, wiki:
+## * https://bitbucket.org/helllamer/archlinux-pkgbuild/wiki/pkgbuild/bitcoin
+
+## Wanna take part on development my PKGBUILDs? Feel welcome on my repo:
+## * https://bitbucket.org/helllamer/archlinux-pkgbuild/
+
+name=bitcoin
+pkgname=$name
+pkgver=0.5.2
+pkgrel=1
+pkgdesc="Bitcoin is a peer-to-peer network based digital currency."
+arch=('i686' 'x86_64' 'mips64el')
+url="http://www.bitcoin.org/"
+depends=('qt>=4.6' 'libpng>=1.4' 'expat' 'gcc-libs' 'boost-libs>=1.46' 'miniupnpc>=1.6' 'openssl')
+makedepends=('boost' 'gcc' 'make' 'automoc4')
+conflicts=('bitcoin-bin' 'bitcoin-git' 'bitcoin-daemon')
+license=('MIT')
+source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}-linux.tar.gz"
+ "${pkgname}.desktop")
+md5sums=('6d40f645ddc042de26d64e83656f38e0'
+ '77139ce8a40f46bd7d7ad0a743672113')
+s1=$srcdir/${pkgname}-${pkgver}-linux
+src_qt=$s1/src
+src_d=$s1/src/src/
+makefile_unix=makefile.unix
+
+build() {
+ cd $src_d
+
+ 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
+
+ # and make qt gui
+ cd $src_qt
+ qmake
+ make $MAKEFLAGS
+}
+
+
+package() {
+ mkdir -p $pkgdir/usr/bin
+ mkdir -p $pkgdir/usr/share/pixmaps
+ mkdir -p $pkgdir/usr/share/applications
+
+ # get compiled binaries
+ install -D -m755 $src_qt/bitcoin-qt $pkgdir/usr/bin/
+ install -D -m755 $src_d/bitcoind $pkgdir/usr/bin/
+
+ # add icon and .desktop file to pkg
+ install -D -m644 $src_qt/src/qt/res/icons/bitcoin.png $pkgdir/usr/share/pixmaps/
+ install -D -m644 $srcdir/$name.desktop $pkgdir/usr/share/applications/
+}
diff --git a/pcr/bitcoin/bitcoin.desktop b/pcr/bitcoin/bitcoin.desktop
new file mode 100644
index 000000000..f27429060
--- /dev/null
+++ b/pcr/bitcoin/bitcoin.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Bitcoin
+GenericName=P2P network based digital currency
+Comment=P2P network based digital currency
+Exec=bitcoin-qt
+Icon=/usr/share/pixmaps/bitcoin.png
+StartupNotify=true
+Terminal=false
+Type=Application
+Categories=Office;Finance;P2P