PKGBUILD 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Maintainer: Noah Vogt (noahvogt) noah@noahvogt.com
  2. # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
  3. # Maintainer: Eric Bélanger <eric@archlinux.org>
  4. pkgname=wget-xdg
  5. pkgver=1.21.3
  6. pkgrel=1
  7. pkgdesc='Network utility to retrieve files from the Web - but moving ~/.wget-hsts to $XDG_CACHE_HOME/wget/hsts'
  8. url='https://www.gnu.org/software/wget/wget.html'
  9. arch=('x86_64')
  10. license=('GPL3')
  11. depends=('glibc' 'zlib' 'gnutls' 'libidn2' 'libidn2.so' 'util-linux-libs' 'libuuid.so'
  12. 'libpsl' 'libpsl.so' 'pcre2' 'nettle' 'libnettle.so')
  13. optdepends=('ca-certificates: HTTPS downloads')
  14. backup=('etc/wgetrc')
  15. source=(https://ftp.gnu.org/gnu/${pkgname%-*}/${pkgname%-*}-${pkgver}.tar.lz
  16. xdg-compliant-wget-hsts-file.patch)
  17. sha256sums=('dbd2fb5e47149d4752d0eaa0dac68cc49cf20d46df4f8e326ffc8f18b2af4ea5'
  18. 'e7f03d1f253e4b66c38271f4a47ae8d849ac6241c60728b56be1a10b94611293')
  19. b2sums=(
  20. 'e57cb9ea883fb9ed07065b6912238bcc10f4dfd4bd961a363c98ca9321086b75a49f9c7eb03e7704712cb03e43d40f1b74a4d9f5ac2ed142e41f0422a13de275'
  21. '0da265b080a193805605bb8705e69e43a07aef062205ae9cf3558ac5e1199b67275f406337153018af4ec1631ef066cdd6eebbd5ba8029b3855e8c71c5953b2e')
  22. provides=('wget')
  23. conflicts=('wget')
  24. prepare() {
  25. cd ${pkgname%-*}-${pkgver}
  26. patch -p1 -i ../xdg-compliant-wget-hsts-file.patch
  27. cat >> doc/sample.wgetrc <<EOF
  28. # default root certs location
  29. ca_certificate=/etc/ssl/certs/ca-certificates.crt
  30. EOF
  31. }
  32. build() {
  33. cd ${pkgname%-*}-${pkgver}
  34. ./configure \
  35. --prefix=/usr \
  36. --sysconfdir=/etc \
  37. --disable-rpath \
  38. --enable-nls \
  39. --with-ssl=gnutls
  40. make
  41. }
  42. package() {
  43. cd ${pkgname%-*}-${pkgver}
  44. make DESTDIR="${pkgdir}" install
  45. }
  46. # vim: ts=2 sw=2 et: