2023-02-23 01:02:46 +03:00
|
|
|
distributable:
|
|
|
|
url: https://gitlab.com/OldManProgrammer/unix-tree/-/archive/{{version}}/unix-tree-{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2023-05-01 20:14:59 +03:00
|
|
|
gitlab: OldManProgrammer/unix-tree/tags
|
2023-02-23 01:02:46 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
linux:
|
2023-10-02 03:41:57 +03:00
|
|
|
gnu.org/gcc: '*'
|
2023-02-23 01:02:46 +03:00
|
|
|
script: |
|
|
|
|
make
|
|
|
|
make $ARGS install
|
|
|
|
|
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- PREFIX={{prefix}}
|
|
|
|
#FIXME seems to work ok, but someone needs to take a second look at these LDFLAGS/CFLAGS, I don't really know what I'm doing here
|
|
|
|
LDFLAGS:
|
|
|
|
- -s
|
|
|
|
linux:
|
|
|
|
CC: gcc
|
|
|
|
CFLAGS: -O3
|
|
|
|
darwin:
|
|
|
|
CC: cc
|
|
|
|
CFLAGS: -O2 -Wall -fomit-frame-pointer -no-cpp-precomp
|
|
|
|
|
|
|
|
test:
|
2023-10-02 03:41:57 +03:00
|
|
|
script:
|
2023-02-23 01:02:46 +03:00
|
|
|
# prepare for tests
|
2023-10-02 03:41:57 +03:00
|
|
|
- mkdir -p foo/bar
|
|
|
|
- mkdir -p foo/buzz
|
|
|
|
- touch foo/buzz/lupus.txt
|
2023-02-23 01:02:46 +03:00
|
|
|
# run tests
|
2023-10-02 03:41:57 +03:00
|
|
|
- tree --version | grep 'tree v{{version}}'
|
|
|
|
- out="$(tree . )"
|
|
|
|
- echo $out | grep lupus.txt # test for files found
|
|
|
|
- echo $out | grep bar # test for level 2 dirs found
|
|
|
|
- echo $out | grep buzz # ^
|
|
|
|
- echo $out | grep '4 directories, 2 files'
|
|
|
|
- tree .
|
|
|
|
|
2023-02-23 01:02:46 +03:00
|
|
|
provides:
|
|
|
|
- bin/tree
|