summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 33ed5794e4b18006116a75b437a3afd3670fc1c4 (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
# Maintainer: Virginia Senioria <tmp underscope 91khr at outlook dot com>
pkgname=ithc-dkms-git
_pkgname="${pkgname%%-*}"
pkgver=0.1
pkgrel=1
pkgdesc="Linux driver for Intel Touch Host Controller"
arch=(x86_64)
url="https://github.com/quo/ithc-linux"
license=(unknown)
groups=()
depends=('dkms')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/quo/ithc-linux.git')
noextract=()
md5sums=('SKIP')

pkgver() {
    sed -n '/^PACKAGE_VERSION="\(.*\)"$/s//\1/p' "$srcdir/${_pkgname}-linux/dkms.conf"
}

package() {
    cd "$srcdir/${_pkgname}-linux"

    install -Dm644 dkms.conf "${pkgdir}/usr/src/${_pkgname}-${pkgver}/dkms.conf"
    cp -r src Makefile "${pkgdir}/usr/src/${_pkgname}-${pkgver}/"
}