2013-08-28 15:50:06 +00:00
|
|
|
# Template file for 'bbswitch'
|
|
|
|
pkgname=bbswitch
|
2014-06-02 22:00:38 +00:00
|
|
|
version=0.8
|
2013-08-28 15:50:06 +00:00
|
|
|
revision=1
|
2014-07-27 14:05:16 +00:00
|
|
|
hostmakedepends="git"
|
2013-08-28 15:50:06 +00:00
|
|
|
makedepends="dkms"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="dkms"
|
|
|
|
dkms_modules="${pkgname} ${version}"
|
|
|
|
triggers="dkms"
|
2013-08-28 15:50:06 +00:00
|
|
|
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
|
|
|
|
}
|