diff options
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5dcb1fc36f42 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = perl-xml-tidy-tiny + pkgdesc = Module that allows very restrictive tidy of XML + pkgver = 0.02 + pkgrel = 1 + url = https://metacpan.org/dist/XML-Tidy-Tiny + arch = any + license = GPL + license = PerlArtistic + depends = perl + source = https://www.cpan.org/modules/by-module/XML/XML-Tidy-Tiny-0.02.tar.gz + sha512sums = 46d4b5a290f57ae8cb8e9a692b7f5e72c81ba33e65e78511de4895729d00aaf980a27b0388a3ca9f11c7e9116e5db9281ecf38235b05b71b4b4778d45f77d617 + +pkgname = perl-xml-tidy-tiny diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..98e20b3ec0f4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Jakob Gahde <j5lx@fmail.co.uk> + +pkgname=perl-xml-tidy-tiny +pkgver=0.02 +pkgrel=1 +pkgdesc="Module that allows very restrictive tidy of XML" +arch=('any') +url="https://metacpan.org/dist/XML-Tidy-Tiny" +license=('GPL' 'PerlArtistic') +depends=('perl') +source=("https://www.cpan.org/modules/by-module/XML/XML-Tidy-Tiny-${pkgver}.tar.gz") +sha512sums=('46d4b5a290f57ae8cb8e9a692b7f5e72c81ba33e65e78511de4895729d00aaf980a27b0388a3ca9f11c7e9116e5db9281ecf38235b05b71b4b4778d45f77d617') + +build() { + cd "${srcdir}/XML-Tidy-Tiny-${pkgver}" + + perl Makefile.PL NO_PACKLIST=true NO_PERLLOCAL=true + make +} + +check() { + cd "${srcdir}/XML-Tidy-Tiny-${pkgver}" + + make test +} + +package() { + cd "${srcdir}/XML-Tidy-Tiny-${pkgver}" + + make install INSTALLDIRS=vendor DESTDIR="${pkgdir}" +} |