# Maintainer: Sefa Eyeoglu _pkgver=2.1.4-beta pkgname=espanso pkgver=2.1.4 pkgrel=1 pkgdesc="Cross-platform Text Expander written in Rust" arch=(x86_64) url="https://espanso.org/" license=("GPL3") depends=("xdotool" "xclip" "libxtst" "libnotify" "wxgtk2") makedepends=("rust" "git" "cmake" "cargo-make" "rust-script") options=("!lto") # fails with LTO as of 2022-03 source=("git+https://github.com/federico-terzi/espanso.git#tag=v${_pkgver}") sha512sums=('SKIP') prepare() { cd "espanso" # don't change the original service file, as it will be embedded in the binary cp "espanso/src/res/linux/systemd.service" "systemd.service" sed -i "s|{{{espanso_path}}}|/usr/bin/espanso|g" "systemd.service" } build() { cd "espanso" cargo make --profile release build-binary } package() { cd "espanso" install -Dm755 "target/release/espanso" "${pkgdir}/usr/bin/espanso" install -Dm644 "systemd.service" "${pkgdir}/usr/lib/systemd/user/espanso.service" install -Dm644 "README.md" "${pkgdir}/usr/share/doc/espanso/README.md" }