blob: 82b3cf1e7abbb864f75f1c39bb18685a84073b6e (
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
|
# Maintainer: aur.chaotic.cx
_pkgname="evdi"
pkgname="$_pkgname-dkms"
pkgver=1.14.16
pkgrel=1
pkgdesc="Kernel module to enable management of multiple screens"
url="https://github.com/DisplayLink/evdi"
license=(
'GPL-2.0-only' # module
'LGPL-2.1-only' # library
'MIT' # pyevdi
)
arch=('i686' 'x86_64' 'aarch64')
depends=(
'dkms'
)
makedepends=(
'libdrm'
'pybind11'
'python-setuptools'
)
optdepends=(
'python: for pyevdi'
)
provides=("$_pkgname=$pkgver")
conflicts=(
"$_pkgname"
'python-pyevdi'
)
_pkgsrc="$_pkgname-$pkgver"
_pkgext="tar.gz"
source=("$_pkgsrc.$_pkgext"::"$url/archive/v$pkgver/$_pkgsrc.$_pkgext")
sha256sums=('4f0e3d3cfc44c8371ae4f0a21ff01f97e46466cbb878c4e6307e97fc48318094')
prepare() {
sed -E -e '/^CLEAN=/d' -i "$_pkgsrc/module/dkms.conf"
}
build() {
cd "$_pkgsrc"
echo "Building library..."
(cd "library" && make)
echo "Building pyevdi..."
(cd "pyevdi" && make)
}
package() {
cd "$_pkgsrc"
# library
make -C 'library' install DESTDIR="$pkgdir" PREFIX='/usr'
install -Dm644 'library/evdi_lib.h' -t "$pkgdir/usr/include/"
# pyevdi
make -C 'pyevdi' install DESTDIR="$pkgdir" PREFIX='/usr'
# dkms module
mkdir -pm755 "$pkgdir/usr/src/$_pkgname-$pkgver"
cp -a module/* "$pkgdir/usr/src/$_pkgname-$pkgver/"
# licenses
install -Dm644 'LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE.MIT"
install -Dm644 'library/LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE.LGPL-2.1-only"
install -Dm644 'module/LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE.GPL-2.0-only"
}
|