mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 02:24:36 +08:00
48 lines
1.1 KiB
Bash
48 lines
1.1 KiB
Bash
#
|
|
# Core Packages for Chakra, part of chakraos.org
|
|
#
|
|
# maintainer : <inkane@chakra-project.org>
|
|
|
|
pkgname=wget
|
|
pkgver=1.16.3
|
|
pkgrel=2
|
|
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')
|
|
checkdepends=('perl-http-daemon' 'perl-io-socket-ssl' 'python')
|
|
optdepends=('ca-certificates: HTTPS downloads')
|
|
backup=('etc/wgetrc')
|
|
install=wget.install
|
|
source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz{,.sig})
|
|
md5sums=('d2e4455781a70140ae83b54ca594ce21'
|
|
'SKIP')
|
|
validpgpkeys=('AC404C1C0BF735C63FF4D562263D6DF2E163E1EA')
|
|
|
|
prepare() {
|
|
cd ${pkgname}-${pkgver}
|
|
cat >> doc/sample.wgetrc <<EOF
|
|
|
|
# default root certs location
|
|
ca_certificate=/etc/ssl/certs/ca-certificates.crt
|
|
EOF
|
|
}
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
./configure --prefix=/usr --sysconfdir=/etc --enable-nls --with-ssl=openssl
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd ${pkgname}-${pkgver}
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|