summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 43bfad638bc954d5523d95391625e3de6af8e704 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Maik Broemme <mbroemme@libmpq.org>
# Donate BTCS: 13xcw57QyS8h6GuxtbatAH9S6igwytd7Uo
pkgname="bitcoin-scrypt-git-daemon"
pkgdesc="Bitcoin Scrypt is a decentralised currency and using the Scrypt algorithm - daemon"
pkgver=20140107.2ba1ffc
pkgrel=1
arch=("i686" "x86_64")
url="http://bitcoinscrypt.org/"
license=("MIT")
depends=("boost-libs" "miniupnpc" "openssl")
makedepends=("boost" "automoc4" "qrencode" "miniupnpc")
provides=("bitcoin-scrypt-daemon")
source=(
  "bitcoin-scrypt::git://github.com/Omega6/Bitcoin-Scrypt.git"
)
sha256sums=(
  "SKIP"
)

pkgver() {
  cd "${srcdir}/bitcoin-scrypt"
  git log -1 --date=short --format="%cd.%h" | tr -d '-'
}

build() {
  cd "${srcdir}/bitcoin-scrypt"
  qmake-qt4 USE_QRCODE=1 USE_DBUS=1 USE_UPNP=1 Bitcoin-sCrypt.pro
  make -f makefile.unix -C src CXXFLAGS="${CXXFLAGS}"
}

package() {
  provides=("bitcoin-scrypt-daemon")
  cd "${srcdir}/bitcoin-scrypt"
  install -D -m 0755 src/bitcoin-scryptd "${pkgdir}/usr/bin/bitcoin-scryptd"
  install -D -m 0644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}