35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
# Template file for 'kindling'
|
|
pkgname=kindling
|
|
version=1.3.1
|
|
revision=1
|
|
archs="x86_64 aarch64"
|
|
build_style=cargo
|
|
hostmakedepends="cargo nodejs pkg-config"
|
|
makedepends="libwebkit2gtk41-devel libsoup3-devel libayatana-appindicator-devel librsvg-devel patchelf"
|
|
depends="libwebkit2gtk41 libayatana-appindicator"
|
|
short_desc="Free, open-source fiction writing software for plotters and outliners"
|
|
maintainer="Juan Rojas <juandmcr@protonmail.com>"
|
|
license="MIT"
|
|
homepage="https://kindlingwriter.com"
|
|
distfiles="https://github.com/smith-and-web/kindling/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=b9bd0599873d77946f295338a1568003e799dece489bc2567384a7eda550cb06
|
|
make_check=no # Tests require graphical env and a running WebDriver which aren't available in xbps-src chroot.
|
|
|
|
pre_build() {
|
|
npm ci --ignore-scripts
|
|
}
|
|
|
|
do_build() {
|
|
npm run tauri build -- --no-bundle
|
|
}
|
|
|
|
do_install() {
|
|
if [ -n "${CARGO_BUILD_TARGET}" ]; then
|
|
vbin "src-tauri/target/${CARGO_BUILD_TARGET}/release/kindling"
|
|
else
|
|
vbin src-tauri/target/release/kindling
|
|
fi
|
|
vinstall src-tauri/icons/128x128.png 644 usr/share/icons/hicolor/128x128/apps kindling.png
|
|
vlicense LICENSE
|
|
}
|