blob: 13257a985f8a18bd49e026e33d551dc2e84f14ab (
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
|
# Maintainer: artist for Artix Linux and XLibre <artist@artixlinux.org>
pkgname=xlibre-input-libinput-git
_pkgbase="${pkgname%-*}"
pkgver=25.0.0.r3.e8f07a1
pkgrel=1
pkgdesc="XLibre fork of the generic input driver for the X.Org server based on libinput"
arch=('x86_64')
license=('MIT')
_pkgname="${_pkgbase//xlibre/xf86}"
url="https://github.com/X11Libre/${_pkgname}"
depends=("xlibre-xserver>=${pkgver%.r*}" 'glibc')
makedepends=("xlibre-xserver-devel>=${pkgver%.r*}" 'xorgproto' 'git')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
source=("git+${url}.git")
groups=('xlibre-drivers')
depends+=('libinput')
makedepends+=('libxi' 'libx11' 'libxfont2' 'meson>=0.50.0')
install=$pkgname.install
options=('!debug')
pkgver() {
cd ${_pkgname}
local tag ver rev hash
tag="$(git tag -l "xlibre-${_pkgname}-*" --sort=-v:refname | head -n1)"
ver="${tag#"xlibre-${_pkgname}"-}"
rev="$(git rev-list --count "$tag"..HEAD)"
hash="$(git rev-parse --short HEAD)"
printf "%s.r%s.%s" "$ver" "$rev" "$hash"
}
build() {
arch-meson ${_pkgname} build \
-D xorg-conf-dir=/usr/share/X11/xorg.conf.d/
meson configure build
ninja -C build
}
check() {
meson test -C build
}
package() {
DESTDIR="$pkgdir" ninja -C build install
}
sha256sums=('SKIP')
|