blob: 5b323b64d4de6c8cb228fab72f85fdaba44740a0 (
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: Pechin Mikhail <ahsima1 (at) gmail (dot) com>
_pkgbase=digimend-kernel-drivers
pkgname=digimend-kernel-drivers-dkms-git
pkgver=10.r0.gec5c16d
pkgrel=2
pkgdesc='Linux kernel modules (DKMS) for non-Wacom USB graphics tablets. Git version.'
arch=('any')
url='https://digimend.github.io'
license=('GPL2')
depends=('dkms')
makedepends=('git')
conflicts=("$_pkgbase" "$_pkgbase"-dkms)
provides=("$_pkgbase"-dkms)
source=('git+https://github.com/DIGImend/digimend-kernel-drivers.git')
md5sums=('SKIP')
pkgver() {
cd "$_pkgbase"
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
# Install
cd "$_pkgbase"
install -Dm 0644 depmod.conf "$pkgdir"/etc/depmod.d/digimend.conf
install -Dm 0755 hid-rebind "$pkgdir"/usr/bin/hid-rebind
install -Dm 0644 udev.rules "$pkgdir"/usr/lib/udev/rules.d/90-hid-rebind.rules
install -Dm 0644 xorg.conf "$pkgdir"/usr/share/X11/xorg.conf.d/50-digimend.conf
# Copy sources (including Makefile)
mkdir -p "$pkgdir"/usr/src/"$_pkgbase"-"$pkgver"
cp -rf ./* "$pkgdir"/usr/src/"$_pkgbase"-"$pkgver"
# Set version
sed "s/PACKAGE_VERSION=.*/PACKAGE_VERSION=\"$pkgver\"/g" \
-i "$pkgdir"/usr/src/"$_pkgbase"-"$pkgver"/dkms.conf
# Remove unneeded files
rm -rf "$pkgdir"/usr/src/"$_pkgbase"-"$pkgver"/debian
rm "$pkgdir"/usr/src/"$_pkgbase"-"$pkgver"/COPYING
rm "$pkgdir"/usr/src/"$_pkgbase"-"$pkgver"/udev.rules
rm "$pkgdir"/usr/src/"$_pkgbase"-"$pkgver"/depmod.conf
rm "$pkgdir"/usr/src/"$_pkgbase"-"$pkgver"/hid-rebind
rm "$pkgdir"/usr/src/"$_pkgbase"-"$pkgver"/README.md
rm "$pkgdir"/usr/src/"$_pkgbase"-"$pkgver"/xorg.conf
}
|