diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1af0bdf9b77f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = apple-ib-drv-dkms-git + pkgdesc = Apple iBridge devices support (Touchbar/ALS) for MacBook Pro 2018 and onward + pkgver = r305.fc9aefa + pkgrel = 1 + url = https://github.com/t2linux/apple-ib-drv + arch = x86_64 + groups = apple-t2 + license = GPL2 + depends = dkms + depends = pahole + source = git+https://github.com/t2linux/apple-ib-drv#branch=mbp15 + sha256sums = SKIP + +pkgname = apple-ib-drv-dkms-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6e26aae0d850 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: hexchain <arch at hexchain dot org> + +_pkgbase=apple-ib-drv +pkgname=${_pkgbase}-dkms-git +pkgver=r305.fc9aefa +pkgrel=1 +pkgdesc="Apple iBridge devices support (Touchbar/ALS) for MacBook Pro 2018 and onward" +url="https://github.com/t2linux/apple-ib-drv" +license=('GPL2') +arch=('x86_64') +groups=('apple-t2') +depends=('dkms' 'pahole') +source=("git+https://github.com/t2linux/apple-ib-drv#branch=mbp15") +sha256sums=('SKIP') + +pkgver() { + cd "$_pkgbase" + ( + set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +package() { + cd "$_pkgbase" + + install -dm755 "$pkgdir/usr/src/$_pkgbase-$pkgver" + cp -rv --no-preserve=ownership * "$pkgdir/usr/src/$_pkgbase-$pkgver/" +} |