From e0a4f4e8c5ce062c6cbb3fcd18275f5c7cb705a4 Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Sat, 4 Feb 2017 23:07:31 -0500 Subject: [PATCH] Add tpacpi-bat and acpi_call-dkms --- src/acpi_call-dkms/.SRCINFO | 20 ++++++++++++ src/acpi_call-dkms/PKGBUILD | 64 +++++++++++++++++++++++++++++++++++++ src/tpacpi-bat/.SRCINFO | 18 +++++++++++ src/tpacpi-bat/PKGBUILD | 22 +++++++++++++ 4 files changed, 124 insertions(+) create mode 100644 src/acpi_call-dkms/.SRCINFO create mode 100644 src/acpi_call-dkms/PKGBUILD create mode 100644 src/tpacpi-bat/.SRCINFO create mode 100644 src/tpacpi-bat/PKGBUILD diff --git a/src/acpi_call-dkms/.SRCINFO b/src/acpi_call-dkms/.SRCINFO new file mode 100644 index 0000000..ed309f8 --- /dev/null +++ b/src/acpi_call-dkms/.SRCINFO @@ -0,0 +1,20 @@ +# Generated by mksrcinfo v8 +# Sat Aug 20 19:33:12 UTC 2016 +pkgbase = acpi_call-dkms + pkgdesc = A linux kernel module that enables calls to ACPI methods through /proc/acpi/call + pkgver = 1.1.0 + pkgrel = 5 + url = http://github.com/mkottman/acpi_call + arch = any + license = GPL + makedepends = markdown + depends = dkms + optdepends = linux-headers: needed if using archlinux default kernel + optdepends = linux-lts-headers: needed if using the archlinux lts kernel + provides = acpi_call + conflicts = acpi_call + source = acpi_call-v1.1.0.tar.gz::http://github.com/mkottman/acpi_call/archive/v1.1.0.tar.gz + sha256sums = d0d14b42944282724fca76f57d598eed794ef97448f387d1c489d85ad813f2f0 + +pkgname = acpi_call-dkms + diff --git a/src/acpi_call-dkms/PKGBUILD b/src/acpi_call-dkms/PKGBUILD new file mode 100644 index 0000000..6a51aaf --- /dev/null +++ b/src/acpi_call-dkms/PKGBUILD @@ -0,0 +1,64 @@ +# Maintainer: Christian Hesse + +pkgname=acpi_call-dkms +pkgver=1.1.0 +pkgrel=5 +pkgdesc='A linux kernel module that enables calls to ACPI methods through /proc/acpi/call' +arch=('any') +url='http://github.com/mkottman/acpi_call' +license=('GPL') +depends=('dkms') +makedepends=('markdown') +optdepends=('linux-headers: needed if using archlinux default kernel' + 'linux-lts-headers: needed if using the archlinux lts kernel') +provides=('acpi_call') +conflicts=('acpi_call') +source=("acpi_call-v${pkgver}.tar.gz::http://github.com/mkottman/acpi_call/archive/v${pkgver}.tar.gz") +sha256sums=('d0d14b42944282724fca76f57d598eed794ef97448f387d1c489d85ad813f2f0') + +prepare() { + cd "${srcdir}/acpi_call-${pkgver}" + + # Fix build with Linux >= 3.17 + sed -i 's|acpi/acpi.h|linux/acpi.h|' acpi_call.c + + # create dkms.conf + cat > dkms.conf < README.html +} + +package() { + cd "${srcdir}/acpi_call-${pkgver}" + + install -D -m0644 Makefile "${pkgdir}/usr/src/acpi_call-${pkgver}/Makefile" + install -D -m0644 dkms.conf "${pkgdir}/usr/src/acpi_call-${pkgver}/dkms.conf" + install -D -m0644 acpi_call.c "${pkgdir}/usr/src/acpi_call-${pkgver}/acpi_call.c" + + # install examples + install -d "${pkgdir}/usr/share/acpi_call" + install -m0755 examples/*.sh "${pkgdir}/usr/share/acpi_call/" + + # install support + install -D -m0755 support/query_dsdt.pl "${pkgdir}/usr/share/acpi_call/query_dsdt.pl" + install -D -m0644 support/windump_hack/windump.c "${pkgdir}/usr/share/acpi_call/windump_hack/windump.c" + install -D -m0644 support/windump_hack/xorg.conf "${pkgdir}/usr/share/acpi_call/windump_hack/xorg.conf" + + # install REAMDE + install -D -m0644 README.md "${pkgdir}/usr/share/doc/acpi_call/README.md" + install -D -m0644 README.html "${pkgdir}/usr/share/doc/acpi_call/README.html" +} + diff --git a/src/tpacpi-bat/.SRCINFO b/src/tpacpi-bat/.SRCINFO new file mode 100644 index 0000000..858008a --- /dev/null +++ b/src/tpacpi-bat/.SRCINFO @@ -0,0 +1,18 @@ +# Generated by mksrcinfo v8 +# Tue Jan 17 03:43:02 UTC 2017 +pkgbase = tpacpi-bat + pkgdesc = A Perl script with ACPI calls for recent ThinkPads (such as T420 and W520) whose battery thresholds are not supported by tp_smapi + pkgver = 3.1 + pkgrel = 1 + url = https://github.com/teleshoes/tpacpi-bat + arch = x86_64 + arch = i686 + license = GPL3 + depends = perl + depends = acpi_call + conflicts = tpacpi-bat-git + source = https://github.com/teleshoes/tpacpi-bat/archive/v3.1.tar.gz + sha512sums = cdc9e0c0ded96281678199783b4c48ff85a497c90b244a7ce2276b54d7ae4bfa7eb430214bcdb6fabd7478796507b0fbe7fed4b1ab4bc4cdd7bd5ae25f943a77 + +pkgname = tpacpi-bat + diff --git a/src/tpacpi-bat/PKGBUILD b/src/tpacpi-bat/PKGBUILD new file mode 100644 index 0000000..dd4c570 --- /dev/null +++ b/src/tpacpi-bat/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: Frederik Schwan +# Contributor: Vojtěch Aschenbrenner + +pkgname=tpacpi-bat +pkgver=3.1 +pkgrel=1 +pkgdesc="A Perl script with ACPI calls for recent ThinkPads (such as T420 and W520) whose battery thresholds are not supported by tp_smapi" +url="https://github.com/teleshoes/tpacpi-bat" +arch=('x86_64' 'i686') +license=('GPL3') +depends=('perl' 'acpi_call') +conflicts=('tpacpi-bat-git') +source=(https://github.com/teleshoes/${pkgname}/archive/v${pkgver}.tar.gz) +sha512sums=('cdc9e0c0ded96281678199783b4c48ff85a497c90b244a7ce2276b54d7ae4bfa7eb430214bcdb6fabd7478796507b0fbe7fed4b1ab4bc4cdd7bd5ae25f943a77') + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + + install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname} + install -Dm644 examples/systemd_dynamic_threshold/tpacpi.service ${pkgdir}/usr/lib/systemd/system/tpacpi-bat.service + install -Dm644 examples/systemd_dynamic_threshold/tpacpi.conf.d ${pkgdir}/etc/conf.d/tpacpi +}