diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | PKGBUILD | 41 |
3 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d021334ffb39 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = perl-text-visualwidth-pp + pkgdesc = Perl/CPAN Module Text::VisualWidth::PP + pkgver = 0.05 + pkgrel = 1 + url = https://metacpan.org/release/Text-VisualWidth-PP + arch = any + license = GPL + license = PerlArtistic + makedepends = perl-module-build + depends = perl + depends = perl-unicode-eastasianwidth + options = !emptydirs + source = https://cpan.metacpan.org/authors/id/T/TO/TOKUHIROM/Text-VisualWidth-PP-0.05.tar.gz + sha512sums = 94150564048681fc526b4aa0f186abec84b86b0d3a06868a13f4a19ec4baa90f0442f2d2d70a9a60faec3bdd90bcc6e9dbec84dcba2e485d577f16173852fe86 + +pkgname = perl-text-visualwidth-pp + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..73b219ff0038 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +Text-VisualWidth-PP-*.tar.gz +perl-text-visualwidth-pp-*.pkg.tar.xz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..55cafa08347a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Damien Molinier <damien-43\N{COMMERCIAL AT}gmx.fr> + +_distname='Text-VisualWidth-PP' + +pkgname=perl-text-visualwidth-pp +pkgver=0.05 +pkgrel=1 +pkgdesc="Perl/CPAN Module ${_distname//-/::}" +arch=('any') +license=('GPL' 'PerlArtistic') +url="https://metacpan.org/release/${_distname}" +depends=('perl' + 'perl-unicode-eastasianwidth') +makedepends=('perl-module-build') +options=(!emptydirs) +source=("https://cpan.metacpan.org/authors/id/T/TO/TOKUHIROM/${_distname}-${pkgver}.tar.gz") +sha512sums=('94150564048681fc526b4aa0f186abec84b86b0d3a06868a13f4a19ec4baa90f0442f2d2d70a9a60faec3bdd90bcc6e9dbec84dcba2e485d577f16173852fe86') + +build() { + cd "${srcdir}/${_distname}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT='1' PERL_AUTOINSTALL='--skipdeps' MODULEBUILDRC='/dev/null' + perl Build.PL + ./Build +} + +check() { + cd "${srcdir}/${_distname}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT='1' + ./Build test +} + +package() { + cd "${srcdir}/${_distname}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + ./Build install --installdirs vendor --destdir "${pkgdir}" + find "${pkgdir}" \( -name perllocal.pod -or -name .packlist \) -delete +} + +# vim:set ts=2 sw=2 et: |