mirror of
https://github.com/moparisthebest/arch-ppa
synced 2025-02-21 05:01:47 -05:00
42 lines
974 B
Bash
42 lines
974 B
Bash
# Maintainer: ajs124
|
|
|
|
pkgname=evdi-git
|
|
pkgver=1.0.68.r83.gee1c578
|
|
pkgrel=1
|
|
pkgdesc="A Linux® kernel module that enables management of multiple screens. Git version."
|
|
arch=('i686' 'x86_64')
|
|
url="https://github.com/DisplayLink/evdi"
|
|
license=('GPL')
|
|
depends=(dkms)
|
|
makedepends=(git libdrm)
|
|
install=$pkgname.install
|
|
changelog=$pkgname.Changelog
|
|
source=(git+https://github.com/DisplayLink/evdi/)
|
|
md5sums=(SKIP)
|
|
conflicts=(evdi)
|
|
provides=(evdi=1.4.1)
|
|
|
|
pkgver() {
|
|
cd ${pkgname/-git/}
|
|
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
|
}
|
|
|
|
build() {
|
|
# We only need to build the library in this step, dmks will build the module
|
|
cd ${pkgname/-git/}/library
|
|
make
|
|
}
|
|
|
|
package() {
|
|
# Predfine some target folders
|
|
SRCDIR="$pkgdir/usr/src/${pkgname/-git/}-$pkgver" # This one is needed for dkms
|
|
LIBNAME=lib${pkgname/-git/}
|
|
|
|
cd ${pkgname/-git/}
|
|
|
|
install -D -m 755 library/$LIBNAME.so $pkgdir/usr/lib/$LIBNAME.so
|
|
|
|
install -d $SRCDIR
|
|
install -D -m 755 module/* $SRCDIR
|
|
}
|