2011-07-21 01:11:47 +08:00
|
|
|
#
|
|
|
|
# Core Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
2013-07-20 23:54:23 +08:00
|
|
|
# maintainer : <inkane@chakra-project.org>
|
|
|
|
# contributor: <abveritas[at]chakra-project[dot]org>
|
2010-03-13 23:25:19 +08:00
|
|
|
|
|
|
|
pkgname=wget
|
2012-12-16 10:04:00 +08:00
|
|
|
pkgver=1.14
|
2013-07-20 23:54:23 +08:00
|
|
|
pkgrel=2
|
2010-03-13 23:25:19 +08:00
|
|
|
pkgdesc="A network utility to retrieve files from the Web"
|
2012-12-16 10:04:00 +08:00
|
|
|
arch=('x86_64')
|
2010-03-13 23:25:19 +08:00
|
|
|
url="http://www.gnu.org/software/wget/wget.html"
|
|
|
|
license=('GPL3')
|
|
|
|
groups=('base')
|
2012-12-16 10:04:00 +08:00
|
|
|
depends=('glibc' 'openssl' 'libidn' 'util-linux')
|
2010-03-13 23:25:19 +08:00
|
|
|
optdepends=('ca-certificates: HTTPS downloads')
|
|
|
|
backup=('etc/wgetrc')
|
|
|
|
install=wget.install
|
2013-07-20 23:54:23 +08:00
|
|
|
source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz{,.sig}
|
|
|
|
"0001-Fix-error-in-texi2pod-intriduced-with-Perl-5.18.patch" )
|
|
|
|
md5sums=('316f6f59292c9098ad81fd54f658c579'
|
|
|
|
'3e121933d69f32fa58776bff76bcebd0'
|
|
|
|
'93de527d1ed556400c0a7ffe82910af4')
|
2010-03-13 23:25:19 +08:00
|
|
|
|
|
|
|
build() {
|
2011-07-21 01:11:47 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2013-07-20 23:54:23 +08:00
|
|
|
patch -Np1 < "${srcdir}"/0001-Fix-error-in-texi2pod-intriduced-with-Perl-5.18.patch
|
2011-07-21 01:11:47 +08:00
|
|
|
|
2012-12-16 10:04:00 +08:00
|
|
|
./configure -with-ssl=openssl --prefix=/usr --sysconfdir=/etc --enable-nls
|
2011-07-21 01:11:47 +08:00
|
|
|
make
|
2010-04-04 22:20:41 +08:00
|
|
|
}
|
2010-03-22 04:33:27 +08:00
|
|
|
|
2010-04-04 22:20:41 +08:00
|
|
|
package() {
|
2011-07-21 01:11:47 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
2013-07-20 23:54:23 +08:00
|
|
|
echo '# default root certs location' >> "$pkgdir/etc/wgetrc"
|
|
|
|
echo 'ca_certificate=/etc/ssl/certs/ca-certificates.crt' >> "$pkgdir/etc/wgetrc"
|
2011-07-21 01:11:47 +08:00
|
|
|
|
2010-03-13 23:25:19 +08:00
|
|
|
}
|