# Maintainer:

pkgname=snarf
pkgver=7.0
pkgrel=8
pkgdesc="Command-line URL retrieval tool (http/ftp/gopher)"
arch=('x86_64')
url="https://www.xach.com/snarf/"
license=('GPL')
depends=('glibc')
source=(https://www.xach.com/snarf/download/source/${pkgname}-${pkgver}.tar.gz)
md5sums=('7470d8457bc0d347b5cd8668c9e735c4')

build() {
  cd ${pkgname}-${pkgver}
  export CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/}
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}
