blob: 86617739faa4b69af965d7fa43aeed638cabfa45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: Luis Aranguren <pizzaman@hotmail.com>
_pkgname=KeepKey-Desktop
_upkgname=keepkey-desktop
pkgname=keepkey-desktop-appimage
pkgver=3.0.27
pkgrel=1
pkgdesc="An all-in-one suite for using your KeepKey hardware wallet."
arch=('x86_64' 'arm64')
url="https://www.keepkey.com/"
license=('GPL3')
depends=('hicolor-icon-theme' 'zlib' 'fuse' 'keepkey-udev' 'gtk3' 'nss')
makedepends=('p7zip')
noextract=("$_pkgname-$pkgver.AppImage")
options=('!strip')
source=("https://github.com/keepkey/$_upkgname/releases/download/v$pkgver/$_pkgname-$pkgver.AppImage")
sha256sums=('3aba3658075f799a09b9b4f005fc0110684639dcc06282e0242da4a6108bcfc0')
prepare() {
cd "${srcdir}"
7z x "${srcdir}/$_pkgname-$pkgver.AppImage" $_upkgname.desktop usr/share/icons/hicolor/0x0/apps/$_upkgname.png LICENSE.electron.txt LICENSES.chromium.html
sed -i "s/Exec=AppRun/Exec=\/usr\/bin\/$_upkgname/" $_upkgname.desktop
}
package() {
cd "${srcdir}"
install -Dm755 "$_pkgname-${pkgver}.AppImage" "${pkgdir}/opt/$_upkgname/$_upkgname.AppImage"
install -Dm644 "$_upkgname.desktop" "${pkgdir}/usr/share/applications/$_upkgname.desktop"
install -Dm644 "usr/share/icons/hicolor/0x0/apps/$_upkgname.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/$_upkgname.png"
mkdir "${pkgdir}/usr/bin"
ln -s "/opt/$_upkgname/$_upkgname.AppImage" "${pkgdir}/usr/bin/$_upkgname"
install -Dm644 LICENSE.electron.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.electron.txt"
install -Dm644 LICENSES.chromium.html "$pkgdir/usr/share/licenses/$pkgname/LICENSES.chromium.html"
}
|