aboutsummaryrefslogblamecommitdiffstats
path: root/testing/perl-term-animation/APKBUILD
blob: babcc83ef5c360a3eb8df48651a1e6c735322804 (plain) (tree)

































                                                                                                                                                                        
# Automatically generated by apkbuild-cpan, template 2
# Contributor: alpterry <alpterry@protonmail.com>
# Maintainer: alpterry <alpterry@protonmail.com>
pkgname=perl-term-animation
_pkgreal=Term-Animation
pkgver=2.6
pkgrel=0
pkgdesc="ASCII sprite animation framework"
url="https://metacpan.org/release/Term-Animation/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl-curses"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/K/KB/KBAUCOM/Term-Animation-$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="5d2c3e18e70d19fead2a2ad2d09bfb03f3f3d569f472ea43449799c089254a14ee9c4e695d5c93bda2a30d6e7538566c16a522ceac3c747a5cf0e522f21f1e18  Term-Animation-2.6.tar.gz"