desktop/bitcoin/PKGBUILD

65 lines
1.7 KiB
Bash
Raw Normal View History

2011-12-02 08:52:01 +08:00
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
# Contributor: shahid <helllamer@gmail.com>
2012-06-02 05:25:01 +08:00
# Contributor: Timothy Redaelli <timothy.redaelli@gmail.com>
2011-12-02 08:52:01 +08:00
pkgname=bitcoin
2012-06-02 05:25:01 +08:00
pkgver=0.6.2
2011-12-02 08:52:01 +08:00
pkgrel=1
pkgdesc="Bitcoin is a peer-to-peer network based digital currency."
arch=('i686' 'x86_64')
url="http://www.bitcoin.org/"
depends=('qt' 'libpng' 'expat' 'gcc-libs' 'boost-libs' 'miniupnpc' 'openssl')
makedepends=('boost' 'gcc' 'make' 'automoc4')
2012-06-02 05:25:01 +08:00
conflicts=('bitcoin-git')
2011-12-02 08:52:01 +08:00
license=('MIT')
categories=('office')
2011-12-02 08:52:01 +08:00
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}-linux.tar.gz"
"${pkgname}.desktop")
2012-06-02 05:25:01 +08:00
md5sums=('6a95e87a8f1ce38f69fe3f38173f9549'
'77139ce8a40f46bd7d7ad0a743672113')
2011-12-02 08:52:01 +08:00
s1=$srcdir/${pkgname}-${pkgver}-linux
src_qt=$s1/src
src_d=$s1/src/src/
makefile_unix=makefile.unix
build() {
2012-06-02 05:25:01 +08:00
cd $src_d
2011-12-02 08:52:01 +08:00
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
2012-06-02 05:25:01 +08:00
cd $src_d
2011-12-02 08:52:01 +08:00
make $MAKEFLAGS -f $makefile_unix bitcoind
2012-06-02 05:25:01 +08:00
# make qt gui
2011-12-02 08:52:01 +08:00
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/
2012-06-02 05:25:01 +08:00
2011-12-02 08:52:01 +08:00
# add icon and .desktop file to pkg
install -D -m644 $src_qt/src/qt/res/icons/bitcoin.png $pkgdir/usr/share/pixmaps/
2012-06-02 05:25:01 +08:00
install -D -m644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/
2011-12-02 08:52:01 +08:00
}