You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.3 KiB
53 lines
1.3 KiB
# Maintainer: Meriadec Pillet <meriadec.pillet@gmail.com>
|
|
# shellcheck disable=SC2154,SC2034,SC2164
|
|
|
|
pkgname=ledger-live
|
|
pkgver=1.1.0
|
|
pkgrel=1
|
|
pkgdesc="Open source companion app for your Ledger devices"
|
|
arch=('x86_64')
|
|
url="https://www.ledgerwallet.com/live"
|
|
license=('MIT')
|
|
makedepends=(yarn python2)
|
|
|
|
# TODO generate changelog from release notes
|
|
changelog=
|
|
|
|
source=("https://github.com/LedgerHQ/ledger-live-desktop/archive/v${pkgver}.tar.gz"
|
|
"ledger-live.desktop")
|
|
md5sums=('5dc6bd1e8d6dedcfe760d1c75565aad8'
|
|
'52705147909a0a988907a23a71199092')
|
|
# TODO sign with ledger pgp
|
|
validpgpkeys=()
|
|
|
|
extractedFolder=ledger-live-desktop-$pkgver
|
|
|
|
prepare() {
|
|
cd $extractedFolder
|
|
export JOBS=max
|
|
yarn --ignore-scripts
|
|
}
|
|
|
|
build() {
|
|
cd $extractedFolder
|
|
export GIT_REVISION=$pkgver
|
|
export JOBS=max
|
|
yarn dist
|
|
}
|
|
|
|
package() {
|
|
install -D -m644 \
|
|
"${pkgname}.desktop" \
|
|
"${pkgdir}/usr/share/applications/${pkgname}.desktop"
|
|
|
|
cd $extractedFolder
|
|
|
|
install -dm755 "${pkgdir}/opt"
|
|
cp -r "dist/linux-unpacked" "${pkgdir}/opt/ledger-live"
|
|
install -dm755 "${pkgdir}/usr/bin"
|
|
ln -s "/opt/${pkgname}/ledger-live-desktop" "${pkgdir}/usr/bin/${pkgname}"
|
|
|
|
install -D -m644 \
|
|
"static/images/browser-window-icon-512x512.png" \
|
|
"${pkgdir}/usr/share/icons/hicolor/512x512/apps/ledger-live.png"
|
|
}
|
|
|