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

Add awk #29295

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Add awk #29295

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
17 changes: 17 additions & 0 deletions recipes/awk/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash -euo

set -xe

# If running in Linux, set the `$HOSTCC` manually to
# avoid calling the hardcoded `cc` command in the makefile
if [ "$(uname)" = "Linux" ]; then
make HOSTCC="$CC -g -Wall -pedantic -Wcast-qual"
else
make
fi

if [ ! -d ${PREFIX}/bin ] ; then
mkdir -p ${PREFIX}/bin
fi

mv a.out ${PREFIX}/bin/awk
42 changes: 42 additions & 0 deletions recipes/awk/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{% set name = "awk" %}
{% set version = "20250116" %}

package:
name: {{ name }}
version: {{ version }}

source:
url: https://github.com/onetrueawk/{{ name }}/archive/{{ version }}.tar.gz
sha256: e031b1e1d2b230f276f975bffb923f0ea15f798c839d15a3f26a1a39448e32d7

build:
number: 0
skip: true # [win]

requirements:
build:
- {{ compiler("c") }}
- {{ stdlib("c") }}
- make
- bison
run_constrained:
- gawk ==9999999999

test:
commands:
- awk 'BEGIN {print 1+1}'

about:
home: https://github.com/onetrueawk/awk
license: LicenseRef-Lucent-Technologies
license_file: LICENSE
summary: One true awk
description: |
This is the version of awk described in The AWK Programming Language, Second
Edition, by Al Aho, Brian Kernighan, and Peter Weinberger (Addison-Wesley,
2024, ISBN-13 978-0138269722, ISBN-10 0138269726).
dev_url: https://github.com/onetrueawk/awk

extra:
recipe-maintainers:
- apcamargo