aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-mojolicious-plugin-i18n/APKBUILD
blob: c1ae65a096354541a3d21a648273107cea073aa8 (plain) (blame)
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
32
33
34
35
36
37
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=perl-mojolicious-plugin-i18n
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Mojolicious-Plugin-I18N
pkgver=1.6
pkgrel=0
pkgdesc="Internationalization Plugin for Mojolicious"
url="https://metacpan.org/release/Mojolicious-Plugin-I18N/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-mojolicious"
makedepends="perl-dev perl-module-build"

subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SH/SHARIFULN/Mojolicious-Plugin-I18N-$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="
9915d106699eec534d440add20e6138876ac6eb2408217a19a027706950fd18d0d46c5daef31e3446be5d748098b10c81a2c4b3ababc3c5bd5964e5177c1c831  Mojolicious-Plugin-I18N-1.6.tar.gz
"