summaryrefslogblamecommitdiff
path: root/system/perl-error/APKBUILD
blob: 935dd46c840b357bfab6d80073245f20b90bb6fc (plain) (tree)
1
2
3
4
5
6
7
                                                                    

                  
              

                                                               
                                        































                                                                                      
                                                                                                                                                                   
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> 
pkgname=perl-error
_realname=Error
pkgver=0.17027
pkgrel=0
pkgdesc="Perl module error/exception handling in an OO-ish way"
url="https://metacpan.org/release/Error"
arch="noarch"
license="GPL-2.0-only AND Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
install=
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/$_realname-$pkgver.tar.gz"
builddir="$srcdir"/$_realname-$pkgver

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
}

sha512sums="f7a649254bd2a5228a0baaa7bb286872dcbcf373134446176ff63a5ec0159e7472e0ea930aaff78f7f7961f797ae0a8e5c8725bdc06d2bab177ce469a4ede4b9  Error-0.17027.tar.gz"