summaryrefslogblamecommitdiff
path: root/system/perl-yaml-syck/APKBUILD
blob: 1c89207a602d9880e4edd44d7087ef2f95cd5d5e (plain) (tree)
1
2
3
4
5
6
7
8
9
                                              
                                                                   

                      


                               
           
        
                                                  
                                            

             
              
                      
                          
                                                                                        

                                    
         
                                                                  
                                                                 



            



                 



                                                                           
                                                                                                                                                                    
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-yaml-syck
_pkgreal=YAML-Syck
_author=TODDR
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=1.34
pkgrel=0
pkgdesc="Fast, lightweight YAML loader and dumper"
url="https://metacpan.org/release/YAML-Syck"
arch="all"
license="MIT"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

check() {
	make test
}

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

sha512sums="18288f54026823e84b2d642d880d7758c5d95ba4b56d3fcf758efe59303ea71a49822d7c000b4c7b0629eccd4dcf3c940bc1c26f2b2ef89e4fdba78a35c04760  YAML-Syck-1.34.tar.gz"