1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 18:25:41 +03:00
aports/community/perl-curses/APKBUILD
2023-03-10 11:57:24 +00:00

41 lines
1.1 KiB
Text

# Automatically generated by apkbuild-cpan, template 2
# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=perl-curses
_pkgreal=Curses
pkgver=1.44
pkgrel=0
pkgdesc="terminal screen handling and optimization"
url="https://metacpan.org/release/Curses/"
arch="all"
license="GPL-1.0-only"
makedepends="perl-dev ncurses-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/G/GI/GIRAFFED/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
}
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
sha512sums="
2c7f9ad9971c1afe6c1bee59581466f848ab1128e546effccd2118cb7bce1962ec7f6a8da60be3cdd1405f6b0a44f7c29c5f7900cbc436940592b1075fbfb6f7 Curses-1.44.tar.gz
"