mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-26 20:02:30 +01:00
60 lines
1.8 KiB
Plaintext
60 lines
1.8 KiB
Plaintext
# Contributor: Timo Teräs <timo.teras@iki.fi>
|
|
# Maintainer: Timo Teräs <timo.teras@iki.fi>
|
|
pkgname=bubblewrap
|
|
pkgver=0.1.5
|
|
pkgrel=1
|
|
pkgdesc="Unprivileged sandboxing tool"
|
|
url="https://github.com/projectatomic/bubblewrap"
|
|
arch="all"
|
|
license="LGPL2+"
|
|
options="suid"
|
|
depends=""
|
|
depends_dev=""
|
|
makedepends="autoconf automake libcap-dev docbook-xsl $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
|
|
realpath-workaround.patch"
|
|
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=setuid \
|
|
|| 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
|
|
469c4aa58c265d17fe2abd1690fdd952 realpath-workaround.patch"
|
|
sha256sums="0a5a716a223dd4c93ccb45b1eb513a59f427f44c6a8675881de5954c026b8d7e bubblewrap-0.1.5.tar.gz
|
|
cb291dd80a76bcec31a07e382f0f7e2606dd5b3e19d87a7b201728972607d069 realpath-workaround.patch"
|
|
sha512sums="df023942b2194552f9cdff348680a1e5287a674543df89ed1368f089ccca3db5524aa7b353e7f6c61575e9bcfab2318b8169c38c5a803879850abb16524e4458 bubblewrap-0.1.5.tar.gz
|
|
400a0446670ebf80f16739f1a7a2878aadc3099424f957ba09ec3df780506c23a11368f0578c9e352d7ca6473fa713df826fad7a20c50338aa5f9fa9ac6b84a4 realpath-workaround.patch"
|