aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-unicode-linebreak/APKBUILD
blob: 5d63a0beae84278c2b5384a465219a024892f0fe (plain) (tree)
1
2
3
4
5
6
7




                                                           

               











                                                                                    



                      
 

                       







                                                                 
            



                      
                                      


                                                                           
                                                                                                                                                                                
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-unicode-linebreak
_pkgreal=Unicode-LineBreak
pkgver=2018.003
pkgrel=0
pkgdesc="UAX #14 Unicode Line Breaking Algorithm"
url="http://search.cpan.org/dist/Unicode-LineBreak/"
arch="all"
license="GPL PerlArtistic"
cpandepends="perl-mime-charset"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/N/NE/NEZUMI/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

prepare() {
	default_prepare
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make
}

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

sha512sums="37fa931978e1f88667b13ef25eb3b2414a6b055f03fec5925b3605e06026f06af332179e07f35d58f61924f43f305a5bc5ef1d76a61e1d56568abf60c9bf8fc7  Unicode-LineBreak-2018.003.tar.gz"