summaryrefslogtreecommitdiff
path: root/system/perl-sgmls/APKBUILD
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-10-07 15:08:48 -0500
committerKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-10-07 15:08:48 -0500
commitffcfe16a36c4d843d37a35a3fe2bda3f2124efc5 (patch)
treeaa06877a0c548a9513c973e8edc0b49da00af723 /system/perl-sgmls/APKBUILD
parente1821c5d8ffaf87b7ce31edbbc845460e0855033 (diff)
downloadpackages-ffcfe16a36c4d843d37a35a3fe2bda3f2124efc5.tar.gz
packages-ffcfe16a36c4d843d37a35a3fe2bda3f2124efc5.tar.bz2
packages-ffcfe16a36c4d843d37a35a3fe2bda3f2124efc5.tar.xz
packages-ffcfe16a36c4d843d37a35a3fe2bda3f2124efc5.zip
system/perl-sgmls: pull in for po4a
Diffstat (limited to 'system/perl-sgmls/APKBUILD')
-rw-r--r--system/perl-sgmls/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/system/perl-sgmls/APKBUILD b/system/perl-sgmls/APKBUILD
new file mode 100644
index 000000000..111830823
--- /dev/null
+++ b/system/perl-sgmls/APKBUILD
@@ -0,0 +1,38 @@
+# 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
+}
+