diff options
author | PlusMinus0 | 2016-09-16 10:04:41 +0200 |
---|---|---|
committer | PlusMinus0 | 2016-09-16 10:04:41 +0200 |
commit | 2fd119c8a92c4759b0d91d01f6c7299f13ecb89f (patch) | |
tree | ee309b160bbb39f8d91226a7d1465c09ce9d3ad1 | |
parent | 305118d06a35f08fa5f02522b31b5845df96dac5 (diff) | |
download | aur-2fd119c8a92c4759b0d91d01f6c7299f13ecb89f.tar.gz |
Add sourced to directory for dkms install
-rw-r--r-- | PKGBUILD | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -23,19 +23,21 @@ noextract=() md5sums=('579889b974e3f1f889bf1dfa47190cea') build() { - cd "$pkgname-$pkgver" + # We only need to build the library in this step, dmks will build the module + cd "$pkgname-$pkgver/library" make } package() { - cd "$pkgname-$pkgver" - + # Predfine some target folders + SRCDIR="$pkgdir/usr/src/$pkgname-$pkgver" # This one is needed for dkms LIBNAME=lib$pkgname - install -D -m 755 library/$LIBNAME.so $pkgdir/usr/lib/$LIBNAME/$LIBNAME.so - install -D -m 755 module/*.o $pkgdir/usr/lib/$LIBNAME + cd "$pkgname-$pkgver" + + install -D -m 755 library/$LIBNAME.so $pkgdir/usr/lib/$LIBNAME.so - install -d $pkgdir/usr/include/$LIBNAME - install -D -m 755 module/*.h $pkgdir/usr/include/$LIBNAME + install -d $SRCDIR + install -D -m 755 module/* $SRCDIR } |