[arch-commits] Commit in bubblewrap/repos (testing-x86_64 testing-x86_64/PKGBUILD)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Mon Mar 30 13:29:35 UTC 2020
Date: Monday, March 30, 2020 @ 13:29:34
Author: bpiotrowski
Revision: 378741
archrelease: copy trunk to testing-x86_64
Added:
bubblewrap/repos/testing-x86_64/
bubblewrap/repos/testing-x86_64/PKGBUILD
(from rev 378740, bubblewrap/trunk/PKGBUILD)
----------+
PKGBUILD | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
Copied: bubblewrap/repos/testing-x86_64/PKGBUILD (from rev 378740, bubblewrap/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2020-03-30 13:29:34 UTC (rev 378741)
@@ -0,0 +1,57 @@
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+
+pkgname=(bubblewrap bubblewrap-suid)
+pkgver=0.4.1
+pkgrel=1
+pkgdesc='Unprivileged sandboxing tool'
+url='https://github.com/projectatomic/bubblewrap'
+arch=(x86_64)
+license=(GPL)
+depends=(glibc libcap)
+makedepends=(libxslt docbook-xsl git)
+_commit=5feb64dc60c936a7f9e424df9478aae9b88ee48a
+source=(git+$url#commit=$_commit)
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $pkgbase
+ git describe | sed 's/^v//'
+}
+
+prepare() {
+ cd $pkgbase
+ NOCONFIGURE=1 ./autogen.sh
+
+ cd "$srcdir"
+ cp -r ${pkgbase}{,-none}
+ cp -r ${pkgbase}{,-setuid}
+}
+
+_build() {
+ pushd ${pkgbase}-$1
+ ./configure --prefix=/usr \
+ --with-priv-mode=$1
+ make
+ popd
+}
+
+_install() {
+ make -C "$srcdir/${pkgbase}-$1" DESTDIR="$pkgdir" install
+}
+
+build() {
+ _build none
+ _build setuid
+}
+
+package_bubblewrap() {
+ _install none
+}
+
+package_bubblewrap-suid() {
+ pkgdesc+=" (setuid variant)"
+ provides=(bubblewrap)
+ conflicts=(bubblewrap)
+
+ _install setuid
+}
More information about the arch-commits
mailing list