#Packager: George Vlahavas # _cpanname is the module name as provided in CPAN. # For example: Archive-Zip # The corresponding package will be named: perl-Archive-Zip _cpanname=Unicode-LineBreak pkgname=perl-${_cpanname} pkgver=2019.001 pkgrel=2gv source=("https://cpan.metacpan.org/authors/id/N/NE/NEZUMI/Unicode-LineBreak-$pkgver.tar.gz") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=https://metacpan.org/pod/distribution/Unicode-LineBreak/lib/Unicode/LineBreak.pod slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "perl-Unicode-LineBreak (UAX #14 Unicode Line Breaking Algorithm)" "Unicode::LineBreak performs Line Breaking Algorithm described in" "Unicode Standard Annex #14 [UAX #14]. East_Asian_Width informative" "property defined by Annex #11 [UAX #11] will be concerned to determine" "breaking positions." ) build() { cd $startdir/src/${_cpanname}-$pkgver perl Makefile.PL || exit 1 make OPTIMIZE="$CFLAGS" || exit 1 make install INSTALLDIRS=vendor DESTDIR=$startdir/pkg || exit 1 # Remove perllocal.pod and .packlist if present in the package ( for i in perllocal.pod .packlist; do find $startdir/pkg -name "$i" -exec rm -rf {} \; done ) || exit 1 }