Add displaylink
This commit is contained in:
18
src/evdi/.SRCINFO
Normal file
18
src/evdi/.SRCINFO
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by mksrcinfo v8
|
||||
# Thu Oct 13 12:14:59 UTC 2016
|
||||
pkgbase = evdi
|
||||
pkgdesc = A Linux® kernel module that enables management of multiple screens.
|
||||
pkgver = 1.2.64
|
||||
pkgrel = 1
|
||||
url = https://github.com/DisplayLink/evdi
|
||||
install = evdi.install
|
||||
changelog = evdi.Changelog
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
license = GPL
|
||||
depends = dkms
|
||||
source = evdi-1.2.64.tar.gz::https://github.com/DisplayLink/evdi/archive/v1.2.64.tar.gz
|
||||
md5sums = 5616e0c8f57e4d10de5e7f2a85d919d6
|
||||
|
||||
pkgname = evdi
|
||||
|
4
src/evdi/.gitignore
vendored
Normal file
4
src/evdi/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
*.tar.gz
|
||||
*.tar.xz
|
||||
pkg/
|
||||
src/
|
43
src/evdi/PKGBUILD
Normal file
43
src/evdi/PKGBUILD
Normal file
@@ -0,0 +1,43 @@
|
||||
# Maintainer: PlusMinus
|
||||
|
||||
pkgname=evdi
|
||||
pkgver=1.2.64
|
||||
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)
|
||||
makedepends=()
|
||||
optdepends=()
|
||||
provides=()
|
||||
conflicts=()
|
||||
replaces=()
|
||||
backup=()
|
||||
options=()
|
||||
install=$pkgname.install
|
||||
changelog=$pkgname.Changelog
|
||||
source=($pkgname-$pkgver.tar.gz::https://github.com/DisplayLink/evdi/archive/v$pkgver.tar.gz)
|
||||
noextract=()
|
||||
md5sums=('5616e0c8f57e4d10de5e7f2a85d919d6')
|
||||
|
||||
build() {
|
||||
# We only need to build the library in this step, dmks will build the module
|
||||
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
|
||||
}
|
5
src/evdi/evdi.Changelog
Normal file
5
src/evdi/evdi.Changelog
Normal file
@@ -0,0 +1,5 @@
|
||||
v1.2.64
|
||||
Highlights: fixes for kernel 4.8.
|
||||
|
||||
v1.2.55
|
||||
Module and library code to be included in DisplayLink USB Graphics Software for Ubuntu, version 1.2.
|
20
src/evdi/evdi.install
Normal file
20
src/evdi/evdi.install
Normal file
@@ -0,0 +1,20 @@
|
||||
# old version (without -$pkgrel): ${1%%-*}
|
||||
# new version (without -$pkgrel): ${2%%-*}
|
||||
|
||||
post_install() {
|
||||
echo 'DKMS install...'
|
||||
dkms install evdi/${1%%-*}
|
||||
}
|
||||
|
||||
pre_upgrade() {
|
||||
pre_remove ${2%%-*}
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install ${1%%-*}
|
||||
}
|
||||
|
||||
pre_remove() {
|
||||
echo 'DKMS remove...'
|
||||
dkms remove evdi/${1%%-*} --all
|
||||
}
|
Reference in New Issue
Block a user