Đoàn Trần Công Danh a92d370caa srcpkgs: add patch_args=-Np0 en-mass
Generated with:

	git ls-files 'srcpkgs/**/patches/*' |
	cut -d/ -f2 | uniq |
	xargs printf 'srcpkgs/%s/template\n'  |
	xargs grep -L 'patch_args=' |
	xargs sed -i "$(printf '1,/^$/{/^$/i\\\npatch_args=-Np0\n}\n')"
2021-06-20 13:17:29 +07:00

22 lines
751 B
Bash

# Template file for 'bbswitch'
pkgname=bbswitch
version=0.8
revision=4
archs="x86_64*"
depends="dkms"
short_desc="Kernel module for disabling the nVidia GPU on Optimus laptops"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://github.com/Bumblebee-Project/bbswitch"
distfiles="https://github.com/Bumblebee-Project/bbswitch/archive/v$version.tar.gz"
checksum=76cabd3f734fb4fe6ebfe3ec9814138d0d6f47d47238521ecbd6a986b60d1477
dkms_modules="${pkgname} ${version}"
patch_args=-Np0
do_install() {
vinstall Makefile 644 usr/src/${pkgname}-${version}
vinstall bbswitch.c 644 usr/src/${pkgname}-${version}
sed "s,#MODULE_VERSION#,${version}," dkms/dkms.conf > \
${DESTDIR}/usr/src/${pkgname}-${version}/dkms.conf
}