pkg-qrtr/PKGBUILD
BigfootACA 002f94e0ab
Some checks failed
gitea/pkg-qrtr/pipeline/head There was a failure building this commit
upstream: use meson instead make
2024-04-27 01:50:11 +08:00

34 lines
762 B
Bash

# Maintainer: Jami Kettunen <jami.kettunen@protonmail.com>
# Maintainer: BigfootACA <bigfoot@classfun.cn>
pkgname="qrtr"
pkgdesc="Userspace reference for net/qrtr in the Linux kernel"
pkgver=r112.8f9b2bc
pkgrel=1
arch=("aarch64")
url="https://github.com/linux-msm/$pkgname"
license=("BSD-3-Clause")
groups=("qcom-icnss-wlan")
depends=("glibc")
makedepends=("git" "meson" "ninja" "gcc")
provides=("$pkgname")
source=("git+$url")
md5sums=("SKIP")
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$pkgname"
arch-meson . build
ninja -C build
}
package() {
cd "$pkgname"
DESTDIR="$pkgdir/" ninja -C build install
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}