PKGBUILD 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. pkgbase=wget
  5. pkgname=wget-xdg
  6. pkgver=1.21.2
  7. pkgrel=2
  8. pkgdesc='Network utility to retrieve files from the Web - but moving ~/.wget-hsts to $XDG_CACHE_HOME/wget/hsts'
  9. url='https://www.gnu.org/software/wget/wget.html'
  10. arch=('x86_64')
  11. license=('GPL3')
  12. depends=('glibc' 'zlib' 'gnutls' 'libidn2' 'libidn2.so' 'util-linux-libs' 'libuuid.so'
  13. 'libpsl' 'libpsl.so' 'pcre2' 'nettle' 'libnettle.so')
  14. optdepends=('ca-certificates: HTTPS downloads')
  15. backup=('etc/wgetrc')
  16. source=(https://ftp.gnu.org/gnu/${pkgbase}/${pkgbase}-${pkgver}.tar.lz
  17. xdg-compliant-wget-hsts-file.patch)
  18. sha256sums=('1727a330a86acacb3e57615ce268f5f29978bf7adec4abe6a30d370207bc91b3'
  19. 'e7f03d1f253e4b66c38271f4a47ae8d849ac6241c60728b56be1a10b94611293')
  20. b2sums=(
  21. '9141b27f2db587bbd34cb97ecf4a6179e564817067b45c8168390cf1548c1a18f71723247d82b11f2edf3981a9b9f0d2097afe5d56397e033b0a86adae9482b1'
  22. '0da265b080a193805605bb8705e69e43a07aef062205ae9cf3558ac5e1199b67275f406337153018af4ec1631ef066cdd6eebbd5ba8029b3855e8c71c5953b2e')
  23. provides=('wget')
  24. conflicts=('wget')
  25. prepare() {
  26. cd ${pkgbase}-${pkgver}
  27. patch -p1 -i ../xdg-compliant-wget-hsts-file.patch
  28. cat >> doc/sample.wgetrc <<EOF
  29. # default root certs location
  30. ca_certificate=/etc/ssl/certs/ca-certificates.crt
  31. EOF
  32. }
  33. build() {
  34. cd ${pkgbase}-${pkgver}
  35. ./configure \
  36. --prefix=/usr \
  37. --sysconfdir=/etc \
  38. --disable-rpath \
  39. --enable-nls \
  40. --with-ssl=gnutls
  41. make
  42. }
  43. package() {
  44. cd ${pkgbase}-${pkgver}
  45. make DESTDIR="${pkgdir}" install
  46. }
  47. # vim: ts=2 sw=2 et: