PKGBUILD 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.4
  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{,.sig}
  16. xdg-compliant-wget-hsts-file.patch)
  17. sha256sums=('3683619a5f50edcbccb1720a79006fa37bf9b9a255a8c5b48048bc3c7a874bd9'
  18. 'SKIP'
  19. 'e7f03d1f253e4b66c38271f4a47ae8d849ac6241c60728b56be1a10b94611293')
  20. b2sums=(
  21. 'ce4901b620b6523ad25594d810d2cf216b30d0256bb7dfd1c92c7c44739f3ff18ee74333a3629735af72dffa473f75a22eb39005eb25d5e077ce0ee69a47a241'
  22. 'SKIP'
  23. '0da265b080a193805605bb8705e69e43a07aef062205ae9cf3558ac5e1199b67275f406337153018af4ec1631ef066cdd6eebbd5ba8029b3855e8c71c5953b2e')
  24. validpgpkeys=(
  25. 'AC404C1C0BF735C63FF4D562263D6DF2E163E1EA' # Giuseppe Scrivano <gscrivano@gnu.org>
  26. '7845120B07CBD8D6ECE5FF2B2A1743EDA91A35B6' # Darshit Shah <darnir@gnu.org>
  27. '1CB27DBC98614B2D5841646D08302DB6A2670428' # Tim Rühsen <tim.ruehsen@gmx.de>
  28. )
  29. provides=('wget')
  30. conflicts=('wget')
  31. prepare() {
  32. cd ${pkgname%-*}-${pkgver}
  33. patch -p1 -i ../xdg-compliant-wget-hsts-file.patch
  34. cat >> doc/sample.wgetrc <<EOF
  35. # default root certs location
  36. ca_certificate=/etc/ssl/certs/ca-certificates.crt
  37. EOF
  38. }
  39. build() {
  40. cd ${pkgname%-*}-${pkgver}
  41. ./configure \
  42. --prefix=/usr \
  43. --sysconfdir=/etc \
  44. --disable-rpath \
  45. --enable-nls \
  46. --with-ssl=gnutls
  47. make
  48. }
  49. package() {
  50. cd ${pkgname%-*}-${pkgver}
  51. make DESTDIR="${pkgdir}" install
  52. }
  53. # vim: ts=2 sw=2 et: