mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-14 08:29:01 +08:00
37 lines
996 B
Bash
37 lines
996 B
Bash
#
|
|
# Core Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer : <inkane@chakra-project.org>
|
|
# contributor: <abveritas[at]chakra-project[dot]org>
|
|
|
|
pkgname=wget
|
|
pkgver=1.15
|
|
pkgrel=1
|
|
pkgdesc="A network utility to retrieve files from the Web"
|
|
arch=('x86_64')
|
|
url="http://www.gnu.org/software/wget/wget.html"
|
|
license=('GPL3')
|
|
groups=('base')
|
|
depends=('openssl' 'libidn' 'util-linux' 'pcre')
|
|
optdepends=('ca-certificates: HTTPS downloads')
|
|
backup=('etc/wgetrc')
|
|
install=wget.install
|
|
source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz{,.sig})
|
|
md5sums=('7a279d5ac5594919124d5526e7143e28'
|
|
'SKIP')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
./configure -with-ssl=openssl --prefix=/usr --sysconfdir=/etc --enable-nls
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
echo '# default root certs location' >> "$pkgdir/etc/wgetrc"
|
|
echo 'ca_certificate=/etc/ssl/certs/ca-certificates.crt' >> "$pkgdir/etc/wgetrc"
|
|
|
|
}
|