Skip to content

Commit

Permalink
PKGBUILD changed for dkms, see issue #24
Browse files Browse the repository at this point in the history
  • Loading branch information
daringer committed Aug 22, 2015
1 parent 52a731d commit 3341891
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pkgname=asus-fan-dkms
pkgver=0.9
pkgrel=1
_realname=asus-fan
_modname=asus_fan
pkgdesc="Kernel module allowing to controll (both) fan inside various asus laptops"
arch=('i686' 'x86_64')
url=("http://github.com/daringer/asus-fan")
Expand All @@ -12,17 +13,11 @@ depends=('dkms')
install=asus-fan-dkms.install
source=("https://github.com/daringer/asus-fan/archive/v${pkgver}.tar.gz")

build() {
cd ${srcdir}/${_realname}-${pkgver}

_kernver="$(uname -r)"

make KDIR=/lib/modules/${_kernver}/build
}

package() {
cd ${srcdir}/${_realname}-${pkgver}

make install
gzip "${pkgdir}/usr/lib/modules/${_extramodules}/bbswitch.ko"
cd ${srcdir}/${_modname}-${pkgver}
install -dm755 "${pkgdir}/usr/src/${_modname}-${pkgver}/"
install -D -m644 "asus-fan.c" "${pkgdir}/usr/src/${_modname}-${pkgver}/"
install -D -m644 "Makefile.dkms" "${pkgdir}/usr/src/${_modname}-${pkgver}/Makefile"
sed "s/#MODULE_VERSION#/${pkgver}/" "${srcdir}/dkms/dkms.conf" > "${pkgdir}/usr/src/${_modname}-${pkgver}/dkms.conf"
}

0 comments on commit 3341891

Please sign in to comment.