summaryrefslogblamecommitdiff
path: root/user/perl-inline-c/APKBUILD
blob: ed895b5ae07bea9b105af680cc1babf18d8c06d4 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                                   


                               
           
        
                                       


                                                           
                                                                        
                                                 
                          
                                                                                        
         



                                                                 


                 


                                                                           
                                                                                                                                                                   
# Contributor: Dan Theisen <djt@hxx.in>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-inline-c
_pkgreal=Inline-C
_author=TINITA
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.81
pkgrel=0
pkgdesc="C language support for Inline"
url="https://metacpan.org/pod/Inline::C"
arch="noarch"
license="GPL-1.0+ OR Artistic-1.0-Perl"
depends="perl perl-inline perl-pegex perl-parse-recdescent"
checkdepends="perl-test-warn perl-yaml-libyaml perl-file-copy-recursive"
makedepends="perl-dev perl-file-sharedir-install"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

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

sha512sums="c3d0d669c26017b4b63cc101377d067438c31fc5d1e6187d01194f70158049e386683b792716aad58772eae839512ecaefd4b3ac7a2377dd1404a651c24b2277  Inline-C-0.81.tar.gz"