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




                                                           
               
        
                                                 
                                                     






                                       
                                                                                  

                                    



                      
 

                       







                                                                 
            



                      
                                      


                                                                           
                                                                                                                                                                                
# 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=2019.001
pkgrel=5
pkgdesc="UAX #14 Unicode Line Breaking Algorithm"
url="https://metacpan.org/release/Unicode-LineBreak/"
arch="all"
license="GPL PerlArtistic"
cpandepends="perl-mime-charset"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/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="2d285f928db2ed32aefa741629ce9f9bee82e69c247eaa2c9145fdb4e9bae4441bf822e108cbffc3955369539474c3299f0a8f69026a5f9686aa8458a1d87f27  Unicode-LineBreak-2019.001.tar.gz"