mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 11:02:13 +08:00
71 lines
2.9 KiB
Bash
71 lines
2.9 KiB
Bash
# Maintainer : UtG <utg.chakra.linux[at]gmail[dot]com>
|
|
# Contributor : Neophytos Kolokotronis <tetris4@gmail.com>
|
|
# Contributor : shahid <helllamer@gmail.com>
|
|
|
|
pkgname=bitcoin
|
|
pkgver=0.9.1
|
|
pkgrel=2
|
|
pkgdesc="Bitcoin is a peer-to-peer network based digital currency."
|
|
arch=('x86_64')
|
|
url="http://www.bitcoin.org/"
|
|
screenshot="http://c.fsdn.com/con/app/proj/bitcoin/screenshots/203604"
|
|
depends=('boost-libs' 'qt' 'miniupnpc' 'qrencode' 'db' 'protobuf')
|
|
makedepends=('boost' 'automoc4')
|
|
conflicts=('bitcoin-git')
|
|
replaces=('bitcoin-git')
|
|
license=('MIT')
|
|
#source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}-linux.tar.gz")
|
|
source=("http://bitcoin.org/bin/$pkgver/bitcoin-$pkgver-linux.tar.gz"
|
|
https://raw.github.com/bitcoin/bitcoin/v$pkgver/contrib/debian/bitcoin-qt.desktop
|
|
https://raw.github.com/bitcoin/bitcoin/v$pkgver/share/pixmaps/bitcoin128.png
|
|
https://raw.github.com/bitcoin/bitcoin/v$pkgver/contrib/debian/examples/bitcoin.conf
|
|
https://raw.github.com/bitcoin/bitcoin/v$pkgver/contrib/debian/manpages/bitcoind.1
|
|
https://raw.github.com/bitcoin/bitcoin/v$pkgver/contrib/debian/manpages/bitcoin.conf.5)
|
|
sha256sums=('3fabc1c629007b465a278525883663d41a2ba62699f2773536a8bf59ca210425'
|
|
'b65b377c0d9ecae9eea722843bca0add6bdb7e50929a7e1f751b79b6621c6073'
|
|
'ad880c8459ecfdb96abe6a4689af06bdd27906e0edcd39d0915482f2da91e722'
|
|
'e141088b07641e4e58cc750f93bbdda1ca0e8f07262fce66b73524c1ed97480e'
|
|
'881dcc53ebe2d2a4f8647eb206fd355c69e4186f225e2dcfce19d276381e613a'
|
|
'f4598dcff7056a699b62a079b76e74d54435db22e05723bab995e22ae71c7f79')
|
|
install=bitcoin.install
|
|
|
|
prepare() {
|
|
cd $srcdir/"$pkgbase-$pkgver-linux"/src
|
|
tar xf $pkgbase-$pkgver.tar.gz
|
|
}
|
|
|
|
build() {
|
|
#cd ${pkgbase}-${pkgver}-linux/src
|
|
cd "$srcdir/$pkgbase-$pkgver-linux/src/$pkgbase-$pkgver"
|
|
# and make qt gui (USE_UPNP default activated)
|
|
#qmake USE_QRCODE=1
|
|
./configure --prefix=/usr --with-incompatible-bdb --with-gui=qt4
|
|
make
|
|
# make bitcoind
|
|
#make -f makefile.unix -C src CXXFLAGS="$CXXFLAGS"
|
|
}
|
|
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgbase-$pkgver-linux/src/$pkgbase-$pkgver"
|
|
|
|
## Install bitcoin-qt
|
|
install -Dm755 src/qt/bitcoin-qt "${pkgdir}"/usr/bin/bitcoin-qt
|
|
install -Dm644 "$srcdir"/bitcoin-qt.desktop \
|
|
"${pkgdir}"/usr/share/applications/bitcoin.desktop
|
|
install -Dm644 "$srcdir"/bitcoin128.png \
|
|
"${pkgdir}"/usr/share/pixmaps/bitcoin128.png
|
|
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
|
|
|
|
## Install bitcoin deamon
|
|
install -Dm755 src/bitcoind "${pkgdir}"/usr/bin/bitcoind
|
|
install -Dm644 "$srcdir"/bitcoin.conf \
|
|
"${pkgdir}/usr/share/doc/${pkgname}/examples/bitcoin.conf"
|
|
install -Dm644 "$srcdir"/bitcoind.1 \
|
|
"${pkgdir}"/usr/share/man/man1/bitcoind.1
|
|
install -Dm644 "$srcdir"/bitcoin.conf.5 \
|
|
"${pkgdir}"/usr/share/man/man5/bitcoin.conf.5
|
|
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
|
|
}
|
|
|