summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorxsmile2018-10-25 20:58:50 +0200
committerxsmile2018-10-25 20:58:50 +0200
commitd1acb34b9fa3fd39ce076b0797455f458836fd37 (patch)
tree730c7cf22d01fa1e260aa0bb890d22077e653d1c /PKGBUILD
parent2e568e8f2598a0ab9a543e3c1f70629e1679683b (diff)
downloadaur-d1acb34b9fa3fd39ce076b0797455f458836fd37.tar.gz
Use system Electron
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 13 insertions, 17 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f20b65211bd..8d9463c2f8e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=mycrypto-bin
_pkgname=mycrypto
pkgver=1.4.0
-pkgrel=1
+pkgrel=2
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')
@@ -12,9 +12,11 @@ conflicts=('mycrypto')
url='https://github.com/MyCryptoHQ/MyCrypto'
license=('MIT')
source=("${url}/releases/download/${pkgver}/linux-x86-64_${pkgver}_MyCrypto.AppImage"
- 'LICENSE')
+ 'LICENSE'
+ 'mycrypto.sh')
sha256sums=('7d98cbea40e6c9083ce4478965c0235b4e9d17f15d1a01840a05533219e45d8a'
- 'e4d52665623eaeb7d6efa43c0c29d225cd009cd766dc15f1b464a19cab1ec5cb')
+ 'e4d52665623eaeb7d6efa43c0c29d225cd009cd766dc15f1b464a19cab1ec5cb'
+ 'eb800f7d523bbff35010f640d06cc35c7fd62ee522c9615cd45acb5413df01f0')
prepare() {
# Extract AppImage
@@ -27,21 +29,15 @@ 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
+ install -Dm644 app/resources/app.asar -t "$pkgdir"/usr/share/$_pkgname/
+ # Executable
+ install -Dm755 ../mycrypto.sh "$pkgdir"/usr/bin/$_pkgname
# Desktop entry
- sed -i s/AppRun/mycrypto/ mycrypto.desktop
- install -Dm644 mycrypto.desktop -t "$pkgdir"/usr/share/applications
+ sed -i s/AppRun/$_pkgname/ 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 {} \;
+ -t "$pkgdir"/usr/share/icons/hicolor/256x256/apps/
+ # License
+ install -Dm644 "$srcdir"/LICENSE -t "$pkgdir"/usr/share/licenses/$_pkgname/
}