summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAaron Miller2017-03-19 03:49:23 -0700
committerAaron Miller2017-03-19 03:49:23 -0700
commit178fb2cf4ecc18e21a4f0f921d24fd194864d7e2 (patch)
tree3f62782ddf47922f33e3f4aadea869f06f3d62a3 /PKGBUILD
downloadaur-178fb2cf4ecc18e21a4f0f921d24fd194864d7e2.tar.gz
first revision
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD57
1 files changed, 57 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ee52a225d1b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,57 @@
+# Maintainer: Aaron Miller <aaronm at cldtk dot com>
+
+pkgname=("pivx-daemon" "pivx-cli" "pivx-qt")
+pkgbase=pivx
+_pkgbase=${pkgbase^^}
+pkgver=2.1.6
+pkgrel=1
+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"
+license=("MIT")
+source=("https://github.com/PIVX-Project/PIVX/archive/v2.1.6.tar.gz")
+sha256sums=("990f70fe7c4dc487694018a41264c79c94c4e58d5529212b8dc09f4658215bb4")
+
+build() {
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+ ./autogen.sh
+ ./configure --prefix=/usr --with-gui=qt5
+ make
+}
+
+package_pivx-daemon() {
+ pkgdesc+=" (daemon)"
+ depends+=("openssl" "miniupnpc" "db4.8")
+
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+ install -Dm644 "contrib/init/pivxd.service" "${pkgdir}/usr/lib/systemd/system/pivxd.service"
+ install -Dm755 "src/pivxd" "${pkgdir}/usr/bin/pivxd"
+ install -Dm644 "contrib/debian/examples/pivx.conf" "${pkgdir}/usr/share/doc/${pkgname}/examples/pivx.conf"
+ install -Dm644 "contrib/debian/manpages/pivxd.1" "${pkgdir}/usr/share/man/man1/pivxd.1"
+ install -Dm644 "contrib/debian/manpages/pivx.conf.5" "${pkgdir}/usr/share/man/man5/pivx.conf.5"
+ install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+}
+
+package_pivx-cli() {
+ pkgdesc+=" (CLI)"
+ depends+=("openssl")
+
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+ install -Dm755 "src/pivx-cli" "${pkgdir}/usr/bin/pivx-cli"
+ install -Dm755 "src/pivx-tx" "${pkgdir}/usr/bin/pivx-tx"
+ install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+}
+
+package_pivx-qt() {
+ pkgdesc+=" (Qt)"
+ depends+=("qt5-base" "qrencode" "protobuf" "miniupnpc" "db4.8")
+
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+ install -Dm755 "src/qt/pivx-qt" "${pkgdir}/usr/bin/pivx-qt"
+ install -Dm644 "contrib/debian/pivx-qt.desktop" "${pkgdir}/usr/share/applications/pivx.desktop"
+ install -Dm644 "share/pixmaps/bitcoin128.png" "${pkgdir}/usr/share/pixmaps/pivx128.png"
+ install -Dm644 "contrib/debian/manpages/pivx-qt.1" "${pkgdir}/usr/share/man/man1/pivx-qt.1"
+ install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+}