diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -1,8 +1,8 @@ -# Maintainer: Your Name <youremail@domain.com> +# Maintainer: Sefa Eyeoglu <contact@scrumplex.net> _pkgname=espanso pkgname=${_pkgname} -pkgver=0.2.4 +pkgver=0.3.0 pkgrel=1 pkgdesc="Cross-platform Text Expander written in Rust" arch=(x86_64) @@ -11,12 +11,18 @@ license=("GPL3") depends=("xdotool" "xclip" "libxtst") makedepends=("rust" "git") install="${pkgname}.install" -source=("${_pkgname}::git+https://github.com/federico-terzi/espanso.git#tag=v${pkgver}" - "service") -sha512sums=('SKIP' - '5eb7b751e9432c7dde71da1f0c8c459b33a6a15d3a81aa21cbaa251b7b2cdddc47da9a0ab22215a9fb063ecdd8123c86c8f96459e627fd6daff4e690ff1a6df2') +source=("${_pkgname}::git+https://github.com/federico-terzi/espanso.git#tag=v${pkgver}") +sha512sums=('SKIP') +prepare() { + cd "$_pkgname" + + # don't change the original service file, as it will be embedded in the binary + cp "src/res/linux/systemd.service" "systemd.service" + sed -i "s|{{{espanso_path}}}|/usr/bin/espanso|g" "systemd.service" +} + check() { cd "$_pkgname" @@ -33,7 +39,7 @@ package() { cd "$_pkgname" install -Dm755 "target/release/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}" - install -Dm644 "../service" "${pkgdir}/usr/lib/systemd/user/${_pkgname}.service" + install -Dm644 "systemd.service" "${pkgdir}/usr/lib/systemd/user/${_pkgname}.service" # install our own copy install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${_pkgname}/README.md" } |