blob: 04c99c066b393594055566e33452a7250db0056f (
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
|
# Maintainer: Gaƫl PORTAY <gael.portay@gmail.com>
pkgname=iamroot-arm
pkgver=23
pkgrel=1
pkgdesc='Emulating the syscall chroot(2) in an unpriviliged process (arm)'
arch=('x86_64')
url="https://github.com/gportay/${pkgname%-arm}"
license=('GPL')
makedepends=('armv5-eabi-glibc-bleeding-edge-toolchain'
'armv5-eabi-musl-bleeding-edge-toolchain'
'git'
'patchelf'
'asciidoctor')
checkdepends=('shellcheck')
options=('!strip')
source=("https://github.com/gportay/${pkgname%-arm}/archive/v$pkgver.tar.gz")
sha256sums=('f33087f278f02cb94c25c9e6d97b288f9deed61f3b959615a6c20ebabbd0390d')
validpgpkeys=('8F3491E60E62695ED780AC672FA122CA0501CA71')
prepare() {
cd "${pkgname%-arm}-$pkgver"
ln -sf support/linux.mk makefile
touch local.mk
}
build() {
cd "${pkgname%-arm}-$pkgver"
make CFLAGS=-DJIM_REGEXP PREFIX=/usr arm/libiamroot-linux.so.3
make CFLAGS=-DJIM_REGEXP PREFIX=/usr arm/libiamroot-musl-arm.so.1
}
check() {
cd "${pkgname%-arm}-$pkgver"
make -k check
}
package() {
cd "${pkgname%-arm}-$pkgver"
make PREFIX=/usr DESTDIR="$pkgdir" install-exec-arm-linux.3
make PREFIX=/usr DESTDIR="$pkgdir" install-exec-arm-musl-arm.1
make PREFIX=/usr DESTDIR="$pkgdir" install-support-arm
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|