Commit 9876aa8c authored by Jakub Jirutka's avatar Jakub Jirutka

testing/proot: build care and add it as subpackage

parent 456f52bb
......@@ -15,8 +15,9 @@ makedepends="
py3-docutils
talloc-dev
talloc-static
uthash-dev
"
subpackages="$pkgname-doc $pkgname-static"
subpackages="care $pkgname-doc $pkgname-static"
source="https://github.com/proot-me/proot/archive/v$_pkgver/$pkgname-$_pkgver.tar.gz"
builddir="$srcdir/$pkgname-$_pkgver"
options="!check" # FIXME: several tests are failing
......@@ -27,9 +28,9 @@ prepare() {
}
build() {
make -C src proot GIT=false
make -C src proot care GIT=false
make -C src-static proot GIT=false LDFLAGS="$LDFLAGS -static -ltalloc"
make -C doc proot/man.1
make -C doc proot/man.1 care/man.1
}
check() {
......@@ -39,6 +40,13 @@ check() {
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() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment