summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorxsmile2018-08-31 12:24:43 +0200
committerxsmile2018-08-31 12:24:43 +0200
commita7374ed87bf213d0a7550620cbbdaeca614c0381 (patch)
treeb2ba9f5fec468c73d1ba77ea61585f10d9392058 /PKGBUILD
downloadaur-a7374ed87bf213d0a7550620cbbdaeca614c0381.tar.gz
1.2.2
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6e9da08c25f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: xsmile <>
+
+pkgname=mycrypto-bin
+_pkgname=mycrypto
+pkgver=1.2.2
+pkgrel=1
+pkgdesc='Open-source, client-side tool for generating Ether Wallets, handling ERC-20 tokens, and interacting with the blockchain more easily'
+arch=('x86_64')
+depends=('gconf' 'gtk3' 'libxss' 'nss')
+provides=('mycrypto')
+conflicts=('mycrypto')
+url='https://github.com/MyCryptoHQ/MyCrypto'
+license=('MIT')
+source=("${url}/releases/download/${pkgver}/linux-x86-64_${pkgver}_MyCrypto.AppImage"
+ 'LICENSE')
+sha256sums=('e4a41f64f0b070faf0ea2656ab13700f6a706511afcd79378470786c9eccb33f'
+ 'e4d52665623eaeb7d6efa43c0c29d225cd009cd766dc15f1b464a19cab1ec5cb')
+
+prepare() {
+ # Extract AppImage
+ chmod +x linux-x86-64_${pkgver}_MyCrypto.AppImage
+ ./linux-x86-64_${pkgver}_MyCrypto.AppImage --appimage-extract &>/dev/null
+ mv squashfs-root $_pkgname-$pkgver
+}
+
+package() {
+ cd $_pkgname-$pkgver
+
+ # Lib directory
+ install -d "$pkgdir"/usr/lib/$_pkgname
+ cp -r app/{locales,resources,*.dat,*.pak,*.so,*.bin} "$pkgdir"/usr/lib/$_pkgname
+ install -Dm755 app/mycrypto -t "$pkgdir"/usr/lib/$_pkgname
+ # Desktop entry
+ sed -i s/AppRun/mycrypto/ mycrypto.desktop
+ install -Dm644 mycrypto.desktop -t "$pkgdir"/usr/share/applications
+ # Icon
+ install -Dm644 usr/share/icons/hicolor/0x0/apps/mycrypto.png \
+ -t "$pkgdir"/usr/share/icons/hicolor/256x256/apps
+ # Executable
+ install -d "$pkgdir"/usr/bin
+ ln -s /usr/lib/$_pkgname/mycrypto "$pkgdir"/usr/bin/$_pkgname
+ # Licenses
+ install -Dm644 "$srcdir"/LICENSE -t "$pkgdir"/usr/share/licenses/$_pkgname
+ cp -r app/{*.txt,*.html} "$pkgdir"/usr/share/licenses/$_pkgname
+ # Fix permissions
+ find "$pkgdir"/usr -type d -exec chmod 755 {} \;
+}