Skip to content

Instantly share code, notes, and snippets.

@mibli
Created January 14, 2017 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mibli/792013c3c69f8a709d2aea5c17fa799a to your computer and use it in GitHub Desktop.
Save mibli/792013c3c69f8a709d2aea5c17fa799a to your computer and use it in GitHub Desktop.
Patch for PKGBUILD for AUR package nvidiabl from 2016-12-09 10:32
--- nvidiabl.unp/nvidiabl/PKGBUILD 2016-12-09 11:32:46.000000000 +0100
+++ nvidiabl/PKGBUILD 2017-01-14 13:18:04.928817417 +0100
@@ -27,16 +27,16 @@
}
build() {
- cd $pkgnmame-master
+ cd $pkgname-master
make
}
package() {
- cd pkgnmame-master
+ cd $pkgname-master
_extramodules="extramodules-$(uname -r | cut -f-2 -d'.')-$(uname -r|sed -e 's/.*-//g')"
_MODPATH="$pkgdir/usr/lib/modules/$_extramodules/"
install -d "$_MODPATH"
- install -d "$pkgdi}/usr/bin/"
- install -m 644 "$pkgnmame-master/$pkgnmame.ko" "$_MODPATH"
- install -m 755 scripts/usr/local/sbin/${pkgnmame}ctl "$pkgdir/usr/bin/"
+ install -d "$pkgdir/usr/bin/"
+ install -m 644 "$pkgname.ko" "$_MODPATH"
+ install -m 755 scripts/usr/local/sbin/${pkgname}ctl "$pkgdir/usr/bin/"
}
@mibli
Copy link
Author

mibli commented Jan 14, 2017

Just apply the patch to PKGBUILD file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment