diff --git a/srcpkgs/tp_smapi-dkms/files/dkms.conf b/srcpkgs/tp_smapi-dkms/files/dkms.conf new file mode 100644 index 00000000000..771f1aae9ff --- /dev/null +++ b/srcpkgs/tp_smapi-dkms/files/dkms.conf @@ -0,0 +1,15 @@ +PACKAGE_VERSION=0.41 +PACKAGE_NAME="tp_smapi-dkms" +AUTOINSTALL="yes" + +MAKE="make KVER=${kernelver} HDAPS=1" +CLEAN="make clean" + +BUILT_MODULE_NAME[0]="hdaps" +DEST_MODULE_LOCATION[0]="/updates" + +BUILT_MODULE_NAME[1]="thinkpad_ec" +DEST_MODULE_LOCATION[1]="/extra" + +BUILT_MODULE_NAME[2]="tp_smapi" +DEST_MODULE_LOCATION[2]="/extra" diff --git a/srcpkgs/tp_smapi-dkms/template b/srcpkgs/tp_smapi-dkms/template new file mode 100644 index 00000000000..0ee5f06cdea --- /dev/null +++ b/srcpkgs/tp_smapi-dkms/template @@ -0,0 +1,24 @@ +# Template file for 'tp_smapi-dkms' +pkgname=tp_smapi-dkms +version=0.41 +revision=1 +wrksrc=tp_smapi-master +only_for_archs="i686 x86_64" +short_desc="IBM ThinkPad hardware functions driver" +maintainer="Christian Neukirchen " +license="GPL-2" +homepage="http://www.thinkwiki.org/wiki/Tp_smapi" +distfiles="https://github.com/x539/tp_smapi/archive/master.tar.gz" +checksum=7e4519e4f3acb42d84f9cca1cbb070b4c69ef150277fb6511d2124f4033380ba + +triggers="dkms" +dkms_modules="tp_smapi ${version}" +depends="dkms" + +do_install() { + vmkdir usr/src/tp_smapi-${version} + vcopy "*.c" usr/src/tp_smapi-${version} + vcopy "*.h" usr/src/tp_smapi-${version} + vcopy Makefile usr/src/tp_smapi-${version} + vcopy ${FILESDIR}/dkms.conf usr/src/tp_smapi-${version} +}