diff options
author | Massimiliano Torromeo | 2022-04-04 12:50:58 +0200 |
---|---|---|
committer | Massimiliano Torromeo | 2022-04-04 12:50:58 +0200 |
commit | 112e639a5d7fd344b4daf585f65f2b0c02c64e9a (patch) | |
tree | 1f5398cc5d5b497136f5dc1d2e002322ff77cb97 /PKGBUILD | |
parent | ab96f1e068e4224ae288107e598ff68d0201a228 (diff) | |
download | aur-112e639a5d7fd344b4daf585f65f2b0c02c64e9a.tar.gz |
removed unnecessary install file that causes double compilation of dkms modules
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 12 insertions, 26 deletions
@@ -3,25 +3,15 @@ pkgname=evdi pkgver=1.10.1 -pkgrel=1 +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=(glibc dkms libdrm) -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) -noextract=() -md5sums=('4f2f91ade5e648e3526be3e6bcc72f61') +source=(https://github.com/DisplayLink/evdi/archive/v$pkgver/$pkgname-$pkgver.tar.gz) +sha256sums=('4c6fe26b91b5e6490b80e4c30de110d72daf19e1d162e14a2654eee3fec19087') prepare() { cd "$pkgname-$pkgver" @@ -30,26 +20,22 @@ prepare() { src="${src%%::*}" src="${src##*/}" [[ $src = *.patch ]] || continue - patch -Np1 < "../$src" + patch -Np1 -i "../$src" done } build() { -# We only need to build the library in this step, dkms will build the module -cd "$pkgname-$pkgver/library" - -make + # We only need to build the library in this step, dkms 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" + cd "$pkgname-$pkgver" -install -D -m 755 library/$LIBNAME.so $pkgdir/usr/lib/$LIBNAME.so + install -Dm0755 library/lib$pkgname.so "$pkgdir/usr/lib/lib$pkgname.so" -install -d $SRCDIR -install -D -m 755 module/* $SRCDIR + SRCDIR="$pkgdir/usr/src/$pkgname-$pkgver" # This one is needed for dkms + install -d "$SRCDIR" + install -Dm0755 module/* "$SRCDIR" } |