aboutsummaryrefslogtreecommitdiffstats
path: root/testing/proot/APKBUILD
blob: 3eb8bc69e58b53ec2333711e3fbca05150703b5b (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
# Contributor: Daniel Santana <daniel@santana.tech>
# Maintainer: Daniel Santana <daniel@santana.tech>
pkgname=proot
_pkgname=PRoot
pkgver=5.1.0_git20190306
_sha=a6db8746f21a2e68a8d0290a0aa9b3ad36d78f56 # contain musl fixes
pkgrel=0
pkgdesc="User-space implementation of chroot, mount --bind, and binfmt_misc"
url="https://proot-me.github.io"
arch="all !ppc64le !s390x"
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"