blob: 6f643a3d11227cb592137e065954d4545a329c22 (
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
|
# Maintainer: Dmitry Kharitonov <darksab0r at gmail com>
# Contributor: Michael Thalmeier <michael@thalmeier.at>
pkgname=curecoind-git
pkgver=v2.0.0.1.r1.gb307e32
pkgrel=1
pkgdesc="GUI client (wallet) for CureCoin cryptocurrency"
arch=('x86_64' 'i686')
url="https://curecoin.net/"
license=('MIT')
provides=('curecoind')
conflicts=('curecoind')
depends=('miniupnpc' 'boost-libs' 'openssl-1.0')
makedepends=('boost' 'db' 'git')
source=("git+https://github.com/cygnusxi/CurecoinSource.git#branch=master"
"boost.patch")
sha256sums=('SKIP'
'3a984b6236e60cd34d31f24935e4c8cc92b5b725bd2f4159b8de375b3e0bb77a')
pkgver() {
cd ${srcdir}/CurecoinSource
set -o pipefail
git describe --tags --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/CurecoinSource"
# Fix compilation error with miniupnpc v 1.9 and new boost
patch -p1 <"${srcdir}/boost.patch"
#cd "${srcdir}/CurecoinSource/src"
# Switch to OpenSSL 1.0
#echo "INCLUDEPATH += /usr/include/openssl-1.0" >> "makefile.unix"
#echo "LIBS += -L/usr/lib/openssl-1.0 -lcrypto -lz" >> "makefile.unix"
}
build() {
cd "${srcdir}/CurecoinSource/src"
make -f makefile.unix OPENSSL_INCLUDE_PATH='/usr/include/openssl-1.0' OPENSSL_LIB_PATH='/usr/lib/openssl-1.0 -lcrypto -lz' ${MAKEFLAGS}
}
package() {
cd "${srcdir}/CurecoinSource"
install -Dm755 "${srcdir}/CurecoinSource/src/curecoind" "${pkgdir}/usr/bin/curecoind"
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|