diff options
author | Sefa Eyeoglu | 2019-10-03 18:10:45 +0200 |
---|---|---|
committer | Sefa Eyeoglu | 2019-10-03 18:10:45 +0200 |
commit | 5f9055228b47e631ba123e77d8cb3f69886d287f (patch) | |
tree | 646095801ada6446c90f6b7649752e03e5efc2a5 /PKGBUILD | |
download | aur-5f9055228b47e631ba123e77d8cb3f69886d287f.tar.gz |
Initial release
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..97258b3659d9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Your Name <youremail@domain.com> + +_pkgname=espanso +pkgname=${_pkgname} +pkgver=0.2.3 +pkgrel=1 +pkgdesc="Cross-platform Text Expander written in Rust" +arch=(x86_64) +url="https://espanso.org/" +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') + + +check() { + cd "$_pkgname" + + cargo test --release --locked +} + +build() { + cd "$_pkgname" + + cargo build --release --locked +} + +package() { + cd "$_pkgname" + + install -Dm755 "target/release/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}" + install -Dm644 "../service" "${pkgdir}/usr/lib/systemd/user/${_pkgname}.service" + + install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${_pkgname}/README.md" +} |