2019-03-03 20:21:14 -05:00
|
|
|
# Maintainer: mwawrzyniak
|
|
|
|
# Contributor: PlusMinus
|
2018-06-01 08:08:14 -04:00
|
|
|
|
|
|
|
pkgname=evdi
|
2019-07-27 10:40:51 -04:00
|
|
|
pkgver=1.6.2
|
2018-06-01 08:08:14 -04:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A Linux® kernel module that enables management of multiple screens."
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="https://github.com/DisplayLink/evdi"
|
|
|
|
license=('GPL')
|
|
|
|
groups=()
|
|
|
|
depends=(dkms libdrm)
|
|
|
|
makedepends=()
|
|
|
|
optdepends=()
|
|
|
|
provides=()
|
|
|
|
conflicts=()
|
|
|
|
replaces=()
|
|
|
|
backup=()
|
|
|
|
options=()
|
|
|
|
install=$pkgname.install
|
|
|
|
changelog=$pkgname.Changelog
|
2019-03-03 20:21:14 -05:00
|
|
|
source=($pkgname-$pkgver-$pkgrel.tar.gz::https://github.com/DisplayLink/evdi/archive/v$pkgver.tar.gz
|
|
|
|
relro.patch)
|
2018-06-01 08:08:14 -04:00
|
|
|
noextract=()
|
2019-07-27 10:40:51 -04:00
|
|
|
md5sums=('11e968a27f2432d2c50738976b7f847f'
|
2019-03-03 20:21:14 -05:00
|
|
|
'05e64dd295a66c030139d0c8f6f7013b')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
local src
|
|
|
|
for src in "${source[@]}"; do
|
|
|
|
src="${src%%::*}"
|
|
|
|
src="${src##*/}"
|
|
|
|
[[ $src = *.patch ]] || continue
|
|
|
|
patch -Np1 < "../$src"
|
|
|
|
done
|
|
|
|
}
|
2018-06-01 08:08:14 -04:00
|
|
|
|
|
|
|
build() {
|
2019-03-03 20:21:14 -05:00
|
|
|
# We only need to build the library in this step, dkms will build the module
|
2018-06-01 08:08:14 -04:00
|
|
|
cd "$pkgname-$pkgver/library"
|
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
# Predfine some target folders
|
|
|
|
SRCDIR="$pkgdir/usr/src/$pkgname-$pkgver" # This one is needed for dkms
|
|
|
|
LIBNAME=lib$pkgname
|
|
|
|
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
|
|
|
|
install -D -m 755 library/$LIBNAME.so $pkgdir/usr/lib/$LIBNAME.so
|
|
|
|
|
|
|
|
install -d $SRCDIR
|
|
|
|
install -D -m 755 module/* $SRCDIR
|
|
|
|
}
|