1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00

testing/perl-shell-guess: new aport

This commit is contained in:
Wen Heping 2025-06-07 12:09:24 +00:00
parent 9c65c2455c
commit f689a1b128

View file

@ -0,0 +1,37 @@
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
pkgname=perl-shell-guess
pkgver=0.10
pkgrel=0
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Shell-Guess
pkgdesc="Make an educated guess about the shell in use"
url="https://metacpan.org/release/Shell-Guess/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Shell-Guess-$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 \
NO_PACKLIST=1 \
NO_PERLLOCAL=1
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="
060caba58126e4eb7f1f87ce62760d580a2d8b395ddba0bbdce6d96a73b2eab170ab4148f2560b47cda60fa57ff34c6ac5a80dfb8c56cb040ea4c0469fd5489b Shell-Guess-0.10.tar.gz
"