summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatol Pomozov2015-06-17 08:47:44 -0700
committerAnatol Pomozov2015-06-17 08:47:44 -0700
commit78df05084178aaba8931873d0ed81cef07bf1d1f (patch)
treec7be729bc31d9f30bda83d84bd52d4ad7a59d18a
downloadaur-78df05084178aaba8931873d0ed81cef07bf1d1f.tar.gz
Initial import
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD42
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..38da6c9d540
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = libhugetlbfs
+ pkgdesc = interacts with the Linux hugetlbfs to make large pages available to applications in a transparent manner.
+ pkgver = 2.19
+ pkgrel = 1
+ url = http://sourceforge.net/projects/libhugetlbfs
+ arch = i686
+ arch = x86_64
+ license = GPL
+ checkdepends = python2
+ depends = perl
+ source = http://downloads.sourceforge.net/libhugetlbfs/libhugetlbfs-2.19.tar.gz
+ sha1sums = 9d67423a6137a14fcd7165ba74f687aa2e4465cf
+
+pkgname = libhugetlbfs
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0c00bb253dd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Anatol Pomozov <anatol dot pomozov at gmail>
+# Contributor: Jose Neder <jlneder(at)gmail(dot)com>
+
+pkgname=libhugetlbfs
+pkgver=2.19
+pkgrel=1
+pkgdesc='interacts with the Linux hugetlbfs to make large pages available to applications in a transparent manner.'
+url='http://sourceforge.net/projects/libhugetlbfs'
+arch=(i686 x86_64)
+depends=(perl)
+checkdepends=(python2)
+license=(GPL)
+source=(http://downloads.sourceforge.net/libhugetlbfs/libhugetlbfs-$pkgver.tar.gz)
+sha1sums=('9d67423a6137a14fcd7165ba74f687aa2e4465cf')
+
+_options='BUILDTYPE=NATIVEONLY'
+if [ "$CARCH" = "x86_64" ]; then
+ _options="$_options LIB32= LIB64=lib"
+else
+ _options="$_options LIB32=lib LIB64="
+fi
+
+prepare() {
+ cd libhugetlbfs-$pkgver
+ sed 's|/lib64/perl5/TLBC|/lib/perl5/TLBC|g;s|/lib/perl5/TLBC|/lib/perl5/vendor_perl/TLBC|g' -i Makefile
+ sed 's|/usr/bin/env python|/usr/bin/env python2|g' -i tests/run_tests.py
+}
+
+build() {
+ cd libhugetlbfs-$pkgver
+ make $_options
+}
+
+check() {
+ cd libhugetlbfs-$pkgver
+ make $_options check
+}
+
+package() {
+ cd libhugetlbfs-$pkgver
+ make DESTDIR="$pkgdir" PREFIX=/usr install $_options
+}