Commit 9ef0624f authored by Manuel's avatar Manuel

New kernel

parent 2dac355c
#
# Core Packages for Chakra, part of chakra-project.org
_kver="3.9.2-1-CHAKRA"
pkgname=acpi_call
_pkgname=acpi_call
pkgver=1.0.0
pkgrel=6
pkgdesc="A kernel module that enables you to call parameterless ACPI methods by writing the method name to /proc/acpi/call, e.g. to turn off discrete graphics card in a dual graphics environment (like NVIDIA Optimus)."
arch=('x86_64')
url=("http://github.com/mkottman/acpi_call")
license=('GPL')
depends=('linux>=3.9' 'linux<3.10' 'linux-headers')
makedepends=('git')
provides=('acpi-call')
replaces=('acpi-call')
conflicts=('acpi-call')
install=acpi_call.install
source=("https://github.com/mkottman/acpi_call/archive/v${pkgver}.tar.gz")
md5sums=('3c71239792ddd725d13f7c8d168b4ecf')
build() {
cd ${srcdir}/$_pkgname-${pkgver}
make
}
package() {
cd ${srcdir}/$_pkgname-${pkgver}
install -d ${pkgdir}/usr/share/$_pkgname
install -d ${pkgdir}/usr/bin
install -Dm755 ${srcdir}/$_pkgname-${pkgver}/examples/asus1215n.sh \
${pkgdir}/usr/share/$_pkgname
install -Dm755 ${srcdir}/$_pkgname-${pkgver}/examples/m11xr2.sh \
${pkgdir}/usr/share/$_pkgname
install -Dm755 ${srcdir}/$_pkgname-${pkgver}/examples/dellL702X.sh \
${pkgdir}/usr/share/$_pkgname
install -Dm755 ${srcdir}/$_pkgname-${pkgver}/examples/turn_off_gpu.sh \
${pkgdir}/usr/share/$_pkgname
ln -s /usr/share/$_pkgname/turn_off_gpu.sh \
${pkgdir}/usr/bin/turn_off_gpu.sh
install -Dm755 ${srcdir}/$_pkgname-${pkgver}/support/query_dsdt.pl \
${pkgdir}/usr/share/$_pkgname-${pkgver}
cp -R support/windump_hack \
${pkgdir}/usr/share/$_pkgname/
install -Dm644 README.md \
${pkgdir}/usr/share/$_pkgname/README.md
msg2 "Building module for $_kver..."
# KDIR is necessary even when cleaning
#make KDIR=/usr/src/linux-${_kver} clean
make KDIR=/usr/src/linux-${_kver}
install -D -m644 acpi_call.ko $pkgdir/lib/modules/${_kver}/kernel/drivers/acpi/acpi_call.ko
}
post_install() {
depmod -a
echo ""
echo "[+] modprobe acpi_call"
echo ">>> run /usr/bin/turn_off_gpu.sh to test/view different acpi_call functions to see if it disables your secondary/hybrid video card"
echo ">>> There are a few scripts to use in /usr/share/acpi_call/ - some for specific laptops => asus1215n.sh, dellL702X.sh, m11xr2.sh"
}
post_upgrade() {
depmod -a
echo ""
echo "[+] modprobe acpi_call"
echo ">>> run /usr/bin/turn_off_gpu.sh to test/view different acpi_call functions to see if it disables your secondary/hybrid video card"
echo ">>> There are a few scripts to use in /usr/share/acpi_call/ - some for specific laptops => asus1215n.sh, dellL702X.sh, m11xr2.sh"
}
post_remove() {
depmod -a
}
op=$1
shift
$op $*
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment