PKGBUILDs/aur/qrtr-git/PKGBUILD

38 lines
788 B
Bash
Raw Normal View History

2021-12-11 02:28:38 +00:00
# Maintainer: Jami Kettunen <jami.kettunen@protonmail.com>
buildarch=8
_pkgname="qrtr"
pkgname="$_pkgname-git"
pkgdesc="Userspace reference for net/qrtr in the Linux kernel"
pkgver=r93.9dc7a88
pkgrel=1
arch=("aarch64")
url="https://github.com/andersson/$_pkgname"
license=("BSD-3-Clause")
groups=("qcom-icnss-wlan")
depends=("glibc")
makedepends=("git" "make" "gcc" "linux-headers")
provides=("$_pkgname")
source=("git://github.com/andersson/$_pkgname.git")
md5sums=("SKIP")
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$_pkgname"
make prefix=/usr all
}
package() {
cd "$_pkgname"
make prefix=/usr DESTDIR="$pkgdir/" install
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$_pkgname/COPYING
}