Add library header

This commit is contained in:
xiota 2025-10-15 07:02:13 +00:00
parent 28512cbd52
commit d062085889
2 changed files with 12 additions and 5 deletions

View file

@ -1,12 +1,13 @@
pkgbase = evdi-dkms
pkgdesc = Kernel module to enable management of multiple screens
pkgver = 1.14.11
pkgrel = 1
pkgrel = 2
url = https://github.com/DisplayLink/evdi
arch = i686
arch = x86_64
arch = aarch64
license = GPL-2.0-only
license = LGPL-2.1-only
makedepends = libdrm
depends = dkms
provides = evdi=1.14.11

View file

@ -3,10 +3,13 @@
_pkgname="evdi"
pkgname="$_pkgname-dkms"
pkgver=1.14.11
pkgrel=1
pkgrel=2
pkgdesc="Kernel module to enable management of multiple screens"
url="https://github.com/DisplayLink/evdi"
license=('GPL-2.0-only')
license=(
'GPL-2.0-only' # module
'LGPL-2.1-only' # library
)
arch=('i686' 'x86_64' 'aarch64')
depends=(
@ -35,9 +38,12 @@ build() {
package() {
cd "$_pkgsrc"
make -C 'library' install DESTDIR="$pkgdir" PREFIX='/usr'
# module for dkms
# library
make -C 'library' install DESTDIR="$pkgdir" PREFIX='/usr'
install -Dm644 'library/evdi_lib.h' -t "$pkgdir/usr/include/"
# dkms module
mkdir -pm755 "$pkgdir/usr/src/$_pkgname-$pkgver"
cp -a module/* "$pkgdir/usr/src/$_pkgname-$pkgver/"
}