summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLamelos2018-01-17 11:35:04 +0100
committerLamelos2018-01-17 11:35:04 +0100
commitfdae25b2a567bebf0fd0d65a051cf6e65d8e91c9 (patch)
tree301e844523b60a879378b2e4ecbea3cc84903cbd
downloadaur-fdae25b2a567bebf0fd0d65a051cf6e65d8e91c9.tar.gz
Initial commit
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD58
-rw-r--r--gulden-i686.desktop.patch12
-rw-r--r--gulden-x86_64.desktop.patch12
4 files changed, 105 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..670adf60f75
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = gulden-appimage
+ pkgdesc = Gulden Cryptocurrency Wallet (AppImage)
+ pkgver = 1.6.4.8
+ pkgrel = 1
+ url = https://github.com/Gulden/gulden-official
+ arch = i686
+ arch = x86_64
+ license = unknown
+ makedepends = p7zip
+ conflicts = gulden-bin
+ noextract = gulden-1.6.4.8.AppImage
+ options = !strip
+ source_i686 = https://github.com/Gulden/gulden-official/releases/download/v1.6.4.8/Gulden-1.6.4.8-i686.AppImage
+ source_i686 = gulden-i686.desktop.patch
+ md5sums_i686 = 2623ed385994053412707803eacfd129
+ md5sums_i686 = 91e656fdf7144613b7a4933b1870c821
+ source_x86_64 = https://github.com/Gulden/gulden-official/releases/download/v1.6.4.8/Gulden-1.6.4.8-x86_64.AppImage
+ source_x86_64 = gulden-x86_64.desktop.patch
+ md5sums_x86_64 = ad4f2d4335006582ec774673535e3d88
+ md5sums_x86_64 = f13005ff95825aac6595c43b5c776195
+
+pkgname = gulden-appimage
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f1568017b57
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,58 @@
+# Gulden-appimage: The Gulden Wallet in an AppImage.
+# Just as the Upwork-appimage package, we use /opt/appimages as the `install` location.
+# Maintainer: Lamelos <lamelos plus aur at gmail dot com>
+
+_pkgname=gulden
+_upkgname=Gulden
+pkgname=gulden-appimage
+pkgver=1.6.4.8
+pkgrel=1
+pkgdesc="Gulden Cryptocurrency Wallet (AppImage)"
+arch=('i686' 'x86_64')
+url="https://github.com/Gulden/gulden-official"
+license=('unknown')
+conflicts=('gulden-bin')
+makedepends=('p7zip')
+noextract=("$_pkgname-$pkgver.AppImage")
+options=('!strip')
+
+source_x86_64=("https://github.com/Gulden/gulden-official/releases/download/v$pkgver/Gulden-$pkgver-x86_64.AppImage"
+ "$_pkgname-x86_64.desktop.patch")
+source_i686=("https://github.com/Gulden/gulden-official/releases/download/v$pkgver/Gulden-$pkgver-i686.AppImage"
+ "$_pkgname-i686.desktop.patch")
+
+md5sums_i686=('2623ed385994053412707803eacfd129'
+ '91e656fdf7144613b7a4933b1870c821')
+md5sums_x86_64=('ad4f2d4335006582ec774673535e3d88'
+ 'f13005ff95825aac6595c43b5c776195')
+
+
+prepare() {
+ cd "${srcdir}"
+
+ 7z x -y "${srcdir}/$_upkgname-$pkgver-$CARCH.AppImage" usr/share/icons
+ 7z x -y "${srcdir}/$_upkgname-$pkgver-$CARCH.AppImage" $_pkgname.png
+ 7z x -y "${srcdir}/$_upkgname-$pkgver-$CARCH.AppImage" $_pkgname.desktop
+
+ # Patch desktop file
+ patch -p1 < $_pkgname-$CARCH.desktop.patch
+}
+
+package() {
+ cd "${srcdir}"
+
+ # Copy all icons
+ install -dm755 "$pkgdir"/usr/share/icons
+ cp -dpr --no-preserve=ownership "usr/share/icons" "$pkgdir"/usr/share
+
+ # Set correct permissions for icons
+ chmod -R 755 "$pkgdir"/usr/share/icons
+
+ # Prevent asking for desktop integration
+ install -dm755 "$pkgdir"/usr/share/appimagekit
+ touch "$pkgdir/usr/share/appimagekit/$_upkgname"_no_desktopintegration
+
+ install -Dm644 "$_pkgname.png" "$pkgdir/usr/share/pixmaps/$_pkgname.png"
+ install -Dm644 "$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop"
+ install -Dm755 "$_upkgname-$pkgver-$CARCH.AppImage" "$pkgdir"/opt/appimages/$_upkgname-$pkgver-$CARCH.AppImage
+}
diff --git a/gulden-i686.desktop.patch b/gulden-i686.desktop.patch
new file mode 100644
index 00000000000..5612c73476c
--- /dev/null
+++ b/gulden-i686.desktop.patch
@@ -0,0 +1,12 @@
+diff -ura --color src.orig/gulden.desktop src.new/gulden.desktop
+--- src.orig/gulden.desktop 2018-01-17 10:48:48.217722365 +0100
++++ src.new/gulden.desktop 2018-01-17 10:57:44.598657660 +0100
+@@ -2,6 +2,7 @@
+ Type=Application
+ Name=Gulden
+ Icon=gulden
+-Exec=Gulden.wrapper
++Exec="/opt/appimages/Gulden-1.6.4.8-i686.AppImage" Gulden.wrapper
++TryExec=/opt/appimages/Gulden-1.6.4.8-i686.AppImage
+ Categories=Office;Utility;Network;Finance;P2P;Economy;Qt;
+ Comment=The payment system of the future today
diff --git a/gulden-x86_64.desktop.patch b/gulden-x86_64.desktop.patch
new file mode 100644
index 00000000000..9a9d5a471de
--- /dev/null
+++ b/gulden-x86_64.desktop.patch
@@ -0,0 +1,12 @@
+diff -ura --color src.orig/gulden.desktop src.new/gulden.desktop
+--- src.orig/gulden.desktop 2018-01-17 10:48:48.217722365 +0100
++++ src.new/gulden.desktop 2018-01-17 10:56:54.715105044 +0100
+@@ -2,6 +2,7 @@
+ Type=Application
+ Name=Gulden
+ Icon=gulden
+-Exec=Gulden.wrapper
++Exec="/opt/appimages/Gulden-1.6.4.8-x86_64.AppImage" Gulden.wrapper
++TryExec=/opt/appimages/Gulden-1.6.4.8-x86_64.AppImage
+ Categories=Office;Utility;Network;Finance;P2P;Economy;Qt;
+ Comment=The payment system of the future today