mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-18 09:46:43 +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
53 lines
1.5 KiB
Text
53 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-backend-redis
|
|
pkgver=0.003
|
|
pkgrel=0
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=Minion-Backend-Redis
|
|
pkgdesc="Redis backend for Minion job queue"
|
|
url="https://metacpan.org/release/Minion-Backend-Redis/"
|
|
arch="noarch"
|
|
license="Artistic-2.0"
|
|
depends="perl perl-minion perl-mojo-redis perl-sort-versions"
|
|
makedepends="perl-module-build-tiny"
|
|
checkdepends="redis"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/D/DF/DFUG/Minion-Backend-Redis-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
build() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
perl Build.PL \
|
|
--installdirs=vendor \
|
|
--create_packlist=0
|
|
./Build
|
|
}
|
|
|
|
check() {
|
|
redis-server \
|
|
--dir "$builddir" \
|
|
--loglevel warning \
|
|
--unixsocket "$builddir"/redis.sock &
|
|
local _redispid=$!
|
|
|
|
# make sure socket is available before we start running tests
|
|
local _n=100 # wait up to 10 sec
|
|
while ! [ -e "$builddir"/redis.sock ] && [ $_n -gt 0 ]; do
|
|
sleep 0.1s
|
|
# shellcheck disable=SC3039
|
|
let _n="$_n - 1"
|
|
done
|
|
|
|
./Build test || (kill $_redispid && false)
|
|
kill $_redispid
|
|
}
|
|
|
|
package() {
|
|
./Build install --destdir="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
8dd7535559c0d9c3a36553719d51d01e58db717a92ff7e4458d2188581dc298186ad18ee7e882e2df97a79d7eabaa056417e15c21f7662a17727973cfa1c41c2 Minion-Backend-Redis-0.003.tar.gz
|
|
"
|