Skip to content
Merged
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
31 changes: 31 additions & 0 deletions projects/gnu.org/sed/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
distributable:
url: https://ftp.gnu.org/gnu/sed/sed-{{version.raw}}.tar.xz
strip-components: 1

# if there’s a github then we can parse the versions
versions:
- 4.9

build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |
./configure $ARGS
make --jobs {{ hw.concurrency }} install
# it’s extremely common for packages to require the above
env:
# add any environment variables here
ARGS:
- --prefix="{{prefix}}"
- --disable-debug

provides:
- bin/sed

test:
fixture:
Hello world!
script: |
sed -i 's/world/World/g' $FIXTURE
test "$(cat $FIXTURE)" = 'Hello World!'