Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update piawka #51239

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions recipes/piawka/build.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
#!/bin/bash

# increase verbosity for debugging
set -x

mkdir -p $PREFIX/bin

# Replace `mawk -f` shebangs with "polyglot shebangs"
# as per https://unix.stackexchange.com/a/361796/605705
# not to rely on non-standard `env -S` option
polyglot1='#!/bin/sh'; polyglot2='"exec" "mawk" "-f" "$0" "$@" && 0 {}'
for f in $SRC_DIR/scripts/*; do
t="$PREFIX/bin/$(basename $f)"
head -n 1 $f | grep awk && ( echo "$polyglot1" > $t && echo "$polyglot2" >> $t )
cat $f >> $t
done

cp $SRC_DIR/scripts/* $PREFIX/bin/
taprs marked this conversation as resolved.
Show resolved Hide resolved
chmod +x $PREFIX/bin/*
taprs marked this conversation as resolved.
Show resolved Hide resolved

9 changes: 4 additions & 5 deletions recipes/piawka/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{% set name = "piawka" %}
{% set version = "0.7.10" %}
{% set version = "0.8.1" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/novikovalab/{{ name }}/archive/refs/tags/{{ version }}.tar.gz
sha256: 511859b69525db7dc988ae55556e6fd31e2709f0e3a4de404f87abfadb97a273
sha256: c280b0669724410be64e9db6c61680d38ba89a263eb2d75efef1beb79d43a8c2

build:
noarch: generic
Expand All @@ -17,14 +17,13 @@ build:

requirements:
run:
- mawk =1.3.4
- parallel
- conda-forge::gawk >=5.0.0
- bash
- tabix

test:
commands:
- piawka_par.sh -h
- piawka --help

about:
home: https://github.com/novikovalab/piawka
Expand Down