summaryrefslogtreecommitdiff
path: root/system/bubblewrap/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 05:05:33 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 05:18:33 -0500
commitce3dd8d4006760667251cc54e29437111f8f415f (patch)
tree052a48f70e30495e1986cc6977697911dac5999b /system/bubblewrap/APKBUILD
parent96c6e51ae6627ba4683d4462a5662c3dd2d3c24f (diff)
downloadpackages-ce3dd8d4006760667251cc54e29437111f8f415f.tar.gz
packages-ce3dd8d4006760667251cc54e29437111f8f415f.tar.bz2
packages-ce3dd8d4006760667251cc54e29437111f8f415f.tar.xz
packages-ce3dd8d4006760667251cc54e29437111f8f415f.zip
system/bubblewrap: pull in for abuild-rootbld
Diffstat (limited to 'system/bubblewrap/APKBUILD')
-rw-r--r--system/bubblewrap/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/system/bubblewrap/APKBUILD b/system/bubblewrap/APKBUILD
new file mode 100644
index 000000000..2f73d6f45
--- /dev/null
+++ b/system/bubblewrap/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer:
+pkgname=bubblewrap
+pkgver=0.2.0
+pkgrel=0
+pkgdesc="Unprivileged sandboxing tool"
+url="https://github.com/projectatomic/bubblewrap"
+arch="all"
+options="!check suid" # ?
+license="LGPL-2.0+"
+makedepends="autoconf automake libcap-dev docbook-xsl"
+subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch"
+source="bubblewrap-$pkgver.tar.gz::https://github.com/projectatomic/bubblewrap/archive/v$pkgver.tar.gz
+ realpath-workaround.patch musl-fixes.patch"
+
+prepare() {
+ cd "$builddir"
+ NOCONFIGURE=1 ./autogen.sh
+ default_prepare
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --with-priv-mode=setuid
+ make
+}
+
+package() {
+ cd "$builddir"
+ make install DESTDIR="$pkgdir"
+}
+
+bashcomp() {
+ pkgdesc="Bash completions for $pkgname"
+ depends=""
+ install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
+
+ mkdir -p "$subpkgdir"/usr/share/
+ mv "$pkgdir"/usr/share/bash-completion/ "$subpkgdir"/usr/share/
+}
+
+sha512sums="746f10cd9f9852ca4679d589357402ec10c352e02f77384844a4657fd9b2952189a3299319fbefedd35358d39fd16ded63cc3db95041ed2091548183786b8b63 bubblewrap-0.2.0.tar.gz
+400a0446670ebf80f16739f1a7a2878aadc3099424f957ba09ec3df780506c23a11368f0578c9e352d7ca6473fa713df826fad7a20c50338aa5f9fa9ac6b84a4 realpath-workaround.patch
+f59cda3b09dd99db9ca6d97099a15bb2523e054063d677502317ae3165ba2e32105a0ae8f877afc3827bd28d093c9d9d413270f4c87d9fe5f26f3eee670d916e musl-fixes.patch"