57 lines
1.8 KiB
Bash
57 lines
1.8 KiB
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
pkgname=perl-lwp-protocol-https
|
|
pkgver=6.09
|
|
_debver=6.09
|
|
_debrel=1
|
|
pkgrel=1
|
|
pkgdesc="Provide https support for LWP::UserAgent"
|
|
arch=('any')
|
|
url="https://metacpan.org/release/LWP-Protocol-https"
|
|
license=('GPL-1')
|
|
depends=('ca-certificates' 'perl-io-socket-ssl' 'perl-net-http' 'perl-libwww')
|
|
makedepends=('quilt')
|
|
checkdepends=('perl-test-requiresinternet')
|
|
options=('!emptydirs')
|
|
source=("https://search.cpan.org/CPAN/authors/id/O/OA/OALDERS/LWP-Protocol-https-$pkgver.tar.gz"
|
|
"https://deb.debian.org/debian/pool/main/libl/liblwp-protocol-https-perl/liblwp-protocol-https-perl_$_debver-$_debrel.debian.tar.xz"
|
|
'certs.patch')
|
|
sha512sums=('53e1ec7dec04988c3c7fa70a5f0ed60c38270bbbb9fe99a7cfeb84db0c40f5ff6f6f94aa4aa639498af6d0bc201dcb7e6e3491bae96411250ef50b010d32add1'
|
|
'314aec7517573c283842f38f6d19dd9f6541f20a951e711e590b7c3db3d4bd55d58cfa6bade2097ab4f7d300943c43c1053286c6ffdbcae3f6c8bc6a05d2c8dd'
|
|
'96f401471199c368895eb9b0e819a7287ed9e25953f756585ef7e809010e5d19c8b0614f3cd99cad0c33ca7c9a609ceea4b90569d3f7dec546cc8eeecd810d26')
|
|
|
|
prepare() {
|
|
cd LWP-Protocol-https-${pkgver}
|
|
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
|
# Debian patches
|
|
export QUILT_PATCHES=debian/patches
|
|
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
|
export QUILT_DIFF_ARGS='--no-timestamps'
|
|
|
|
mv "$srcdir"/debian .
|
|
|
|
# Doesn't apply and seems unimportant
|
|
rm -v debian/patches/cert.patch || true
|
|
|
|
quilt push -av
|
|
fi
|
|
patch -p1 -i ../certs.patch
|
|
}
|
|
|
|
build() {
|
|
cd LWP-Protocol-https-${pkgver}
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd LWP-Protocol-https-${pkgver}
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd LWP-Protocol-https-${pkgver}
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
|
}
|