summaryrefslogblamecommitdiff
path: root/system/perl-sgmls/APKBUILD
blob: 111830823ff7b813f9bd3027f71caefcecfda8cb (plain) (tree)





































                                                                                                                                                                 
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=perl-sgmls
pkgver=1.1
pkgrel=0
pkgdesc="Perl module for processing output from sgmls and nsgmls"
url="https://metacpan.org/pod/release/RAAB/SGMLSpm-1.1/lib/SGMLS.pm"
arch="noarch"
license="GPL-2.0-only"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RA/RAAB/SGMLSpm-$pkgver.tar.gz"
sha512sums="0ca3f0f3265f20661ae88ad4764fbf82f226382f79f62c01653265cc7372524dfdf30ce5abffc0344624f5e6138e483952471f8c18d59794b40035af0b7526bc  SGMLSpm-1.1.tar.gz"
builddir="$srcdir/SGMLSpm-$pkgver"

prepare() {
	chmod -R ug+w "$builddir"
	cd "$builddir"
	default_prepare
}

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

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