mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-03 06:51:57 +01:00
63 lines
1.8 KiB
Plaintext
63 lines
1.8 KiB
Plaintext
# Contributor: Daniel Santana <daniel@santana.tech>
|
|
# Maintainer: Daniel Santana <daniel@santana.tech>
|
|
pkgname=proot
|
|
pkgver=5.2.0_pre20210122
|
|
_gitrev=8c0ccf7db18b5d5ca2f47e1afba7897fb1bb39c0
|
|
pkgrel=0
|
|
pkgdesc="User-space implementation of chroot, mount --bind, and binfmt_misc"
|
|
url="https://proot-me.github.io"
|
|
arch="aarch64 armhf armv7 x86 x86_64"
|
|
license="GPL-2-or-later"
|
|
checkdepends="bash coreutils grep lzop mcookie python2 strace"
|
|
makedepends="
|
|
bsd-compat-headers
|
|
libarchive-dev
|
|
linux-headers
|
|
py3-docutils
|
|
talloc-dev
|
|
talloc-static
|
|
uthash-dev
|
|
"
|
|
subpackages="care $pkgname-doc $pkgname-static"
|
|
source="https://github.com/proot-me/proot/archive/$_gitrev/$pkgname-$_gitrev.tar.gz
|
|
tests-musl-compat.patch
|
|
"
|
|
builddir="$srcdir/$pkgname-$_gitrev"
|
|
options="!check" # FIXME: several tests are failing
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cp -r src src-static
|
|
}
|
|
|
|
build() {
|
|
make -C src proot care GIT=false
|
|
make -C src-static proot GIT=false LDFLAGS="$LDFLAGS -static -ltalloc"
|
|
make -C doc proot/man.1 care/man.1
|
|
}
|
|
|
|
check() {
|
|
make -C test
|
|
}
|
|
|
|
package() {
|
|
install -Dm 0755 ./src/proot "$pkgdir"/usr/bin/proot
|
|
install -Dm 0644 ./doc/proot/man.1 "$pkgdir"/usr/share/man/man1/proot.1
|
|
install -Dm 0644 ./doc/care/man.1 "$pkgdir"/usr/share/man/man1/care.1
|
|
}
|
|
|
|
care() {
|
|
pkgdesc="Comprehensive Archiver for Reproducible Execution"
|
|
|
|
install -Dm 0755 "$builddir"/src/care "$subpkgdir"/usr/bin/care
|
|
}
|
|
|
|
static() {
|
|
pkgdesc="$pkgdesc (built as static binary)"
|
|
|
|
install -Dm 0755 "$builddir"/src-static/proot "$subpkgdir"/usr/bin/proot.static
|
|
}
|
|
|
|
sha512sums="0b4617486630255ec7b26a0aae8e07c42ee302ea7d6aed676644cf4507f5951206d83a65d22263cb17ea803cfbec3b93c01d8936c401c58f20ea41ffad9a9230 proot-8c0ccf7db18b5d5ca2f47e1afba7897fb1bb39c0.tar.gz
|
|
d09de6d776072e9991abd04e294e6d36bd1634b9e972294a112526ebf3f63e919d01755de1ecd7253d614b41b07fe6882df8787c638b8576bcf2555abcafa466 tests-musl-compat.patch"
|