aboutsummaryrefslogblamecommitdiffstats
path: root/testing/perl-gtk3/APKBUILD
blob: ba73332b726d16590f4d4213b00abd053a5b7672 (plain) (tree)
1
2
3
4
5
6
7





                                                              
            


























                                                                                               
                                                                                                                                                                
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=perl-gtk3
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Gtk3
pkgver=0.038
pkgrel=0
pkgdesc="Perl interface to the 3.x series of the gtk+ toolkit"
url="https://metacpan.org/release/Gtk3/"
arch="noarch"
license="GPL-2.0-or-later"
depends="perl perl-glib-object-introspection perl-cairo-gobject"
makedepends="perl-dev perl-cairo perl-glib-object-introspection perl-cairo-gobject gtk+3.0-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/X/XA/XAOC/Gtk3-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="2289184a25deec342b9519028cc5ebb3a66137d7891366485e4b6a1ef52a4a28b5ba8083a317a56664d4ea6eb1bc0619477d1ca169baf79b868467fba27f82bf  Gtk3-0.038.tar.gz"