summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a0b82235eb45cb07e366a34dec111eaefeebfa45 (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
36
37
38
39
40
41
# Maintainer: Luis Aranguren <pizzaman@hotmail.com>

pkgname='nunchuk-desktop-appimage'
_pkgname='nunchuk-desktop'
__pkgname='nunchuk-linux'
___pkgname='nunchuk'
pkgver=1.9.40
pkgrel=1
pkgdesc="Desktop bitcoin wallet with multisig, hardware, nfc and air-gapped key support"
arch=('x86_64')
url="https://nunchuk.io/"
license=('GPL3')
depends=('hicolor-icon-theme' 'zlib' 'fuse' 'gtk3')
makedepends=('p7zip')
optdepends=('bitbox-udev: Udev rules for Bitbox hardware wallet support'
            'keepkey-udev: Udev rules for Keepkey hardware wallet support'
#            'blockstream-jade-udev: Udev rules for Blockstream Jade hardware wallet support'
            'ledger-udev: Udev rules for Ledger hardware wallet support'
            'python-ckcc-protocol: Udev rules for Coinkite Coldcard hardware wallet support'
            'trezor-udev: Udev rules for Trezor hardware wallet support')
provides=('nunchuk-qt')
options=('!strip')
source=("https://github.com/nunchuk-io/$_pkgname/releases/download/$pkgver/$__pkgname-v$pkgver.zip")

sha256sums=('8e02978b81c685fca5bddefd4b28a07001a3431d0fe5cbfc51842bd804ebd258')

#validpgpkeys=('8C8ECD3F660CA53CD878792A6E38A462ED2EF525') # Ta Tat Tai (Nunchuk binary release signing key) <tatattai@gmail.com>

prepare() {
    cd "${srcdir}"
    7z x "${srcdir}/$__pkgname-${pkgver}/$__pkgname-${pkgver}.AppImage" $___pkgname-qt.desktop $___pkgname-qt.png
}

package() {
    cd "${srcdir}"
    install -Dm755 "$__pkgname-${pkgver}/$__pkgname-${pkgver}.AppImage" "${pkgdir}/opt/$_pkgname/$__pkgname-${pkgver}.AppImage"
    install -Dm644 "$___pkgname-qt.desktop"                             "${pkgdir}/usr/share/applications/$___pkgname-qt.desktop"
    install -Dm644 "$___pkgname-qt.png"                                 "${pkgdir}/usr/share/icons/hicolor/512x512/apps/$___pkgname-qt.png"
    mkdir "${pkgdir}/usr/bin"
    ln -s "/opt/$_pkgname/$__pkgname-${pkgver}.AppImage"                "${pkgdir}/usr/bin/$___pkgname-qt"
}