meriadec
7 years ago
5 changed files with 124 additions and 6 deletions
@ -1,11 +1,20 @@ |
|||
.DS_Store |
|||
*.log |
|||
/.env |
|||
/dist/ |
|||
/flow-typed/ |
|||
/node_modules/ |
|||
/static/fonts/museosans/ |
|||
/storybook-static/ |
|||
thumbs.db |
|||
|
|||
/build/linux/arch/.SRCINFO |
|||
/build/linux/arch/pkg |
|||
/build/linux/arch/src |
|||
/build/linux/arch/*.tar.gz |
|||
/build/linux/arch/*.tar.xz |
|||
|
|||
# TODO this should be in devs global gitignore |
|||
# it makes no sense to have it here |
|||
*.log |
|||
.DS_Store |
|||
.vscode |
|||
jsconfig.json |
|||
thumbs.db |
|||
jsconfig.json |
|||
|
@ -0,0 +1,53 @@ |
|||
# Maintainer: Meriadec Pillet <meriadec.pillet@gmail.com> |
|||
# shellcheck disable=SC2154,SC2034,SC2164 |
|||
|
|||
pkgname=ledger-live |
|||
pkgver=1.0.3 |
|||
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=('51ff80d0db79e82c52c1732b52ff1174' |
|||
'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" |
|||
} |
@ -0,0 +1,10 @@ |
|||
[Desktop Entry] |
|||
Name=ledger-live |
|||
Comment=Open source companion app for your Ledger devices |
|||
Path=/opt/ledger-live |
|||
Exec=ledger-live |
|||
Icon=ledger-live |
|||
Type=Application |
|||
StartupNotify=true |
|||
Categories=Utility; |
|||
StartupWMClass=ledger-live |
@ -0,0 +1,44 @@ |
|||
#!/bin/bash |
|||
|
|||
set -e |
|||
|
|||
# shellcheck disable=SC1091 |
|||
source scripts/helpers/run-job.sh |
|||
|
|||
# shellcheck disable=SC1091 |
|||
source scripts/helpers/display-env.sh |
|||
|
|||
gitTag=$(git describe --tags) |
|||
tmpDir=$(mktemp -d) |
|||
|
|||
runJob \ |
|||
"pushd build/linux/arch >/dev/null; makepkg --printsrcinfo > .SRCINFO; popd >/dev/null" \ |
|||
"creating .SRCINFO" \ |
|||
"successfully created .SRCINFO" \ |
|||
"error creating .SRCINFO" |
|||
|
|||
runJob \ |
|||
"git clone ssh://aur@aur.archlinux.org/ledger-live.git ${tmpDir}" \ |
|||
"cloning AUR repository" \ |
|||
"cloned AUR repository" \ |
|||
"error cloning AUR repository" |
|||
|
|||
runJob \ |
|||
"cp build/linux/arch/* \"${tmpDir}\"; cp build/linux/arch/.SRCINFO \"${tmpDir}\"" \ |
|||
"copying files" \ |
|||
"copied files" \ |
|||
"error copying files" |
|||
|
|||
ls -l "$tmpDir" |
|||
|
|||
# shellcheck disable=SC2164 |
|||
cd "$tmpDir" |
|||
|
|||
git add . |
|||
git commit -m "Build for ${gitTag}" |
|||
|
|||
runJob \ |
|||
"git push origin master" \ |
|||
"pushing package" \ |
|||
"successfully pushed package" \ |
|||
"error pushing package" |
Loading…
Reference in new issue