pkg-diag/PKGBUILD
BigfootACA 6769a7bf60
Some checks failed
gitea/pkg-diag/pipeline/head There was a failure building this commit
Initial commit
2023-12-14 15:14:38 +08:00

33 lines
625 B
Bash

# Maintainer: BigfootACA <bigfoot@classfun.cn>
pkgname=diag
pkgver=r120.d06e599
pkgrel=1
pkgdesc="DIAG Router"
arch=("aarch64")
url="https://github.com/andersson/diag"
license=(BSD)
makedepends=(git)
depends=(glibc qrtr)
source=("git+https://github.com/andersson/diag")
md5sums=('SKIP')
optdepends=(
"systemd-gadget: for usb gadget"
)
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$pkgname"
make
}
package() {
cd "$pkgname"
make DESTDIR="$pkgdir/" prefix=/usr install
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}