blob: 8e1ae88897c96adfaaf811b4adba095460a618e4 (
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
|
# Maintainer: Sparklyballs
pkgname=forkboard
_pkgname_src=fork-board
pkgver=1.1.1
pkgrel=1.2
pkgdesc='An ElectronJS Dashboard App to show wallets balances from Chia and Forks in one convenient location.'
arch=('x86_64')
url='https://github.com/aaroncarpenter/fork-board'
license=('MIT')
depends=('gtk3' 'nss')
makedepends=( 'git' 'npm' )
source=(${_pkgname_src}-${pkgver}.tar.gz::https://github.com/aaroncarpenter/fork-board/archive/refs/tags/v${pkgver}.tar.gz
forkboard.desktop
forkboard.sh)
sha256sums=('df3dbaf567628cb2d9bb96c5402a7a07f1e5a8ec4cf597ce6c6dbec69650d131'
'20f8f8e3b757c7450be207ecc5a976e2b405cae20ea3e1290c1856d9c2f324a9'
'66918df837e22336fbf16436f632202651a73bd2e5de4f91119249bc2f889e95')
build() {
cd ${_pkgname_src}-${pkgver}
npm install
node_modules/.bin/electron-packager . ${pkgname} --overwrite --linux --x64 --icon=assets/icons/fork-board-gray.png --prune=true --out=./out --ignore=^/assets/config
}
package() {
cd "${_pkgname_src}-${pkgver}"
mkdir -p "${pkgdir}/opt/${pkgname}"
cp -r out/"${pkgname}"-linux-x64/* "${pkgdir}/opt/${pkgname}"
mkdir -p "${pkgdir}/opt/${pkgname}"/resources/app/{assets/config,logs}
chmod a+rw -R "${pkgdir}/opt/${pkgname}"/resources/app/{assets/config,logs}
chmod a+rx "${pkgdir}/opt/${pkgname}/${pkgname}"
install -vDm644 "assets/icons/${_pkgname_src}.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/${pkgname}.png"
install -vDm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
install -vDm644 "${srcdir}/${pkgname}.desktop" -t "${pkgdir}"/usr/share/applications
}
|