diff options
author | Xorg | 2019-02-06 08:40:40 +0100 |
---|---|---|
committer | Xorg | 2019-02-06 08:40:40 +0100 |
commit | 8fbb2c948df7887340868bbaf5c4b0d1497a389f (patch) | |
tree | 2eb63d98510ea127116228632a0bfdd7c74f62c6 | |
download | aur-8fbb2c948df7887340868bbaf5c4b0d1497a389f.tar.gz |
Initial commit for libcpuid 0.4.1
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 36 |
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1a38b0b4ad05 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = libcpuid + pkgdesc = A small C library for x86 CPU detection and feature extraction + pkgver = 0.4.1 + pkgrel = 1 + url = http://libcpuid.sourceforge.net + arch = i686 + arch = x86_64 + license = BSD + makedepends = git + makedepends = doxygen + depends = glibc + source = libcpuid-0.4.1.tar.gz::https://github.com/anrieff/libcpuid/archive/v0.4.1.tar.gz + sha512sums = 2644d6f6c12f7290f2b562726fa66becb77f0ebcc415bac41458513b9f1b5b5a9afdaa5e68a6766b7fe3d7e242ada3c42ecae61ff111dc1f118e56a4edc3abb2 + +pkgname = libcpuid + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..05c6d4d4c97b --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..77e6f174d9ba --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: X0rg + +pkgname=libcpuid +pkgver=0.4.1 +pkgrel=1 +pkgdesc="A small C library for x86 CPU detection and feature extraction" +arch=('i686' 'x86_64') +url="http://libcpuid.sourceforge.net" +license=('BSD') +depends=('glibc') +makedepends=('git' 'doxygen') +source=("$pkgname-$pkgver.tar.gz::https://github.com/anrieff/libcpuid/archive/v$pkgver.tar.gz") +sha512sums=('2644d6f6c12f7290f2b562726fa66becb77f0ebcc415bac41458513b9f1b5b5a9afdaa5e68a6766b7fe3d7e242ada3c42ecae61ff111dc1f118e56a4edc3abb2') + +build() { + cd "$srcdir/$pkgname-$pkgver" + msg2 "Run 'libtoolize'..." + libtoolize + + msg2 "Run 'autoreconf --install'..." + autoreconf --install + + msg2 "Run './configure'..." + ./configure --prefix=/usr + + msg2 "Run 'make'..." + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install + + msg2 "Install license..." + install -Dvm644 "COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING" +} |