main/wget: add check

This commit is contained in:
A. Wilcox 2018-02-10 15:46:00 -06:00 committed by William Pitcock
parent 9f5a7e1687
commit b83227ecff

View File

@ -3,13 +3,14 @@
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=wget
pkgver=1.19.4
pkgrel=0
pkgrel=1
pkgdesc="A network utility to retrieve files from the Web"
url="https://www.gnu.org/software/wget/wget.html"
arch="all"
license="GPL-3.0-or-later"
depends=""
makedepends="libressl-dev perl"
checkdepends="perl-http-daemon"
subpackages="$pkgname-doc"
install=""
source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz "
@ -31,14 +32,18 @@ build() {
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--with-ssl=openssl \
--disable-nls \
|| return 1
make || return 1
--disable-nls
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
make DESTDIR="$pkgdir" install
rm -rf "$pkgdir"/usr/lib
}