blob: 82ed2c75b746616e8ba30dea214f0e14525a0467 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# Maintainer: Dreieck
# Contributor: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: M Rawash <mrawash@gmail.com>
_pkgname='xf86-input-wacom'
_pkgvariantsuffix='-nosystemd'
_vcssuffix='-git'
pkgname="${_pkgname}${_pkgvariantsuffix}${_vcssuffix}"
pkgver=1.2.1+4.r2318.20240311.f424151
pkgrel=2
pkgdesc="X.Org Wacom tablet driver. Without systemd dependency. Git checkout."
arch=(
'i686'
'x86_64'
)
url="https://github.com/linuxwacom/xf86-input-wacom"
license=('GPL2')
depends=(
'libudev.so'
'libxi'
'libxinerama'
'libxrandr'
)
makedepends=(
'git'
'xorg-server-devel'
)
conflicts=(
"${_pkgname}"
)
provides=(
"${_pkgname}=${pkgver}"
"${_pkgname}${_pkgvariantsuffix}=${pkgver}"
"${_pkgname}${_vcssuffix}=${pkgver}"
)
source=(
"${_pkgname}::git+https://github.com/linuxwacom/xf86-input-wacom.git" # Official upstream source
# "${_pkgname}::git+https://github.com/whot/xf86-input-wacom.git#branch=wip/detect-tool-changes" # Contains fixes for eraser issue with lenovo m14t: https://github.com/linuxwacom/xf86-input-wacom/issues/186, see https://github.com/linuxwacom/xf86-input-wacom/pull/188
)
sha256sums=(
'SKIP'
# 'SKIP'
)
prepare() {
cd "${srcdir}/${_pkgname}"
NOCONFIGURE=1 ./autogen.sh
}
pkgver() {
cd "${srcdir}/${_pkgname}"
_ver="$(git describe --tags | sed 's|^xf86-input-wacom-||' | sed 's|-g[0-9a-fA-F]*$||' | tr '-' '+')"
_rev="$(git rev-list --count HEAD)"
_date="$(git log -1 --date=format:"%Y%m%d" --format="%ad")"
_hash="$(git rev-parse --short HEAD)"
if [ -z "${_ver}" ]; then
error "Version could not be determined."
return 1
else
printf '%s' "${_ver}.r${_rev}.${_date}.${_hash}"
fi
}
build() {
cd "${srcdir}/${_pkgname}"
./configure \
--prefix=/usr \
--disable-static \
--enable-shared \
--enable-fuzz-interface \
--enable-unit-tests
make
}
check() {
cd "${srcdir}/${_pkgname}"
make check
}
package() {
cd "${srcdir}/${_pkgname}"
make DESTDIR="${pkgdir}" install
install -D -m644 -v AUTHORS "${pkgdir}/usr/share/doc/${_pkgname}/AUTHORS"
install -D -m644 -v README.md "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
install -D -m644 -v GPL "${pkgdir}/usr/share/licenses/${pkgname}/GPL2"
}
|