summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: abe80fc1af16860253c3b10fe553122e68e99c3e (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
# Maintainer: PlusMinus

pkgname=evdi
pkgver=1.2.64
pkgrel=2
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-$pkgrel.tar.gz::https://github.com/DisplayLink/evdi/archive/v$pkgver.tar.gz)
source=($pkgname-$pkgver-$pkgrel.tar.gz::https://github.com/DisplayLink/evdi/archive/b7606bccc0cb9484c2845a3e556faf60ed3c0bff.tar.gz)
md5sums=('2f229d85de2aa5c1ba6f168a0728ec9d')
noextract=()

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-$pkgrel"		# 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
}