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

David Runge dvzrv at archlinux.org
Fri Sep 25 07:15:51 UTC 2020


    Date: Friday, September 25, 2020 @ 07:15:50
  Author: dvzrv
Revision: 396535

upgpkg: libupnp 1.14.0-1: Upgrade to 1.14.0.

Switch to github for sources.
Add libixml.so and libupnp.so to provides.
Add check() to run tests.
Add docs.
Update contributor info.

Modified:
  libupnp/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-25 07:08:18 UTC (rev 396534)
+++ PKGBUILD	2020-09-25 07:15:50 UTC (rev 396535)
@@ -1,20 +1,24 @@
 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: David Runge <dvzrv at archlinux.org>
 # Contributor: Giovanni Scafora <giovanni at archlinux.org>
 # Contributor: kastor <kastor at fobos.org.ar>
 
+_name=pupnp
 pkgname=libupnp
-pkgver=1.6.25
-pkgrel=2
+pkgver=1.14.0
+pkgrel=1
 pkgdesc='Portable Open Source UPnP Development Kit'
 url='http://pupnp.sourceforge.net/'
 arch=('x86_64')
 license=('BSD')
 depends=('glibc')
-makedepends=('pkgconfig')
-source=(https://downloads.sourceforge.net/sourceforge/pupnp/${pkgname}-${pkgver}.tar.bz2)
-sha256sums=('c5a300b86775435c076d58a79cc0d5a977d76027d2a7d721590729b7f369fa43')
+provides=('libixml.so' 'libupnp.so')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${_name}/${_name}/archive/release-${pkgver}.tar.gz")
+sha512sums=('d7cf50e168aff2ef3ad08b4c383108d5044e4c9d2923088bb93423ee5fc555c32f0254f307cb86ea7c18197612cf2d2c6c681f82d99a6f01a68f86a21c6eecb7')
+b2sums=('8e77f49c6eacbaff2d4194f281f73e882d282b1af400b2d8e08111b7cb0b89305f3f06b8e0ebdf8eab35de39bcd2cd30be3ecb575d560c652e96bd7831eade40')
 
 prepare() {
+  mv -v ${_name}-release-${pkgver} ${pkgname}-${pkgver}
   cd ${pkgname}-${pkgver}
   autoreconf -fiv
 }
@@ -25,10 +29,17 @@
   make
 }
 
+check() {
+  cd ${pkgname}-${pkgver}
+  make -k check
+}
+
 package() {
   cd ${pkgname}-${pkgver}
   make DESTDIR=${pkgdir} install
-  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 {ChangeLog,README.md} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list