core/wget/PKGBUILD

43 lines
1003 B
Bash
Raw Normal View History

2010-03-13 23:25:19 +08:00
pkgname=wget
pkgver=1.18
pkgrel=1
2010-03-13 23:25:19 +08:00
pkgdesc="A network utility to retrieve files from the Web"
arch=('x86_64')
2010-03-13 23:25:19 +08:00
url="http://www.gnu.org/software/wget/wget.html"
license=('GPL3')
groups=('base')
2014-02-10 06:14:56 +08:00
depends=('openssl' 'libidn' 'util-linux' 'pcre')
checkdepends=('perl-http-daemon' 'perl-io-socket-ssl' 'python3')
2010-03-13 23:25:19 +08:00
optdepends=('ca-certificates: HTTPS downloads')
backup=('etc/wgetrc')
install=wget.install
2014-02-10 06:14:56 +08:00
source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz{,.sig})
md5sums=('af9ca95a4bb8ac4a9bf10aeae66fa5ec'
2014-02-10 06:14:56 +08:00
'SKIP')
2015-05-26 06:09:16 +08:00
validpgpkeys=('AC404C1C0BF735C63FF4D562263D6DF2E163E1EA')
2010-03-13 23:25:19 +08:00
2015-01-05 22:43:33 +08:00
prepare() {
cd ${pkgname}-${pkgver}
cat >> doc/sample.wgetrc <<EOF
# default root certs location
ca_certificate=/etc/ssl/certs/ca-certificates.crt
EOF
}
2010-03-13 23:25:19 +08:00
build() {
2015-01-05 22:43:33 +08:00
cd ${pkgname}-${pkgver}
./configure --prefix=/usr --sysconfdir=/etc --enable-nls --with-ssl=openssl
make
2010-04-04 22:20:41 +08:00
}
2010-03-22 04:33:27 +08:00
2015-01-05 22:43:33 +08:00
check() {
cd ${pkgname}-${pkgver}
make check
}
2010-04-04 22:20:41 +08:00
package() {
2015-01-05 22:43:33 +08:00
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
2016-03-02 13:11:14 +08:00
}