summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0e1aec7eaa9525bd59b87cd76e10b567f867c4f2 (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
# Maintainer: Christopher KOBAYASHI <software plus aur at disavowed dot jp>

pkgname="dahdi-linux-ck-git-dkms"
pkgdesc="DAHDI drivers for Asterisk, patched to support older cards"
pkgver=20220326.g9b3d416
pkgrel=2
arch=('any')
url="http://www.asterisk.org/"
license=("LGPLv2")
depends=('dkms')
makedepends=("linux-headers")
conflicts=("dahdi")
source=("git+https://github.com/christopherkobayashi/dahdi-linux.git")

sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/dahdi-linux"
  git log -1 --format="%cd.g%h" --date=short | sed 's/-//g'
}

package() {
  cd "${srcdir}"
  local install_dir="${pkgdir}/usr/src/dahdi-linux-${pkgver}"

  # Copy sources
  mkdir -p "${install_dir}"
  cp -r "${srcdir}"/dahdi-linux/* "${install_dir}"/
}