blob: 3149620bb8bf1d54332971a79b7e441e83f681d5 (
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
54
55
56
57
58
59
60
61
62
63
64
65
|
# Maintainer: Gaƫl PORTAY <gael.portay@gmail.com>
pkgname=iamroot
pkgver=23
pkgrel=1
pkgdesc='Emulating the syscall chroot(2) in an unpriviliged process'
arch=('x86_64')
url="https://github.com/gportay/$pkgname"
license=('GPL')
makedepends=('lib32-glibc'
'i386-musl'
'kernel-headers-musl-i386'
'musl'
'kernel-headers-musl'
'git'
'patchelf'
'asciidoctor')
checkdepends=('shellcheck')
options=('!strip')
source=("https://github.com/gportay/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('f33087f278f02cb94c25c9e6d97b288f9deed61f3b959615a6c20ebabbd0390d')
validpgpkeys=('8F3491E60E62695ED780AC672FA122CA0501CA71')
# Fixes:
#
# $ ish
# /bin/bash: symbol lookup error: /usr/lib/iamroot/libiamroot.so: undefined symbol: _Unwind_Resume
CFLAGS="${CFLAGS//-fexceptions/} -DJIM_REGEXP"
export CFLAGS
prepare() {
cd "$pkgname-$pkgver"
ln -sf support/linux.mk makefile
touch local.mk
}
build() {
cd "$pkgname-$pkgver"
make PREFIX=/usr i686/libiamroot-linux.so.2
make PREFIX=/usr i686/libiamroot-musl-i386.so.1
make PREFIX=/usr x86_64/libiamroot-linux-x86-64.so.2
make PREFIX=/usr x86_64/libiamroot-musl-x86_64.so.1
make PREFIX=/usr ld-iamroot.so
make PREFIX=/usr doc
}
check() {
cd "$pkgname-$pkgver"
make -k check
}
package() {
cd "$pkgname-$pkgver"
make PREFIX=/usr DESTDIR="$pkgdir" install-exec-i686-linux.2
make PREFIX=/usr DESTDIR="$pkgdir" install-exec-i686-musl-i386.1
make PREFIX=/usr DESTDIR="$pkgdir" install-exec-x86_64-linux-x86-64.2
make PREFIX=/usr DESTDIR="$pkgdir" install-exec-x86_64-musl-x86_64.1
make PREFIX=/usr DESTDIR="$pkgdir" libiamroot.so
make PREFIX=/usr DESTDIR="$pkgdir" install-exec
make PREFIX=/usr DESTDIR="$pkgdir" install-doc
make PREFIX=/usr DESTDIR="$pkgdir" install-bash-completion
make PREFIX=/usr DESTDIR="$pkgdir" install-support-i686
make PREFIX=/usr DESTDIR="$pkgdir" install-support-x86_64
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|