mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
+flywaydb.org (#5598)
* new file: projects/flywaydb.org/package.yml * Update package.yml * add brewkit ticket --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
4f69ad4ed4
commit
fd69cc9c70
1 changed files with 33 additions and 0 deletions
33
projects/flywaydb.org/package.yml
Normal file
33
projects/flywaydb.org/package.yml
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
distributable: ~
|
||||||
|
# FIXME: AlreadyExists: File exists (os error 17): mkdir '~/pantry/srcs/flywaydb.org-10.10.0'
|
||||||
|
# https://github.com/pkgxdev/brewkit/issues/321
|
||||||
|
|
||||||
|
versions:
|
||||||
|
url: https://search.maven.org/remotecontent?filepath=org/flywaydb/flyway-commandline/maven-metadata.xml
|
||||||
|
match: /<version>\d+\.\d+\.\d+<\/version>/
|
||||||
|
strip:
|
||||||
|
- /^<version>/
|
||||||
|
- /<\/version>$/
|
||||||
|
|
||||||
|
warnings:
|
||||||
|
- vendored
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
openjdk.org: ^20
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
curl.se: '*'
|
||||||
|
script:
|
||||||
|
- curl -L 'https://search.maven.org/remotecontent?filepath=org/flywaydb/flyway-commandline/{{version.raw}}/flyway-commandline-{{version.raw}}.tar.gz' | tar xz
|
||||||
|
- mkdir -p {{prefix}}/libexec
|
||||||
|
- cp -r ./flyway-{{version}}/* {{prefix}}/libexec/
|
||||||
|
- run: ln -s ../libexec/flyway flyway
|
||||||
|
working-directory: ${{prefix}}/bin
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/flyway
|
||||||
|
|
||||||
|
test:
|
||||||
|
- flyway -v | grep {{version.raw}}
|
||||||
|
- flyway -url=jdbc:h2:mem:flywaydb validate | grep 'Successfully validated'
|
Loading…
Reference in a new issue