[arch-commits] Commit in acpi_call-dkms/trunk (PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Thu Nov 5 18:55:06 UTC 2020


    Date: Thursday, November 5, 2020 @ 18:55:06
  Author: alucryd
Revision: 743358

upgpkg: acpi_call-dkms 1.2.1-1

Modified:
  acpi_call-dkms/trunk/PKGBUILD

----------+
 PKGBUILD |   57 +++++++++++++++++++++++++++++----------------------------
 1 file changed, 29 insertions(+), 28 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-05 18:37:35 UTC (rev 743357)
+++ PKGBUILD	2020-11-05 18:55:06 UTC (rev 743358)
@@ -3,39 +3,40 @@
 # Contributor: fnord0 <fnord0 at riseup.net>
 
 pkgname=acpi_call-dkms
-pkgver=1.1.0
-pkgrel=287
+pkgver=1.2.1
+pkgrel=1
 pkgdesc='A linux kernel module that enables calls to ACPI methods through /proc/acpi/call - module sources'
-url='https://github.com/mkottman/acpi_call'
-arch=('x86_64')
-license=('GPL')
-depends=('dkms')
-makedepends=('linux-headers')
-provides=("acpi_call=$pkgver-$pkgrel")
-conflicts=('acpi_call')
-source=("acpi_call-${pkgver}.tar.gz::https://github.com/mkottman/acpi_call/archive/v${pkgver}.tar.gz"
-        '0001-linux-5.6.patch'
-        'dkms.conf')
-sha256sums=('d0d14b42944282724fca76f57d598eed794ef97448f387d1c489d85ad813f2f0'
-            '1f397f087fd96d5286907c90f518bbe68b0d19f83ab30bb124f76a19693a932c'
-            '32e6ea6523b13132c6c7838bba7fbf3d040ba2d35a892c2c356245612720df8a')
+url=https://github.com/nix-community/acpi_call
+arch=(any)
+license=(GPL)
+depends=(dkms)
+makedepends=(
+  git
+  linux-headers
+)
+provides=(acpi_call=${pkgver}-${pkgrel})
+conflicts=(acpi_call)
+_tag=3a28aabfa337d59df91cc04c85b250da7f7cadea
+source=(
+  git+https://github.com/nix-community/acpi_call.git#tag=${_tag}
+  dkms.conf
+)
+b2sums=(
+  SKIP
+  a571f825ad02afc24126c8f6f0908f29c75ea025799505fbfecf9eb27e0b9671dbc678535154b4fb3f8b768ced26c470dd687d953480d5dae743dc0f885f7671
+)
 
-prepare() {
-  cd acpi_call-$pkgver
+pkgver() {
+  cd acpi_call
 
-  # Fix build with Linux >= 5.6
-  patch -Np1 < ../0001-linux-5.6.patch
+  git describe --tags | sed 's/^v//'
 }
 
 package() {
-  cd acpi_call-$pkgver
-
-  install -Dt "$pkgdir/usr/src/acpi_call-$pkgver" -m0644 Makefile acpi_call.c ../dkms.conf
-
-  echo acpi_call | install -Dm0644 /dev/stdin "$pkgdir/usr/lib/modules-load.d/acpi_call.conf"
-
-  mkdir -p "$pkgdir/usr/share/acpi_call"
-  cp -t "$pkgdir/usr/share/acpi_call" -dr --no-preserve=ownership examples support
+  install -Dm 644 acpi_call/{Makefile,acpi_call.c} dkms.conf -t "${pkgdir}"/usr/src/acpi_call-${pkgver}
+  echo acpi_call | install -Dm 644 /dev/stdin "${pkgdir}"/usr/lib/modules-load.d/acpi_call.conf
+  install -dm 755 "${pkgdir}"/usr/share/acpi_call
+  cp -dr --no-preserve=ownership acpi_call/{examples,support} "${pkgdir}"/usr/share/acpi_call/
 }
 
-# vim:set ts=2 sw=2 et:
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list