ppa update
This commit is contained in:
+60
-30
@@ -1,43 +1,73 @@
|
||||
# Maintainer: ajs124
|
||||
# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
|
||||
# Contributor: ajs124
|
||||
|
||||
pkgname=evdi-git
|
||||
pkgver=1.5.0.r2.r7.g8eeb07a
|
||||
# Tested with Kernel 4.16, Dell D3000 SuperSpeed USB 3.0 Docking Station, 17e9:4318 DisplayLink
|
||||
|
||||
set -u
|
||||
pkgname='evdi-git'
|
||||
pkgver=1.6.2.r2.g75536ec
|
||||
_pkgver="${pkgver%%.r*}"
|
||||
pkgrel=1
|
||||
pkgdesc="A Linux® kernel module that enables management of multiple screens. Git version."
|
||||
pkgdesc='kernel module that enables management of multiple screens, primarily for DisplayLink USB VGA DVI HDMI DisplayPort video'
|
||||
pkgdesc+=' git version.'
|
||||
arch=('i686' 'x86_64')
|
||||
url="https://github.com/DisplayLink/evdi"
|
||||
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=$pkgver)
|
||||
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/'
|
||||
'relro.patch'
|
||||
)
|
||||
md5sums=('SKIP'
|
||||
'05e64dd295a66c030139d0c8f6f7013b')
|
||||
sha256sums=('SKIP'
|
||||
'ff03b5a804af826e6b0678cd4d821b5ecd2c5bf04ea7c465751f83b28e928786')
|
||||
|
||||
pkgver() {
|
||||
cd ${pkgname/-git/}
|
||||
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
||||
set -u
|
||||
cd "${_srcdir}"
|
||||
git describe --long --tags | sed -e 's/^v//' -e 's/\([^-]*-g\)/r\1/' -e 's/-/./g'
|
||||
set +u
|
||||
}
|
||||
|
||||
prepare() {
|
||||
set -u
|
||||
cd "${_srcdir}"
|
||||
local _src
|
||||
for _src in "${source[@]}"; do
|
||||
_src="${_src%%::*}"
|
||||
_src="${_src##*/}"
|
||||
if [[ "${_src}" = *.patch ]]; then
|
||||
patch -Np1 -i "../${_src}"
|
||||
fi
|
||||
done
|
||||
set +u
|
||||
}
|
||||
|
||||
build() {
|
||||
# We only need to build the library in this step, dmks will build the module
|
||||
cd ${pkgname/-git/}/library
|
||||
# hotfix mentioned at https://github.com/DisplayLink/evdi/issues/117
|
||||
sed -i -e 's/#if KERNEL_VERSION(4, 16, 0) <= LINUX_VERSION_CODE/#if KERNEL_VERSION(4, 15, 0) <= LINUX_VERSION_CODE/' ../module/evdi_connector.c
|
||||
make
|
||||
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
|
||||
}
|
||||
|
||||
package() {
|
||||
# Predfine some target folders
|
||||
SRCDIR="$pkgdir/usr/src/${pkgname/-git/}-$pkgver" # This one is needed for dkms
|
||||
LIBNAME=lib${pkgname/-git/}
|
||||
set -u
|
||||
cd "${_srcdir}"
|
||||
install -Dpm755 "library/lib${pkgname%-git}.so" -t "${pkgdir}/usr/lib/"
|
||||
|
||||
cd ${pkgname/-git/}
|
||||
|
||||
install -D -m 755 library/$LIBNAME.so $pkgdir/usr/lib/$LIBNAME.so
|
||||
|
||||
install -d $SRCDIR
|
||||
install -D -m 755 module/* $SRCDIR
|
||||
}
|
||||
local _DKMS="${pkgdir}/usr/src/${pkgname%-git}-${_pkgver}"
|
||||
install -Dpm644 module/* -t "${_DKMS}/"
|
||||
make -j1 -C "${_DKMS}" clean
|
||||
set +u
|
||||
}
|
||||
set +u
|
||||
|
||||
Reference in New Issue
Block a user