mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 16:46:46 +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
54 lines
1.5 KiB
Text
54 lines
1.5 KiB
Text
# Automatically generated by apkbuild-cpan, template 4
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=perl-minion
|
|
pkgver=10.31
|
|
pkgrel=0
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=Minion
|
|
pkgdesc="Job queue for Mojolicious"
|
|
url="https://metacpan.org/release/Minion/"
|
|
arch="noarch"
|
|
license="Artistic-2.0"
|
|
depends="perl perl-mojolicious perl-yaml-libyaml"
|
|
subpackages="$pkgname-doc $pkgname-backend-pg"
|
|
source="https://cpan.metacpan.org/authors/id/S/SR/SRI/Minion-$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
|
|
}
|
|
|
|
doc() {
|
|
local file; find "$pkgdir" -name "*.pod" | while read -r file; do
|
|
amove "${file#"$pkgdir"}"
|
|
done
|
|
default_doc
|
|
}
|
|
|
|
pg() {
|
|
pkgdesc="PostgreSQL backend for Minion job queue"
|
|
depends="$pkgname=$pkgver-r$pkgrel perl-mojo-pg"
|
|
install_if="$pkgname=$pkgver-r$pkgrel perl-mojo-pg"
|
|
|
|
amove usr/share/perl5/vendor_perl/Minion/Backend/Pg.pm \
|
|
usr/share/perl5/vendor_perl/Minion/Backend/resources/migrations/pg.sql
|
|
}
|
|
|
|
sha512sums="
|
|
8849665897a6851f65c25bc63ce6518f6e5c3eb37bcab46ad57b3e7e5ff0d98e2462d10648c6fa54152247491e5ff6abec235dd9e2ef49ce18279e7e90e0420b Minion-10.31.tar.gz
|
|
"
|