aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-ipc-signal/APKBUILD
blob: 325f022e0300afe4edbe88076699efddc8e9eab6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                      
                                                          


                       
        



                                                                     
                      

                                                                                   
                                    

           

                       
                      




                                                                 
                      
                                                               





                      


           
                      
                                      




                                                                                      
                                                                                                                                                                     
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=perl-ipc-signal
_pkgreal=IPC-Signal
pkgver=1.00
pkgrel=2
pkgdesc="Perl module provides utility functions dealing with signals"
url="http://search.cpan.org/dist/IPC-Signal/"
arch="noarch"
license="GPL PerlArtistic"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RO/ROSCH/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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
}

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

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
	mv "$pkgdir"/usr/share/perl5/vendor_perl/* "$pkgdir"/usr/lib/perl5/vendor_perl
	rm -fr "$pkgdir"/usr/share/perl5
}

sha512sums="31ee15a55539546532cb8deb9bd379e0014b526fcd79ac20dc53591391b0fb50b182f6f653837bc230debb1779418316b7ac8e389224ad41a0aa3a380c76f229  IPC-Signal-1.00.tar.gz"