mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 14:26:38 +02:00
leaving the Maintainer comment there for better visual cues, syntax highlighting, and easy conversion to a Contributor comment since Contributor comments are not being removed, just treat my Maintainer comments like Contributor ones, as a normal comment
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
# Automatically generated by apkbuild-cpan, template 3
|
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=perl-string-random
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=String-Random
|
|
pkgver=0.32
|
|
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/$_pkgreal-$pkgver"
|
|
|
|
build() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
perl Build.PL --installdirs=vendor
|
|
./Build
|
|
}
|
|
|
|
check() {
|
|
./Build test
|
|
}
|
|
|
|
package() {
|
|
./Build install --destdir="$pkgdir"
|
|
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
|
}
|
|
|
|
sha512sums="
|
|
1dd0e7e45e03e155b7a0d8394fb3a04324f4827fe9431e9697d07c3a0f3941981e0b3de1e9f843a43936e5423146a3e6d4da075da04297525093ceffc3b1e659 String-Random-0.32.tar.gz
|
|
"
|