2018-06-01 08:08:14 -04:00
|
|
|
# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
|
|
|
|
# Contributor: ajs124
|
2017-08-27 13:02:19 -04:00
|
|
|
|
2018-06-01 08:08:14 -04:00
|
|
|
set -u
|
|
|
|
pkgname='evdi-git'
|
|
|
|
pkgver=1.5.0_r2.r0.gdc3c9d6
|
|
|
|
_pkgver="${pkgver%%.r*}"
|
2017-08-27 13:02:19 -04:00
|
|
|
pkgrel=1
|
2018-06-01 08:08:14 -04:00
|
|
|
pkgdesc="A Linux® kernel module that enables management of multiple screens."
|
|
|
|
pkgdesc+=' Git version.'
|
2017-08-27 13:02:19 -04:00
|
|
|
arch=('i686' 'x86_64')
|
2018-06-01 08:08:14 -04:00
|
|
|
url='https://github.com/DisplayLink/evdi'
|
2017-08-27 13:02:19 -04:00
|
|
|
license=('GPL')
|
2018-06-01 08:08:14 -04:00
|
|
|
depends=('dkms')
|
|
|
|
makedepends=('git' 'libdrm')
|
|
|
|
provides=("evdi=${_pkgver}")
|
|
|
|
conflicts=('evdi')
|
|
|
|
install=${pkgname}.install
|
|
|
|
changelog="${pkgname}.Changelog"
|
|
|
|
_srcdir="${pkgname%-git}"
|
|
|
|
source=("git+https://github.com/DisplayLink/evdi/")
|
|
|
|
sha256sums=('SKIP')
|
2017-08-27 13:02:19 -04:00
|
|
|
|
|
|
|
pkgver() {
|
2018-06-01 08:08:14 -04:00
|
|
|
set -u
|
|
|
|
cd "${_srcdir}"
|
|
|
|
# extra -r interfers with version management
|
|
|
|
local _t1="$(git describe --tags)" # v1.5.0-r2
|
|
|
|
local _t1a="${_t1//-/_}"
|
|
|
|
local _t2="$(git describe --long --tags)" # v1.5.0-r2-0-gdc3c9d6
|
|
|
|
local _t2a="${_t2//${_t1}/${_t1a}}"
|
|
|
|
sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' <<< "${_t2a}"
|
|
|
|
set +u
|
2017-08-27 13:02:19 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2018-06-01 08:08:14 -04:00
|
|
|
set -u
|
|
|
|
# We only need to build the library in this step, dmks will build the module
|
|
|
|
#cd "${_srcdir}/library"
|
|
|
|
# DKMS builds are hard to debug. We build it here and throw it away.
|
|
|
|
cd "${_srcdir}"
|
|
|
|
make
|
|
|
|
set +u
|
2017-08-27 13:02:19 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2018-06-01 08:08:14 -04:00
|
|
|
set -u
|
|
|
|
cd "${_srcdir}"
|
|
|
|
install -Dpm755 "library/lib${pkgname%-git}.so" -t "${pkgdir}/usr/lib/"
|
2017-08-27 13:02:19 -04:00
|
|
|
|
2018-06-01 08:08:14 -04:00
|
|
|
local _DKMS="${pkgdir}/usr/src/${pkgname%-git}-${_pkgver}"
|
|
|
|
install -Dpm644 module/* -t "${_DKMS}/"
|
|
|
|
make -j1 -C "${_DKMS}" clean
|
|
|
|
set +u
|
2017-08-27 13:02:19 -04:00
|
|
|
}
|
2018-06-01 08:08:14 -04:00
|
|
|
set +u
|