summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules/perl-io-html/PKGBUILD
blob: 7a86226b920e7d786364530bcd412e6160bba8c5 (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
# $Id$
# Maintainer: Felix Yan <felixonmars@gmail.com>

pkgname=perl-io-html
pkgver=1.001
pkgrel=3
pkgdesc="Open an HTML file with automatic charset detection"
arch=('any')
url='http://search.cpan.org/dist/IO-HTML'
depends=('perl')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/C/CJ/CJM/IO-HTML-$pkgver.tar.gz)
sha1sums=('210b60f438502744c9c31a82329b19a6f9aecf63')

build() {
  export PERL_MM_USE_DEFAULT=1 PERL_MM_OPT="INSTALLDIRS=vendor" \
    PERL_MB_OPT="--installdirs vendor"
  cd IO-HTML-$pkgver
  perl Makefile.PL
  make 
}

check() {
  cd IO-HTML-$pkgver
  make test
}

package() {
  cd IO-HTML-$pkgver
  make DESTDIR="$pkgdir" install
}