New package: bbswitch-0.7.
This commit is contained in:
parent
6813e3e253
commit
039ba5d20a
1 changed files with 31 additions and 0 deletions
31
srcpkgs/bbswitch/template
Normal file
31
srcpkgs/bbswitch/template
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# Template file for 'bbswitch'
|
||||||
|
pkgname=bbswitch
|
||||||
|
version=0.7
|
||||||
|
revision=1
|
||||||
|
makedepends="dkms"
|
||||||
|
short_desc="kernel module allowing to switch dedicated graphics card on Optimus laptops"
|
||||||
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
license="GPL-2"
|
||||||
|
homepage="http://github.com/Bumblebee-Project/bbswitch"
|
||||||
|
only_for_archs="i686 x86_64"
|
||||||
|
|
||||||
|
do_fetch() {
|
||||||
|
git clone -b v${version} \
|
||||||
|
git://github.com/Bumblebee-Project/bbswitch.git ${pkgname}-${version}
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
bbswitch_package() {
|
||||||
|
dkms_modules="${pkgname} ${version}"
|
||||||
|
triggers="dkms"
|
||||||
|
depends="dkms"
|
||||||
|
pkg_install() {
|
||||||
|
vmove all
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue