aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-string-random/APKBUILD
blob: 67d99fa5b87f8c2b1b758501dc5460b3632714c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=perl-string-random
_realname=String-Random
pkgver=0.30
pkgrel=0
pkgdesc="Perl extension to generate random strings"
url="https://metacpan.org/release/String-Random"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev 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

build() {
	perl Build.PL installdirs=vendor
	./Build
}

check() {
	./Build test
}

package() {
	./Build install destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="1c520d124f2937c86970aa29c4189ba420fb936509bf067de2bbf7fac232b94ef7d7307f3c96b3eea3ecd2a11e8da92fd0d700288c431d87c3869127a1e17b7e  String-Random-0.30.tar.gz"