blob: 20e9ca3bffbd0db0f295b716cc61b4f10212eb71 (
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
39
40
41
42
43
44
45
46
|
# Maintainer: X0rg
# Contributor: eloaders <eloaders at linux dot pl>
_pkgname=libcpuid
pkgname=$_pkgname-git
epoch=2
pkgver=0.2.2.r80.g3f51d3c
pkgrel=1
pkgdesc="Provides CPU identification for x86 (and x86_64)"
arch=('i686' 'x86_64')
url="https://github.com/anrieff/libcpuid"
license=('BSD')
depends=('glibc')
makedepends=('git' 'libtool' 'autoconf' 'doxygen')
conflicts=('libcpuid')
provides=('libcpuid')
source=("git+https://github.com/anrieff/$_pkgname.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$_pkgname"
msg2 "Run 'libtoolize'..."
libtoolize
msg2 "Run 'autoreconf --install'..."
autoreconf --install
msg2 "Run './configure'..."
./configure --prefix=/usr
msg2 "Run 'make'..."
make
}
package() {
cd "$srcdir/$_pkgname"
make DESTDIR="$pkgdir" install
msg2 "Install license..."
install -Dvm644 "$srcdir/libcpuid/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
|