# Contributor: Daniel Santana # Maintainer: Daniel Santana pkgname=proot _pkgname=PRoot pkgver=5.1.0_git20190306 _sha=a6db8746f21a2e68a8d0290a0aa9b3ad36d78f56 # contain musl fixes pkgrel=1 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" makedepends="bsd-compat-headers linux-headers libarchive-dev talloc-dev" subpackages="$pkgname-doc $pkgname-static" source="$_pkgname-$pkgver.tar.gz::https://github.com/proot-me/PRoot/archive/$_sha.tar.gz" builddir="$srcdir/$_pkgname-$_sha" options="!check" # several tests are failing build() { cd "$builddir"/src make proot proot.static } package() { install -Dm 0755 "$builddir"/src/proot "$pkgdir"/usr/bin/proot install -Dm 0644 "$builddir"/doc/proot/man.1 "$pkgdir"/usr/share/man/man1/proot.1 } static() { install -Dm 0755 "$builddir"/src/proot.static "$subpkgdir"/usr/bin/proot.static } sha512sums="956a4213cf6915a925fd1715bf26f7b531e0c45b70893db39aa760979952d7a8777d67a9976732884939e04c61975a913a1989afa9246c4c0d01a4ec9d825c55 PRoot-5.1.0_git20190306.tar.gz"