* add libcpuid
This commit is contained in:
parent
e69c908b37
commit
30b0f8e055
18
libcpuid/.SRCINFO
Normal file
18
libcpuid/.SRCINFO
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
pkgbase = libcpuid
|
||||||
|
pkgdesc = A small C library for x86 CPU detection and feature extraction
|
||||||
|
pkgver = 0.5.0
|
||||||
|
pkgrel = 1
|
||||||
|
url = http://libcpuid.sourceforge.net
|
||||||
|
arch = i686
|
||||||
|
arch = x86_64
|
||||||
|
license = BSD
|
||||||
|
makedepends = git
|
||||||
|
makedepends = cmake
|
||||||
|
makedepends = ninja
|
||||||
|
makedepends = doxygen
|
||||||
|
depends = glibc
|
||||||
|
source = libcpuid-0.5.0.tar.gz::https://github.com/anrieff/libcpuid/archive/v0.5.0.tar.gz
|
||||||
|
sha512sums = c98f4a95e111da5a4ac54d6f6e25c882f01e6984fcf2f8c1d1c8437cac54ea057233aab05a19c4a1ffa800d54aebf089ca8be6b26b89ff625df382a2984ee462
|
||||||
|
|
||||||
|
pkgname = libcpuid
|
||||||
|
|
4
libcpuid/.gitignore
vendored
Normal file
4
libcpuid/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
*
|
||||||
|
!.gitignore
|
||||||
|
!.SRCINFO
|
||||||
|
!PKGBUILD
|
24
libcpuid/PKGBUILD
Normal file
24
libcpuid/PKGBUILD
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
||||||
|
# Maintainer: X0rg
|
||||||
|
|
||||||
|
pkgname=libcpuid
|
||||||
|
pkgver=0.5.0
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="A small C library for x86 CPU detection and feature extraction"
|
||||||
|
arch=(x86_64 powerpc64le)
|
||||||
|
url="http://libcpuid.sourceforge.net"
|
||||||
|
license=('BSD')
|
||||||
|
depends=('glibc')
|
||||||
|
makedepends=('git' 'cmake' 'ninja' 'doxygen')
|
||||||
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/anrieff/libcpuid/archive/v$pkgver.tar.gz")
|
||||||
|
sha512sums=('c98f4a95e111da5a4ac54d6f6e25c882f01e6984fcf2f8c1d1c8437cac54ea057233aab05a19c4a1ffa800d54aebf089ca8be6b26b89ff625df382a2984ee462')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cmake -S "$srcdir/$pkgname-$pkgver" -B build -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr
|
||||||
|
cmake --build build
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
DESTDIR="$pkgdir" cmake --install build
|
||||||
|
install -Dvm644 "$srcdir/$pkgname-$pkgver/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user