summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9669e9c71b0985f84c55cfa9d4d6a8321e705c0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# CPAN Name  : WWW::Expand
# Contributor: Anton Leontiev <scileont /at/ gmail.com>
# Generator  : CPANPLUS::Dist::Arch 1.32

pkgname=perl-www-expand
pkgver=0.1.5
pkgrel=2
pkgdesc='Perl module to expand any shortened URL'
arch=('any')
url='https://metacpan.org/release/WWW-Expand'
license=('PerlArtistic' 'GPL')
depends=('perl>=5.8.8'
	'perl-http-message'
	'perl-libwww'
	'perl-strictures')
source=(http://search.cpan.org/CPAN/authors/id/G/GL/GLITCHMR/WWW-Expand-0.1.5.tar.gz)
options=(!emptydirs)
md5sums=('a3544dd7ac8aa6406864492c431d3046')

build() {
	cd WWW-Expand-0.1.5
	PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd WWW-Expand-0.1.5
	make test
}

package() {
	cd WWW-Expand-0.1.5
	make install DESTDIR="$pkgdir"
	find "$pkgdir" \( -name .packlist -o -name perllocal.pod \) -delete
}