pkg-qmic/PKGBUILD

31 lines
643 B
Bash
Raw Normal View History

2023-12-14 15:14:38 +08:00
# Maintainer: Luca Weiss <luca (at) z3ntu (dot) xyz>
# Maintainer: BigfootACA <bigfoot@classfun.cn>
pkgname=qmic
pkgver=1.0.r0.g4574736
pkgrel=1
pkgdesc="QMI IDL compiler"
arch=("aarch64")
url="https://github.com/andersson/qmic"
license=(BSD)
makedepends=(git)
depends=(glibc)
source=("git+https://github.com/andersson/qmic")
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$pkgname"
make
}
package() {
cd "$pkgname"
make DESTDIR="$pkgdir/" prefix=/usr install
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}