# Template file for 'kindling' pkgname=kindling version=1.3.0 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 " license="MIT" homepage="https://kindlingwriter.com" distfiles="https://github.com/smith-and-web/kindling/archive/refs/tags/v${version}.tar.gz" checksum=eed2cdb94e3cfda688a0cf8c853c022b64bd64d31e763453f021521a4f78a733 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 }