summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 342089c41426a8c56c83f95bf4ac48a24f6c319c (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
# Maintainer: Vincent Ambo <tazjin@gmail.com>

_pkgname=thunderbolt-icm-dkms
pkgname=thunderbolt-icm-dkms-git
pkgver=r2.2d1bd45
pkgrel=1
pkgdesc="DKMS Package for the thunderbolt ICM driver"
arch=('x86_64')
url="https://github.com/dell/thunderbolt-icm-dkms"
# No license file in repo yet, but see discussion on Github:
# https://github.com/dell/thunderbolt-icm-dkms/issues/1
license=('GPL2')
depends=('dkms')
optdepends=('linux-headers' 'linux-lts-headers')
source=('git+https://github.com/dell/thunderbolt-icm-dkms.git')
sha1sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  local dest="${pkgdir}/usr/src/${_pkgname}-${pkgver}"

  mkdir -p "${dest}"
  cp "${srcdir}/${_pkgname}/thunderbolt-icm"/* "${dest}"
}