summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimur Kiyivinski2016-10-15 17:00:13 +0800
committerTimur Kiyivinski2016-10-15 17:00:13 +0800
commit5a9ced33ea894710279e33606d8672f9b95516ba (patch)
tree34959adf6b295381156dbc58c39e45b7ea2ae77b
downloadaur-5a9ced33ea894710279e33606d8672f9b95516ba.tar.gz
Initial AUR release
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD31
-rw-r--r--zcoin-git.install8
-rw-r--r--zcoin.desktop8
4 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e656f5decde
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = zcoin-git
+ pkgdesc = The Zerocoin Cryptocurrency
+ pkgver = 36.7520e9f
+ pkgrel = 1
+ url = https://github.com/zcoinofficial/zcoin
+ arch = any
+ license = Apache
+ depends = boost
+ depends = qt4
+ source = zcoin-git::git+https://github.com/zcoinofficial/zcoin.git
+ source = zcoin.desktop
+ md5sums = SKIP
+ md5sums = 2e3eff2f4fd362a84687979ebb136867
+
+pkgname = zcoin-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5bce2c0f11a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Timur Kiyivinski <timur@linux.com>
+
+pkgname=zcoin-git
+pkgver=36.7520e9f
+pkgrel=1
+pkgdesc='The Zerocoin Cryptocurrency'
+arch=('any')
+url='https://github.com/zcoinofficial/zcoin'
+license=('Apache')
+depends=('boost' 'qt4')
+source=("$pkgname::git+https://github.com/zcoinofficial/zcoin.git"
+ "${pkgname/-git/}.desktop")
+md5sums=('SKIP'
+ '2e3eff2f4fd362a84687979ebb136867')
+
+pkgver() {
+ cd "$pkgname"
+ echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+build() {
+ cd "$pkgname"
+ qmake-qt4 USE_UPNP=- -spec /usr/share/qt4/mkspecs/linux-g++-64 -o Makefile zcoin.pro
+ make
+}
+
+package() {
+ install -Dm755 "$srcdir/$pkgname/zcoin-qt" "$pkgdir/usr/bin/zcoin-qt"
+ install -Dm644 "$srcdir/$pkgname/src/qt/res/icons/zcoin.png" "$pkgdir/usr/share/icons/zcoin.png"
+ install -Dm644 "${pkgname/-git/}.desktop" "$pkgdir/usr/share/applications/${pkgname/-git/}.desktop"
+}
diff --git a/zcoin-git.install b/zcoin-git.install
new file mode 100644
index 00000000000..180778474ae
--- /dev/null
+++ b/zcoin-git.install
@@ -0,0 +1,8 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f /usr/share/icons/
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
diff --git a/zcoin.desktop b/zcoin.desktop
new file mode 100644
index 00000000000..11138e0f90e
--- /dev/null
+++ b/zcoin.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Type=Application
+Name=Zerocoin
+Comment=The Zerocoin Cryptocurrency
+Exec=/usr/bin/zcoin-qt
+Terminal=false
+Icon=zcoin
+Categories=Network