mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
testing/perl-string-random: adopt aport
This commit is contained in:
parent
b240584998
commit
00a3fa0088
@ -1,21 +1,24 @@
|
||||
# Automatically generated by apkbuild-cpan, template 3
|
||||
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
||||
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
||||
# Maintainer: Celeste <cielesti@protonmail.com>
|
||||
pkgname=perl-string-random
|
||||
_realname=String-Random
|
||||
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||
_pkgreal=String-Random
|
||||
pkgver=0.32
|
||||
pkgrel=1
|
||||
pkgdesc="Perl extension to generate random strings"
|
||||
url="https://metacpan.org/release/String-Random"
|
||||
pkgrel=2
|
||||
pkgdesc="Perl module to generate random strings based on a pattern"
|
||||
url="https://metacpan.org/release/String-Random/"
|
||||
arch="noarch"
|
||||
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
||||
depends="perl"
|
||||
makedepends="perl-module-build"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/String-Random-$pkgver.tar.gz"
|
||||
builddir="$srcdir"/$_realname-$pkgver
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
|
||||
build() {
|
||||
perl Build.PL installdirs=vendor
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
perl Build.PL --installdirs=vendor
|
||||
./Build
|
||||
}
|
||||
|
||||
@ -24,7 +27,7 @@ check() {
|
||||
}
|
||||
|
||||
package() {
|
||||
./Build install destdir="$pkgdir"
|
||||
./Build install --destdir="$pkgdir"
|
||||
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user