blob: 54298593ac0694568c9a5fdbc3cb7b0acffb1cba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: Tin Lai <soraxas at tinyiu.com>
pkgname=acpi_ec-dkms-git
_pkgbase=acpi_ec
pkgver=r28.75102ce
pkgrel=1
pkgdesc="Kernel module to access directly to the ACPI EC."
arch=('x86_64')
url="https://github.com/musikid/acpi_ec"
license=('GPL')
depends=('dkms' 'mokutil')
conflicts=("${_pkgbase}")
makedepends=()
source=("git+https://github.com/musikid/acpi_ec")
md5sums=('SKIP')
provides=('acpi_ec' 'ec_sys')
conflict=()
pkgver() {
cd "$srcdir/$_pkgbase"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
# Copy dkms.conf
install -Dm644 ${_pkgbase}/dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
# Copy sources (including Makefile)
cp -r ${_pkgbase}/* "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/
# Set name and version
sed -e "s/\$VERSION/${pkgver}/" \
-i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
}
|