blob: dab54b695f723f5289b68a7523eb8f6a51524597 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Maintainer: Zosoled <zosoled@codecow.xyz>
_pkgname="ledger-live-desktop"
pkgname="${_pkgname}-appimage"
_appimage="${_pkgname}.AppImage"
pkgver=2.92.1
pkgrel=1
pkgdesc="Desktop companion app for Ledger hardware wallets."
arch=("x86_64")
url="https://www.ledger.com/ledger-live"
license=("MIT")
depends=(
alsa-lib
fuse2
glibc
gtk3
hicolor-icon-theme
nss
zlib
)
provides=(
ledger-live-desktop
)
options=(!strip)
noextract=(${_appimage})
source=(
${_appimage}::https://download.live.ledger.com/${_pkgname}-${pkgver}-linux-${arch[0]}.AppImage
20-hw1.rules::https://raw.githubusercontent.com/LedgerHQ/udev-rules/master/20-hw1.rules
LICENSE::https://raw.githubusercontent.com/LedgerHQ/ledger-live/@ledgerhq/live-desktop@${pkgver}/apps/${_pkgname}/LICENSE
)
# AppImage checksum obtained from https://www.ledger.com/ledger-live/lld-signatures
sha512sums=(
'eeff501b4141d9c6ef979200f065faa8f8f6a90c2c3e6e37d41806a594c559791c554517f79994b87c53b34b8a02a9d7291cb892889e73f451b3a4528b901f49'
'2fee06f9f145e45ac229b86552edeab77f07547c45f29e6e65b08281de071e6ced3102340d66b099c085aea0fef97e70b35e8dbb68bc4ea1ed8e8019b3f0d30a'
'915edd51fe7732af57f5a4ca8f4c61c4f435de6357e34ed0733cac8d950d80b3a9e513deac0a3672a07f38ff871a57032a221b3aa27edae8e42cc00586fe3318'
)
prepare() {
cd "${srcdir}"
chmod +x ${_appimage}
./${_appimage} --appimage-extract ${_pkgname}.desktop
./${_appimage} --appimage-extract usr/share/icons
cd squashfs-root
sed -i \
-e "s|Exec=AppRun|Exec=/usr/bin/${_pkgname}|" \
-e "s|Categories=Finance;|Categories=Office;Finance;|" \
"${_pkgname}.desktop"
}
package() {
cd "${srcdir}"
install -Dm 755 -t "${pkgdir}"/opt/${pkgname}/ ${_appimage}
install -Dm 644 -t "${pkgdir}"/etc/udev/rules.d/ 20-hw1.rules
install -Dm 644 -t "${pkgdir}"/usr/share/licenses/${pkgname}/ LICENSE
install -dm 755 "${pkgdir}"/usr/bin && ln -s /opt/${pkgname}/${_appimage} "${pkgdir}"/usr/bin/${_pkgname}
cd squashfs-root
install -Dm 644 -t "${pkgdir}"/usr/share/applications/ ${_pkgname}.desktop
for i in 128 256 512 1024; do
install -Dm 644 -t "${pkgdir}"/usr/share/icons/hicolor/${i}x${i}/apps/ usr/share/icons/hicolor/${i}x${i}/apps/${_pkgname}.png
done
}
|