summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f6d9cbc6a5cab048a013ed98145688d642905c8d (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
47
48
49
50
51
52
53
54
# Maintainer:
# Contributor: Mingi Sung <dawdleming@gmail.com>

_pkgname="libinput-gestures"
pkgname="$_pkgname-git"
pkgver=2.81.r0.g9552f0d
pkgrel=2
pkgdesc="Actions gestures on your touchpad using libinput"
url="https://github.com/bulletmark/libinput-gestures"
license=("GPL-3.0-or-later")
arch=("any")

depends=(
  'libinput-tools'
  'python'
  'python-dbus'
  'python-gobject'
)
makedepends=(
  'git'
)
optdepends=(
  'wmctrl: required for _internal command, as per default configuration'
  'xdotool: simulates keyboard and mouse actions for Xorg or XWayland based apps'
)

provides=("$_pkgname")
conflicts=("$_pkgname")

backup=("etc/${_pkgname}.conf")

_pkgsrc="$_pkgname"
source=("$_pkgsrc"::"git+$url.git")
sha256sums=('SKIP')

prepare() {
  cd "$_pkgsrc"

  # change icon path
  sed -E -e 's&^(ICOBAS)=.*$&\1="/usr/share/pixmaps"&' \
    -e 's&^(ICODIR)=.*$&\1="$ICOBAS"&' \
    -i "libinput-gestures-setup"
}

pkgver() {
  cd "$_pkgsrc"
  git describe --long --tags --abbrev=7 --exclude='*[a-zA-Z][a-zA-Z]*' \
    | sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g'
}

package() {
  cd "$_pkgsrc"
  make DESTDIR="$pkgdir" install
}