aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-gtk2/APKBUILD
blob: ead78494de35575d91e7c291e8df9e6018b69920 (plain) (blame)
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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-gtk2
_pkgreal=Gtk2
pkgver=1.2492
pkgrel=0
pkgdesc="Perl module for Gtk2"
url="http://search.cpan.org/dist/Gtk2/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="perl-extutils-depends perl-extutils-pkgconfig perl-glib perl-pango"
depends="$cpandepends"
makedepends="perl-dev gtk+2.0-dev glib-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/X/XA/XAOC/Gtk2-$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="36ac652001392f67bf6b1539b67d5edc  Gtk2-1.2492.tar.gz"
sha256sums="0605a9c52be035b83f37e4c37b18abed59aaa0ea9482ede256b3b488f14267a6  Gtk2-1.2492.tar.gz"
sha512sums="7090d0ca5d85b4cfa2f8b9351059c0e6446499e3d3f61286ce84659544a9af49c99ab220c2b7e50275ad0380ed724da7545f4ad49c22bff4974a25a5dff74a2f  Gtk2-1.2492.tar.gz"