void-packages/srcpkgs/bbswitch/template
maxice8 d2eb199ebd
ports-wide: remove all occurrences of triggers="dkms"
There is no need for triggers="dkms" since having dkms_modules="" set
also adds the dkms trigger automatically.

This occoured problably since one template did it and everyone else
just copied it (understandable since dkms_modules is not documented)

[ci skip]
2018-08-20 08:34:30 -03:00

22 lines
791 B
Bash

# Template file for 'bbswitch'
pkgname=bbswitch
version=0.8
revision=2
hostmakedepends="git"
makedepends="dkms"
depends="dkms"
dkms_modules="${pkgname} ${version}"
short_desc="kernel module allowing to switch dedicated graphics card on Optimus laptops"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://github.com/Bumblebee-Project/bbswitch"
only_for_archs="i686 x86_64"
distfiles="https://github.com/Bumblebee-Project/bbswitch/archive/v$version.tar.gz"
checksum=76cabd3f734fb4fe6ebfe3ec9814138d0d6f47d47238521ecbd6a986b60d1477
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
}