# Maintainer: Anatol Pomozov # Contributor: Jose Neder 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 }