summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fdbd2aba74aac501d1f1ec5757ee53aa51c2ef83 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: bethropolis <bethropolis at gmail dot com>

pkgname='kcd-bin'
pkgver=1.17.0
pkgrel=1
pkgdesc='Lightweight, headless implementation of the KDE Connect protocol (v8) written in Go
'
url='https://github.com/bethropolis/kcd'
arch=('aarch64' 'armv7h' 'x86_64')
license=('MIT')
options=('!strip' '!debug')
provides=('kcd')
conflicts=('kcd')
depends=('glibc')
optdepends=('libnotify: for desktop notifications' 'wl-clipboard: for Wayland clipboard sync' 'xclip: for X11 clipboard sync' 'sshfs: for SFTP mounting support' 'ydotool: for Wayland mousepad support' 'xdotool: for X11 mousepad support' 'wtype: for Wayland keyboard emulation' 'python-nautilus: for Nautilus file manager integration')

source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::https://github.com/bethropolis/kcd/releases/download/v${pkgver}/kcd_${pkgver}_linux_aarch64.tar.gz")
sha256sums_aarch64=('cdf33ef971961a74a4b6d1c12f26aebaf117203ce91751719a64654c7776cd39')

source_armv7h=("${pkgname}_${pkgver}_armv7h.tar.gz::https://github.com/bethropolis/kcd/releases/download/v${pkgver}/kcd_${pkgver}_linux_armv7.tar.gz")
sha256sums_armv7h=('cdf96f376fb1b2556e637429f7033b10ca4cee9341535f13a29c97234d050aa6')

source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/bethropolis/kcd/releases/download/v${pkgver}/kcd_${pkgver}_linux_x86_64.tar.gz")
sha256sums_x86_64=('dfb8b6aa4082b1c86516b13673ae0b468fff2076f17bd7ba5b18624823e4b477')

package() {
  install -Dm755 "./kcd" "${pkgdir}/usr/bin/kcd"

  install -Dm644 "./packaging/kcd-pkg.service" "${pkgdir}/usr/lib/systemd/user/kcd.service"
  install -Dm644 "./packaging/kcd-system.service" "${pkgdir}/usr/lib/systemd/system/kcd@.service"

  install -Dm644 "./packaging/kcd.example.toml" "${pkgdir}/usr/share/doc/kcd/kcd.example.toml"
  install -Dm644 "./README.md" "${pkgdir}/usr/share/doc/kcd/README.md"

  install -Dm644 "./packaging/kcd.bash-completion" "${pkgdir}/usr/share/bash-completion/completions/kcd"
  install -Dm644 "./packaging/kcd.zsh-completion" "${pkgdir}/usr/share/zsh/site-functions/_kcd"
  install -Dm644 "./packaging/kcd.fish-completion" "${pkgdir}/usr/share/fish/vendor_completions.d/kcd.fish"

  install -Dm644 "./packaging/nautilus-kcd.py" "${pkgdir}/usr/share/nautilus-python/extensions/nautilus-kcd.py"

  install -Dm644 "./packaging/firewalld-kcd.xml" "${pkgdir}/usr/lib/firewalld/services/kcd.xml"
  install -Dm644 "./packaging/ufw-kcd" "${pkgdir}/etc/ufw/applications.d/kcd"

  install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/kcd-bin/LICENSE"
}