blob: 2e1986c0fb04d7b0f11443ae9b6f31e8f497e8a0 (
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
|
# Maintainer: OmegaRogue <omegarogue@omegavoid.codes>
pkgname=fvtt-player-client
pkgver=1.5.5
pkgrel=1
pkgdesc='Foundry VTT Desktop Client'
arch=('x86_64')
url='https://github.com/theripper93/fvtt-player-client'
license=('MIT')
depends=('electron' 'nodejs')
makedepends=('git' 'yarn' 'npm')
provides=('fvtt-player-client')
source=("$pkgname-${pkgver//_/-}.tar.gz::https://github.com/theripper93/${pkgname}/archive/${pkgver}.tar.gz"
fvtt-desktop-client.desktop
fvtt-desktop-client
)
sha256sums=('5550c99b136967abe5b3e43f2cf12291c0b57768b08ac00a6f21c2545e8ff80b'
'f23835dbdc669c2915ba44c650973a00c9606912c421fc36ff72092658df8b4a'
'91fdedeca016f05254f4b88b6cebb11f6d5961846df6579e9f28f8ea4dd67474')
prepare() {
cd "${pkgname}-${pkgver//_/-}"
yarn install
}
build() {
cd "${pkgname}-${pkgver//_/-}"
yarn version --no-git-tag-version --new-version ${pkgver//_/-}
yarn run electron-forge make --platform linux --targets '@electron-forge/maker-zip'
}
package() {
install -Dm644 -t "$pkgdir/usr/share/applications" fvtt-desktop-client.desktop
install -Dm755 -t "$pkgdir/usr/bin" fvtt-desktop-client
cd "${pkgname}-${pkgver//_/-}"
install -dm755 "$pkgdir/usr/lib/fvtt-desktop-client"
cp -rt "$pkgdir/usr/lib/fvtt-desktop-client" out/vtt-desktop-client-linux-x64/*
}
|