aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-glib/APKBUILD
blob: b38ff3ad7d5fdfa8ed168027e4dc7f80cb16c32f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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.323
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="66648e72313e8b258622a2959120b2d8  Glib-1.323.tar.gz"
sha256sums="305351e86c9153e0a8465e5ba48b3362ef6815a1ebd8074d1eaa4368b0295ab4  Glib-1.323.tar.gz"
sha512sums="81853bac4a6d10f4d601bc93ddfa1eeb8ae9f01643714a167d37ee8189cd02b2e4c23fa3ea22082c3dfa5ab0951d79cd7aa7c8fe42a59dd0db15c1e16af0c051  Glib-1.323.tar.gz"