blob: c37488ec3647bf3e694a177a18f70c04190ff68a (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
|
## Maintainer: peerchemist <peerchemist@protonmail.ch>
pkgname=('peercoind-git')
pkgbase=peercoin
_gitname=peercoin
pkgver=v0.6.1.rc1.r0.g162f0694
pkgrel=1
pkgdesc="Peercoin deamon - master branch."
makedepends=('gcc' 'make' 'boost' 'miniupnpc' 'openssl')
depends=('boost-libs' 'openssl' 'miniupnpc')
replaces=("peercoind")
arch=('x86_64' 'i686')
url='peercoin.net'
license=('MIT')
source=(git+https://github.com/${_gitname}/${_gitname}.git#branch=master)
sha256sums=('SKIP')
build() {
cd "$srcdir/${_gitname}"
## make peercoind
make -f makefile.unix USE_UPNP=1 -e PIE=1 -C src
}
check() {
cd "$srcdir/${_gitname}"
make -f makefile.unix test_${_gitname} -C src
}
pkgver() {
cd "$srcdir/${_gitname}"
git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}
package_peercoind-git() {
makedepends=('boost' 'gcc' 'make' 'openssl' 'miniupnpc')
depends=('gcc' 'make' 'boost-libs' 'miniupnpc')
optdepeneds=('systemd' 'tor')
pkgdesc="Official implementation of Peercoin, the sustainable and secure cryptocurrency alternative to Bitcoin - daemon."
install=peercoind-git.install
cd "$srcdir/${_gitname}"
install -Dm755 "src/peercoind" "$pkgdir/usr/bin/peercoind"
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/peercoin/COPYING"
install -Dm644 "contrib/systemd/${_gitname}d-tor@.service" "$pkgdir/usr/lib/systemd/system/${_gitname}d-tor@.service"
install -Dm644 "contrib/systemd/${_gitname}d@.service" "$pkgdir/usr/lib/systemd/system/${_gitname}d@.service"
}
|