This repository has been archived on 2024-02-03. You can view files and clone it, but cannot push or open issues or pull requests.
lib32-libnuma/PKGBUILD

39 lines
989 B
Bash

# Mantainer: ObserverOfTime <chronobserver@disroot.org>
# based on lib32-numactl
_basename=numactl
pkgname=lib32-libnuma
pkgver=2.0.17
pkgrel=1
pkgdesc='Simple NUMA policy support 32-bit version. Libraries only'
arch=('x86_64')
url='https://github.com/numactl/numactl'
license=('LGPL2.1' 'GPL2')
depends=('perl' 'numactl' 'lib32-gcc-libs')
conflicts=('lib32-numactl')
provides=("lib32-numactl=${pkgver}")
source=("$_basename-${pkgver}.tar.gz::$url/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('af22829cda8b5bdee3d280e61291697bbd3f9bd372afdf119c9348b88369d40b')
prepare() {
cd "${_basename}-${pkgver}"
export CC='gcc -m32' CXX='g++ -m32' \
PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
autoreconf -i
./configure \
--prefix=/usr \
--libdir=/usr/lib32 \
--host=i686-unknown-linux-gnu
}
build() {
cd "${_basename}-${pkgver}"
make
}
package() {
cd "${_basename}-${pkgver}"
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir:?}"/usr/{share,bin,include}
}