summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAaron Miller2017-03-19 06:14:19 -0700
committerAaron Miller2017-03-19 06:14:19 -0700
commit40f5ac5ccb7bd2c3d94e5a4f64dbc998484ef1d7 (patch)
treefa68b5ab728c485fd15833577e5ea2a35635ab53 /PKGBUILD
parent178fb2cf4ecc18e21a4f0f921d24fd194864d7e2 (diff)
downloadaur-40f5ac5ccb7bd2c3d94e5a4f64dbc998484ef1d7.tar.gz
optional dependencies fix
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 15 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ee52a225d1b..adc4b0b256e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,12 +4,14 @@ pkgname=("pivx-daemon" "pivx-cli" "pivx-qt")
pkgbase=pivx
_pkgbase=${pkgbase^^}
pkgver=2.1.6
-pkgrel=1
+pkgrel=2
arch=("i686" "x86_64")
url="https://pivx.org/"
depends=("boost-libs")
-makedepends=("boost" "openssl" "qt5-base" "qrencode" "miniupnpc" "protobuf" "db4.8")
-pkgdesc="Transactional security and privacy-focused decentralized open source cryptocurrency"
+makedepends=("boost" "qrencode" "miniupnpc")
+optdepends=("miniupnpc: Firewall-jumping support"
+ "db4.8: Wallet storage")
+pkgdesc="Transactional security and privacy-focused decentralized open source cryptocurrency "
license=("MIT")
source=("https://github.com/PIVX-Project/PIVX/archive/v2.1.6.tar.gz")
sha256sums=("990f70fe7c4dc487694018a41264c79c94c4e58d5529212b8dc09f4658215bb4")
@@ -17,13 +19,14 @@ sha256sums=("990f70fe7c4dc487694018a41264c79c94c4e58d5529212b8dc09f4658215bb4")
build() {
cd "${srcdir}/${_pkgbase}-${pkgver}"
./autogen.sh
- ./configure --prefix=/usr --with-gui=qt5
+ ./configure --prefix=/usr --with-gui=qt5 --with-incompatible-bdb --enable-hardening
make
}
package_pivx-daemon() {
- pkgdesc+=" (daemon)"
- depends+=("openssl" "miniupnpc" "db4.8")
+ pkgdesc+="(daemon)"
+ depends+=("openssl")
+ makedepends+=("qt5-base" "protobuf")
cd "${srcdir}/${_pkgbase}-${pkgver}"
install -Dm644 "contrib/init/pivxd.service" "${pkgdir}/usr/lib/systemd/system/pivxd.service"
@@ -35,8 +38,9 @@ package_pivx-daemon() {
}
package_pivx-cli() {
- pkgdesc+=" (CLI)"
+ pkgdesc+="(CLI)"
depends+=("openssl")
+ makedepends+=("qt5-base")
cd "${srcdir}/${_pkgbase}-${pkgver}"
install -Dm755 "src/pivx-cli" "${pkgdir}/usr/bin/pivx-cli"
@@ -45,8 +49,10 @@ package_pivx-cli() {
}
package_pivx-qt() {
- pkgdesc+=" (Qt)"
- depends+=("qt5-base" "qrencode" "protobuf" "miniupnpc" "db4.8")
+ pkgdesc+="(Qt)"
+ depends+=("qt5-base" "protobuf")
+ makedepends+=("openssl")
+ optdepends+=("qrencode: For generating QR codes")
cd "${srcdir}/${_pkgbase}-${pkgver}"
install -Dm755 "src/qt/pivx-qt" "${pkgdir}/usr/bin/pivx-qt"