aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-glib/APKBUILD
blob: 9a47f9c2500160917e2c20e3ed17a5cc8e1c9c30 (plain) (tree)
1
2
3
4
5
6
7
8
                                                      

                                                           

                 
            
        
                              


                                       

                                                               
                      
                                                
                          
                                                                             




                                     




                                                                                     






                         
 





                                                                           
 


                                                                                                                                                                
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-glib
_pkgreal=Glib
pkgver=1.324
pkgrel=0
pkgdesc="Perl module for Glib"
url="http://search.cpan.org/dist/Glib/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="perl-extutils-depends perl-extutils-pkgconfig"
depends="$cpandepends"
makedepends="perl-dev glib-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/X/XA/XAOC/Glib-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	if [ -e Build.PL ]; then
		perl Build.PL installdirs=vendor || return 1
	else
		PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	fi
}

build() {
	cd "$_builddir"
	make && make test
}


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


md5sums="ae78e9710c8c2e0b2c1bbb4f1156d535  Glib-1.324.tar.gz"
sha256sums="701a214b5b9f17c1b783d807efa1944bfd612939a467b03bc02bd4cf90ad9b4e  Glib-1.324.tar.gz"
sha512sums="c5bc22416f47a8fc0a7410e0bdb637f82e408ce056a2b6be8f04a8a7055af704ab3e0868566c048cb786306986f85f6b940a15f85cb77654620f6f814c2731dd  Glib-1.324.tar.gz"