# Maintainer: Daniel Bermond pkgname=cpuid2cpuflags-git pkgver=12.r0.g1ca20a2 pkgrel=1 pkgdesc='Tool to get the instruction sets supported by the local CPU (git version)' arch=('x86_64') url='https://github.com/mgorny/cpuid2cpuflags/' license=('BSD') depends=('glibc') makedepends=('git') provides=('cpuid2cpuflags') conflicts=('cpuid2cpuflags') source=('git+https://github.com/mgorny/cpuid2cpuflags.git') sha256sums=('SKIP') prepare() { autoreconf -fi cpuid2cpuflags } pkgver() { git -C cpuid2cpuflags describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' } build() { cd cpuid2cpuflags ./configure --prefix='/usr' make } check() { make -C cpuid2cpuflags check } package() { make -C cpuid2cpuflags DESTDIR="$pkgdir" install install -D -m644 cpuid2cpuflags/COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }