summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 73736343119f5c713f10a201002778158f0a84a0 (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
# Maintainer: metscoin <mets_coin@outlook.com>
# shellcheck disable=SC2034

pkgname=raven-qt
pkgver=2.1.1
pkgrel=1
arch=('i686' 'x86_64')
url="https://ravencoin.org/"
license=('MIT')
pkgdesc="Cryptocurrency wallet(QT)"
depends=('openssl-1.0' 'boost-libs' 'libevent' 'db4.8' 'qt5-base' 'protobuf')
optdepends=('miniupnpc: Automatic UPnP port mapping' 'qrencode: For generating QR codes within the GUI' 'zeromq: Send notifications via zeromq')
makedepends=(boost qt5-tools)
provides=('raven-qt' 'ravencoind' 'ravencoin-tx')
conflicts=(raven)
install=raven-qt.install
source=("${pkgname%-git}::git+http://github.com/RavenProject/Ravencoin.git#tag=v${pkgver}"
	"$pkgname.desktop")
sha256sums=('SKIP'
	'e318e3c5a9fbdbcf5836f9ceee76f4a73acdcb47c535cb7beb1c19937b8540df')
build() {
	cd "$srcdir/$pkgname" || exit
	find . -type f -iname "*.sh" -exec chmod +x {} \;
	export PKG_CONFIG_PATH="/usr/lib/openssl-1.0/pkgconfig"
	export CXXFLAGS+=" -I/usr/include/openssl-1.0"
	export LDFLAGS+=" -L/usr/lib/openssl-1.0 -lssl"
	./autogen.sh
	./configure --prefix=/usr --with-pic --disable-shared --enable-cxx \
		--disable-bench --disable-tests
	make ${MAKEFLAGS}
}

package() {
	install -Dm644 raven-qt.desktop "$pkgdir"/usr/share/applications/raven.desktop
	cd "$srcdir/$pkgname" || exit
	install -Dm644 share/pixmaps/raven128.png "$pkgdir"/usr/share/pixmaps/raven128.png
	install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
	make DESTDIR="${pkgdir}" install
}