diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-01-09 11:06:26 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-01-09 11:06:26 +0200 |
commit | ce61489c4ee2e4e7ac10769d74035dc5fd3f27c9 (patch) | |
tree | 224398c458a9257f9ab2928d00edb7775d3b1f9b /community/bubblewrap/APKBUILD | |
parent | 2781f99c6e96e9c3776969172b6916a5a3f7b19d (diff) | |
download | aports-ce61489c4ee2e4e7ac10769d74035dc5fd3f27c9.tar.bz2 aports-ce61489c4ee2e4e7ac10769d74035dc5fd3f27c9.tar.xz |
community/bubblewrap: new aport
Unprivileged sandboxing tool
https://github.com/projectatomic/bubblewrap
Diffstat (limited to 'community/bubblewrap/APKBUILD')
-rw-r--r-- | community/bubblewrap/APKBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/community/bubblewrap/APKBUILD b/community/bubblewrap/APKBUILD new file mode 100644 index 0000000000..82e5e419d9 --- /dev/null +++ b/community/bubblewrap/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=bubblewrap +pkgver=0.1.5 +pkgrel=0 +pkgdesc="Unprivileged sandboxing tool" +url="https://github.com/projectatomic/bubblewrap" +arch="all" +license="LGPL2+" +depends="" +depends_dev="" +makedepends="autoconf automake libcap $depends_dev" +install="" +subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch" +source="bubblewrap-$pkgver.tar.gz::https://github.com/projectatomic/bubblewrap/archive/v$pkgver.tar.gz" +builddir="$srcdir/bubblewrap-$pkgver" + +prepare() { + default_prepare + cd "$builddir" + NOCONFIGURE=1 ./autogen.sh +} + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --with-priv-mode=caps \ + || return 1 + make || return 1 +} + +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/ || return 1 +} + +md5sums="a709841b318bb02b243055625495e282 bubblewrap-0.1.5.tar.gz" +sha256sums="0a5a716a223dd4c93ccb45b1eb513a59f427f44c6a8675881de5954c026b8d7e bubblewrap-0.1.5.tar.gz" +sha512sums="df023942b2194552f9cdff348680a1e5287a674543df89ed1368f089ccca3db5524aa7b353e7f6c61575e9bcfab2318b8169c38c5a803879850abb16524e4458 bubblewrap-0.1.5.tar.gz" |