# Contributor: fossdd <fossdd@pwned.life>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=wcurl
pkgver=2024.07.10
pkgrel=0
pkgdesc="Simple wrapper around curl to easily download files"
url="https://salsa.debian.org/debian/wcurl"
arch="noarch"
license="curl"
depends="curl"
checkdepends="shunit2"
subpackages="$pkgname-doc"
source="https://salsa.debian.org/debian/wcurl/-/archive/$pkgver/wcurl-$pkgver.tar.gz"

check() {
	./tests/tests.sh
}

package() {
	install -Dvm755 wcurl -t "$pkgdir"/usr/bin/
	install -Dvm644 wcurl.1 -t "$pkgdir"/usr/share/man/man1/
	install -Dvm644 README.md -t "$pkgdir"/usr/share/doc/$pkgname/
	install -Dvm644 LICENSE -t "$pkgdir"/usr/share/doc/$pkgname/
}

sha512sums="
303e52211ebb948a71ec2ef4e0eb4ad7e0de4bb82b6e6fa025a161b0c5c2fc0c0205fd9782e08f1759363ca1a2f9186d42a0073deb955dbf586691b513a7a1e4  wcurl-2024.07.10.tar.gz
"
