Skip to content

Commit

Permalink
update piawka recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
taprs committed Oct 8, 2024
1 parent 2c62701 commit 8d08b8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
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/
chmod +x $PREFIX/bin/*

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

0 comments on commit 8d08b8d

Please sign in to comment.