blob: 48a45f0a524243b1fa99cecc333b083a9553d02d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: David Runge <dvzrv@archlinux.org>
# Contributor: Dan McGee <dan@archlinux.org>
# Contributor: Florian Zeitz <florob at babelmonkeys dot de>
_android_arch=aarch64
pkgname=android-${_android_arch}-numactl
pkgver=2.0.19
pkgrel=1
arch=('any')
pkgdesc="Simple NUMA policy support (Android ${_android_arch})"
url="https://github.com/numactl/numactl"
license=('GPL-2.0-only'
'LGPL-2.1-only')
groups=('android-numactl')
depends=('android-ndk')
makedepends=('android-configure')
options=(!strip !buildflags staticlibs !emptydirs)
source=("${url}/archive/refs/tags/v${pkgver}.tar.gz"
'0001-Disable-attach_sysvshm.patch')
md5sums=('15ba6026bb8858748033ed87815a9eff'
'78f308cfb3a98f68bd3d07eaef7572dd')
prepare(){
cd "${srcdir}/numactl-${pkgver}"
source android-env ${_android_arch}
if [ "${ANDROID_MINIMUM_PLATFORM}" -lt 26 ]; then
patch -Np1 -i ../0001-Disable-attach_sysvshm.patch
fi
autoreconf -fiv
}
build() {
cd "${srcdir}/numactl-${pkgver}"
source android-env ${_android_arch}
android-${_android_arch}-configure
make $MAKEFLAGS
}
package() {
cd "${srcdir}/numactl-${pkgver}"
source android-env ${_android_arch}
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}/${ANDROID_PREFIX_BIN}"
rm -rf "${pkgdir}/${ANDROID_PREFIX_SHARE}"
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a
}
|