APKBUILD 1.04 KB
Newer Older
1
# Automatically generated by apkbuild-cpan, template 1
2 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
4 5
pkgname=perl-glib
_pkgreal=Glib
6
pkgver=1.326
7
pkgrel=0
8
pkgdesc="Perl module for Glib"
9 10 11
url="http://search.cpan.org/dist/Glib/"
arch="all"
license="GPL PerlArtistic"
12 13
cpandepends=""
cpanmakedepends="perl-extutils-depends perl-extutils-pkgconfig"
14
depends="$cpandepends"
15
makedepends="perl-dev glib-dev $cpanmakedepends"
16
subpackages="$pkgname-doc"
17
source="http://search.cpan.org/CPAN/authors/id/X/XA/XAOC/Glib-$pkgver.tar.gz"
18

19
builddir="$srcdir/$_pkgreal-$pkgver"
20 21

build() {
22
	cd "$builddir"
23
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
24
	make
25 26
}

27 28 29 30
check() {
	cd "$builddir"
	make test
}
31

32
package() {
33
	cd "$builddir"
34
	make DESTDIR="$pkgdir" install
35 36 37
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

38

39
sha512sums="28f4f6d544389b7bedd5ccfce17659759e0996cdfea4f73e140de336b6395f5688bbb4707e3cf3e29b39f840eb8db9fc52dcbdaeb51154ae8fded2975ce9308d  Glib-1.326.tar.gz"