Noah Vogt 3 jaren geleden
bovenliggende
commit
aeb71f828c
2 gewijzigde bestanden met toevoegingen van 9 en 8 verwijderingen
  1. 3 3
      .SRCINFO
  2. 6 5
      PKGBUILD

+ 3 - 3
.SRCINFO

@@ -1,7 +1,7 @@
-pkgbase = wget-xdg
+pkgbase = wget
 	pkgdesc = Network utility to retrieve files from the Web - but moving ~/.wget-hsts to $XDG_CACHE_HOME/wget/hsts
 	pkgver = 1.21.2
-	pkgrel = 1
+	pkgrel = 2
 	url = https://www.gnu.org/software/wget/wget.html
 	arch = x86_64
 	license = GPL3
@@ -21,7 +21,7 @@ pkgbase = wget-xdg
 	provides = wget
 	conflicts = wget
 	backup = etc/wgetrc
-	source = https://ftp.gnu.org/gnu/wget-xdg/wget-xdg-1.21.2.tar.lz
+	source = https://ftp.gnu.org/gnu/wget/wget-1.21.2.tar.lz
 	source = xdg-compliant-wget-hsts-file.patch
 	sha256sums = 1727a330a86acacb3e57615ce268f5f29978bf7adec4abe6a30d370207bc91b3
 	sha256sums = e7f03d1f253e4b66c38271f4a47ae8d849ac6241c60728b56be1a10b94611293

+ 6 - 5
PKGBUILD

@@ -2,9 +2,10 @@
 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
 # Maintainer: Eric Bélanger <eric@archlinux.org>
 
+pkgbase=wget
 pkgname=wget-xdg
 pkgver=1.21.2
-pkgrel=1
+pkgrel=2
 pkgdesc='Network utility to retrieve files from the Web - but moving ~/.wget-hsts to $XDG_CACHE_HOME/wget/hsts'
 url='https://www.gnu.org/software/wget/wget.html'
 arch=('x86_64')
@@ -13,7 +14,7 @@ depends=('glibc' 'zlib' 'gnutls' 'libidn2' 'libidn2.so' 'util-linux-libs' 'libuu
          'libpsl' 'libpsl.so' 'pcre2' 'nettle' 'libnettle.so')
 optdepends=('ca-certificates: HTTPS downloads')
 backup=('etc/wgetrc')
-source=(https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.lz
+source=(https://ftp.gnu.org/gnu/${pkgbase}/${pkgbase}-${pkgver}.tar.lz
         xdg-compliant-wget-hsts-file.patch)
 sha256sums=('1727a330a86acacb3e57615ce268f5f29978bf7adec4abe6a30d370207bc91b3'
             'e7f03d1f253e4b66c38271f4a47ae8d849ac6241c60728b56be1a10b94611293')
@@ -24,7 +25,7 @@ provides=('wget')
 conflicts=('wget')
 
 prepare() {
-  cd ${pkgname}-${pkgver}
+  cd ${pkgbase}-${pkgver}
   patch -p1 -i ../xdg-compliant-wget-hsts-file.patch
   cat >> doc/sample.wgetrc <<EOF
 # default root certs location
@@ -33,7 +34,7 @@ EOF
 }
 
 build() {
-  cd ${pkgname}-${pkgver}
+  cd ${pkgbase}-${pkgver}
   ./configure \
     --prefix=/usr \
     --sysconfdir=/etc \
@@ -45,7 +46,7 @@ build() {
 
 
 package() {
-  cd ${pkgname}-${pkgver}
+  cd ${pkgbase}-${pkgver}
   make DESTDIR="${pkgdir}" install
 }