diff --git a/recipes/perl-minion-backend-sqlite/build.sh b/recipes/perl-minion-backend-sqlite/build.sh new file mode 100644 index 0000000000000..cd6fda88871b1 --- /dev/null +++ b/recipes/perl-minion-backend-sqlite/build.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +set -o errexit -o pipefail + + +sed -i 's/v5.0.7/5.0.7/g' $SRC_DIR/META.json +sed -i 's/v5.0.7/5.0.7/g' $SRC_DIR/Build.PL +sed -i 's/v5.0.7/5.0.7/g' $SRC_DIR/lib/Minion/Backend/SQLite.pm + + +perl Build.PL INSTALLDIRS=site \ + INC="-I${PREFIX}/include" LIBS="-L${PREFIX}/lib -lz" +sed -i 's/v5.0.7/5.0.7/g' $SRC_DIR/Build +perl ./Build +perl ./Build test +# Make sure this goes in site +perl ./Build install --installdirs site diff --git a/recipes/perl-minion-backend-sqlite/meta.yaml b/recipes/perl-minion-backend-sqlite/meta.yaml new file mode 100644 index 0000000000000..e5085afe4fcc4 --- /dev/null +++ b/recipes/perl-minion-backend-sqlite/meta.yaml @@ -0,0 +1,51 @@ +{% set name = "perl-minion-backend-sqlite" %} +{% set version = "5.0.7" %} +{% set sha256 = "d7246ff3e2b7d5ee02c270711a4bc735e4e99f3a59f0dcd5741d34429d180c44" %} + +package: + name: {{ name }} + version: {{ version }} + +source: + url: https://github.com/Grinnz/Minion-Backend-SQLite/archive/refs/tags/v{{ version }}.tar.gz + sha256: {{ sha256 }} + +build: + number: 0 + run_exports: + weak: + - {{ name }} ={{ version }} + noarch: generic + +requirements: + host: + - perl =>5.32 + - perl-module-build-tiny + - perl-mojo-sqlite + - perl-minion + - perl-mojolicious + - perl-dbi + - perl-dbd-sqlite + - make + + run: + - perl =>5.32 + - perl-dbi + - perl-dbd-sqlite + - perl-mojolicious + - perl-minion + - perl-mojo-sqlite + +test: + imports: + - Minion::Backend::SQLite + + +about: + home: https://github.com/Grinnz/Minion-Backend-SQLite + license: Artistic-2.0 + summary: 'SQLite backend for Minion job queue' + +extra: + recipe-maintainers: + - khaled196