blob: c5eb79999bfe5ba5cc069830ce4e9b48dc620bf7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
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"
}
|