mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
+gnu.org/ed (#4945)
* new file: projects/gnu.org/ed/package.yml * distributable: ~ * +lzip * add .lz comment --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
7b1d0a97b0
commit
867ff1c178
36
projects/gnu.org/ed/package.yml
Normal file
36
projects/gnu.org/ed/package.yml
Normal file
|
@ -0,0 +1,36 @@
|
|||
# FIXME: get .lz support
|
||||
# https://github.com/pkgxdev/brewkit/issues/283
|
||||
distributable: ~
|
||||
|
||||
versions:
|
||||
url: https://ftp.gnu.org/gnu/ed/
|
||||
match: /ed-\d+\.\d+\.\d+\.tar\.lz/
|
||||
strip:
|
||||
- /^ed-/
|
||||
- /\.tar\.lz$/
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
curl.se: '*'
|
||||
nongnu.org/lzip: '*'
|
||||
script:
|
||||
- curl -L "https://ftp.gnu.org/gnu/ed/ed-{{version.raw}}.tar.lz" | lzip -d | tar -x --strip-components=1
|
||||
- ./configure --prefix={{prefix}}
|
||||
- make
|
||||
- make install
|
||||
|
||||
provides:
|
||||
- bin/ed
|
||||
|
||||
test:
|
||||
- echo "Hello world\n" > test
|
||||
- run: |
|
||||
ed test <<EOF
|
||||
i
|
||||
Additional line
|
||||
.
|
||||
w
|
||||
q
|
||||
EOF
|
||||
- cat test | grep "Additional line"
|
||||
- ed --version | grep {{version}}
|
Loading…
Reference in a new issue