summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5fcbbad9c004458290c88597106859ececd43bfb (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
# Contributor: BinkyTheClown <binky_at_archlinux_dot_us>
# PKGBUILD generated by pacpan -mostly-

pkgname=perl-html-simpleparse
_realname=HTML-SimpleParse
pkgver=0.12
pkgrel=4
pkgdesc="Perl/CPAN Module HTML::SimpleParse - a bare-bones HTML parser."
arch=(i686 x86_64)
url="http://search.cpan.org/dist/${_realname}/"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0')
options=(!emptydirs)
provides=('html-simpleparse')
source=("http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/${_realname}-${pkgver}.tar.gz")
sha256sums=('c103a19cf99801489ce23e4da86a5f9df79f032f1f1c71b8130d0d3ff96e6304')

build() {
	cd ${srcdir}/${_realname}-${pkgver}

	# install module in vendor directories.
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

package() {
	cd ${srcdir}/${_realname}-${pkgver}

	make install DESTDIR=${pkgdir}

	# remove perllocal.pod and .packlist
	find ${pkgdir} -name perllocal.pod -delete
	find ${pkgdir} -name .packlist -delete
}