pkg-qbootctl/PKGBUILD
2024-05-19 18:11:27 +08:00

29 lines
689 B
Bash

# Maintainer: BigfootACA <bigfoot@classfun.cn>
pkgname="qbootctl"
pkgdesc="Qualcomm bootctl HAL for Linux"
pkgver=r27.b8d2248
pkgrel=2
arch=("aarch64")
url="https://gitlab.com/sdm845-mainline/qbootctl"
license=("GPL3")
depends=("glibc" "zlib" "gcc-libs")
makedepends=("git" "meson" "gcc")
source=("git+https://gitea.classfun.cn:4443/mirrors/qbootctl.git")
md5sums=("SKIP")
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
arch-meson "$pkgname" build
meson compile -C build
}
package() {
meson install -C build --destdir "$pkgdir"
install -Dm644 "$pkgname/LICENSE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}