# 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.3294
pkgrel=1
pkgdesc="Perl module for Glib"
url="https://metacpan.org/release/Glib"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev glib-dev perl-extutils-depends perl-extutils-pkgconfig"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/X/XA/XAOC/Glib-$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="
f02560fe6de2d98f2b391ed37a60d231cbfdde1cddfcbf614883c61d666dda1264c215220748985cc4cbbe06dbd1b5df35d21c2ce259b46d468a16bffdfd2dae  Glib-1.3294.tar.gz
"
