Date: Friday, June 18, 2021 @ 17:18:05
  Author: dvzrv
Revision: 965178

upgpkg: libslirp 4.6.1-1: Upgrade to 4.6.1.

Switch to source tarball to lose the makedepend on git, pkgver() and
requirement for external tooling to retrieve commit checksum the tag points to.
Add libslirp.so to provides.
Make install of LICENSE more verbose.
Update maintainer/contributor info.

Modified:
  libslirp/trunk/PKGBUILD

----------+
 PKGBUILD |   23 ++++++++++-------------
 1 file changed, 10 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2021-06-18 16:20:28 UTC (rev 965177)
+++ PKGBUILD    2021-06-18 17:18:05 UTC (rev 965178)
@@ -1,8 +1,9 @@
-# Maintainer: BartÅ‚omiej Piotrowski <[email protected]>
 # Maintainer: Morten Linderud <[email protected]>
+# Contributor: David Runge <[email protected]>
+# Contributor: BartÅ‚omiej Piotrowski <[email protected]>
 
 pkgname=libslirp
-pkgver=4.6.0
+pkgver=4.6.1
 pkgrel=1
 pkgdesc='General purpose TCP-IP emulator'
 arch=(x86_64)
@@ -9,22 +10,18 @@
 url='https://gitlab.freedesktop.org/slirp/libslirp'
 license=(BSD MIT)
 depends=(glib2)
-makedepends=(git meson)
-_commit=6ef66db79938d763212320c1b64bc562c23d25a8       #refs/tags/v4.6.0^{}
-source=("git+$url#commit=$_commit")
-md5sums=('SKIP')
+makedepends=(meson)
+provides=('libslirp.so')
+source=("${url}/-/archive/v${pkgver}/libslirp-v${pkgver}.tar.gz")
+sha512sums=('04a9dd88cd58c849a24b9cff405d951952760d99ea2bef0b070463dff088d79f44557a13c9427ba0043f58d4b9e06b68ff64a4f23a7b0d66df594e32e1521cae')
+b2sums=('7a890912f2a8ce9d6820870e2d29b9c7a2253c403c2bcb127a38e02b2b81d1e262f34571c8a4c05fbf46874b9b2967cb5597cabe169ad54f12702fdd8b90bb3c')
 
-pkgver() {
-  cd $pkgname
-  git describe --tags | sed 's/^v//;s/-/+/g'
-}
-
 build() {
-  arch-meson $pkgname build
+  arch-meson "$pkgname-v${pkgver}" build
   ninja -C build
 }
 
 package() {
   DESTDIR="$pkgdir" meson install -C build
-  install -Dm644 $pkgname/COPYRIGHT 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -vDm 644 "$pkgname-v${pkgver}"/COPYRIGHT 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }

Reply via email to