Date: Tuesday, March 23, 2021 @ 18:53:59
  Author: dvzrv
Revision: 901326

upgpkg: unp 2.0.pre9-2: Rebuild to fix version string.

Replace the tilde character in the version string as used by upstream
with a dot, as the tilde character conflicts with Arch's package guidelines.
Update the license to (the more correct) GPL2 identifier.
Update the url to point to Debian's current package tracker.
Update the source to use TLS.

Modified:
  unp/trunk/PKGBUILD

----------+
 PKGBUILD |   22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2021-03-23 18:50:52 UTC (rev 901325)
+++ PKGBUILD    2021-03-23 18:53:59 UTC (rev 901326)
@@ -5,12 +5,13 @@
 # Contributor: Hannes Rist <[email protected]>
  
 pkgname=unp
-pkgver=2.0~pre9
-pkgrel=1
+_ver=2.0~pre9
+pkgver="${_ver//[~]/.}"
+pkgrel=2
 pkgdesc='A script for unpacking a wide variety of archive formats'
 arch=(any)
-url='https://packages.qa.debian.org/u/unp.html'
-license=(GPL)
+url="https://tracker.debian.org/pkg/unp";
+license=(GPL2)
 depends=(perl)
 optdepends=(
   'unarj: arj support'
@@ -24,14 +25,19 @@
   'cabextract: cab support'
   'rpmextract: rpm support'
 )
-source=(http://ftp.debian.org/debian/pool/main/u/unp/unp_$pkgver.tar.xz)
-sha1sums=('5a07da0d7c5ebe51d67707d1d51684a7e97770f6')
- 
+source=("https://ftp.debian.org/debian/pool/main/u/unp/unp_${_ver}.tar.xz";)
+sha512sums=('74c9a6e143c9023bdd456dacff5c3a6e30722e259f324c066fe3eed9e4a09c38b399b381719c8677c2fa84434c1e7720384d782d97c098fa6fbcbdbf4030986e')
+b2sums=('9042f48be0f80d5e40a08161a35c282ba458dc98cf13992835bdeecebd5fbadd33b3af9165738332cb9f508550a234a48d314332f00ecdacc808a8051eb0740b')
+
+prepare() {
+  mv -v "${pkgname}-${_ver}" "${pkgname}-${pkgver}"
+}
+
 build() {
   cd unp-$pkgver/po
   make
 }
- 
+
 package() {
   cd unp-$pkgver
   install -Dm755 unp "$pkgdir"/usr/bin/unp

Reply via email to