blob: 558b628ee60e1364cb1b3f2b41a9fef169220f7a (
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
|
# Maintainer: mmoya <mmoya at mmoya dot org>
_pkgname=nym-wallet
pkgname="${_pkgname}-appimage"
pkgver=1.2.10
pkgrel=1
pkgdesc="The Nym desktop wallet enables you to use the Nym network and take advantage of its key capabilities"
arch=('x86_64')
url="https://github.com/nymtech/nym"
license=('Apache 2.0')
depends=('webkit2gtk')
options=(!strip)
_filename="${_pkgname}_${pkgver}_amd64.AppImage"
source_x86_64=("https://github.com/nymtech/nym/releases/download/nym-wallet-v${pkgver}/${_filename}")
sha256sums_x86_64=(4c84826e1cfc433c0ff84651ff55eaaab3a542f2505ef62968d2033bb6e219f1)
package() {
chmod +x ${_filename}
./${_filename} --appimage-extract "nym-wallet.desktop" >/dev/null 2>&1
./${_filename} --appimage-extract "usr/bin/nym-wallet" >/dev/null 2>&1
./${_filename} --appimage-extract "usr/share/icons/hicolor/*/apps/nym-wallet.png" >/dev/null 2>&1
install -Dm644 "squashfs-root/nym-wallet.desktop" "${pkgdir}/usr/share/applications/nym-wallet.desktop"
install -Dm755 "squashfs-root/usr/bin/nym-wallet" "${pkgdir}/usr/bin/nym-wallet"
chmod 755 "${pkgdir}/usr/bin"
install -dm755 "${pkgdir}/usr/share/icons"
cp -dpr --no-preserve=ownership "squashfs-root/usr/share/icons" "${pkgdir}/usr/share"
find "${pkgdir}/usr/share/icons" -type d -exec chmod 755 {} \;
find "${pkgdir}/usr/share/icons" -type f -name "nym-wallet.png" -exec chmod 644 {} \;
}
|