summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9a01d9fe6d7f671a4a687f244bc25b1454672e75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: allddd <allddd (at) proton (dot) me>

pkgname=espanso-x11-bin
pkgver=2.2.1
pkgrel=1
pkgdesc='Cross-platform Text Expander written in Rust'
arch=('x86_64')
url='https://espanso.org'
license=('GPL-3.0-only')
depends=('xdotool' 'xclip')
provides=('espanso')
conflicts=('espanso')
options=('!strip')
source=("espanso::https://github.com/espanso/espanso/releases/download/v${pkgver}/Espanso-X11.AppImage"
        "espanso.service::https://raw.githubusercontent.com/espanso/espanso/v${pkgver}/espanso/src/res/linux/systemd.service")
sha256sums=('1f91e3f16af11f6a3965775cb27e5bf2875dae375f6f6f1e8dc6a83f2888219b'
            '0448185f394858b1f06c6458869e932da317501759c3f018a696d7789b15e8b9')

prepare() {
    sed -i 's|{{{espanso_path}}}|/usr/bin/espanso|g' "${srcdir}/espanso.service"
}

package() {
    install -Dm755 "${srcdir}/espanso" -t "${pkgdir}/usr/bin/"
    install -Dm644 "${srcdir}/espanso.service" -t "${pkgdir}/usr/lib/systemd/user/"
}

# vim: ts=4 sw=4 et: