[arch-commits] Commit in bubblewrap/trunk (PKGBUILD)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Thu Oct 11 06:49:51 UTC 2018


    Date: Thursday, October 11, 2018 @ 06:49:50
  Author: bpiotrowski
Revision: 336118

0.3.1-1

Modified:
  bubblewrap/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++++++++++++------
 1 file changed, 17 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-10-11 06:44:09 UTC (rev 336117)
+++ PKGBUILD	2018-10-11 06:49:50 UTC (rev 336118)
@@ -1,7 +1,7 @@
 # Maintainer: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
 
 pkgname=bubblewrap
-pkgver=0.3.0
+pkgver=0.3.1
 pkgrel=1
 pkgdesc='Unprivileged sandboxing tool'
 url='https://github.com/projectatomic/bubblewrap'
@@ -8,12 +8,23 @@
 arch=(x86_64)
 license=(GPL)
 depends=(glibc libcap)
-makedepends=(libxslt docbook-xsl)
-source=($url/releases/download/v$pkgver/bubblewrap-${pkgver}.tar.xz)
-sha256sums=('c8e52870b54a10235174775e03164b2a9253e19cb3a95b3e4bd9e2d84b9eaf2c')
+makedepends=(libxslt docbook-xsl git)
+_commit=e7b517f40956a153972fd61a2c6da1140f52990b  # tags/v0.3.1^0
+source=(git+$url#commit=$_commit)
+sha256sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe | sed 's/^v//'
+}
+
+prepare() {
+  cd $pkgname
+  NOCONFIGURE=1 ./autogen.sh
+}
+
 build() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   ./configure --prefix=/usr \
     --with-priv-mode=setuid
   make
@@ -20,6 +31,6 @@
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   make DESTDIR="$pkgdir" install
 }



More information about the arch-commits mailing list