summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSefa Eyeoglu2019-10-03 18:10:45 +0200
committerSefa Eyeoglu2019-10-03 18:10:45 +0200
commit5f9055228b47e631ba123e77d8cb3f69886d287f (patch)
tree646095801ada6446c90f6b7649752e03e5efc2a5
downloadaur-5f9055228b47e631ba123e77d8cb3f69886d287f.tar.gz
Initial release
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD39
-rw-r--r--espanso.install5
-rw-r--r--service8
4 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f09ae978bd3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = espanso
+ pkgdesc = Cross-platform Text Expander written in Rust
+ pkgver = 0.2.3
+ pkgrel = 1
+ url = https://espanso.org/
+ install = espanso.install
+ arch = x86_64
+ license = GPL3
+ makedepends = rust
+ makedepends = git
+ depends = xdotool
+ depends = xclip
+ depends = libxtst
+ source = espanso::git+https://github.com/federico-terzi/espanso.git#tag=v0.2.3
+ source = service
+ sha512sums = SKIP
+ sha512sums = 5eb7b751e9432c7dde71da1f0c8c459b33a6a15d3a81aa21cbaa251b7b2cdddc47da9a0ab22215a9fb063ecdd8123c86c8f96459e627fd6daff4e690ff1a6df2
+
+pkgname = espanso
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..97258b3659d
--- /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"
+}
diff --git a/espanso.install b/espanso.install
new file mode 100644
index 00000000000..aa071f60604
--- /dev/null
+++ b/espanso.install
@@ -0,0 +1,5 @@
+function post_install {
+ echo "
+To start espanso automatically when you log in, enable the systemd user service: systemctl --user enable espanso.service
+"
+}
diff --git a/service b/service
new file mode 100644
index 00000000000..8c6ad438113
--- /dev/null
+++ b/service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Espanso daemon
+
+[Service]
+ExecStart=/usr/bin/espanso daemon
+
+[Install]
+WantedBy=default.target