2022-08-02 04:08:18 +03:00
|
|
|
distributable:
|
|
|
|
url: https://sourceware.org/pub/bzip2/bzip2-{{ version }}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: libarchive/bzip2/tags
|
|
|
|
strip: /^bzip2-/
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/bunzip2
|
|
|
|
- bin/bzcat
|
|
|
|
- bin/bzcmp
|
|
|
|
- bin/bzdiff
|
|
|
|
- bin/bzegrep
|
|
|
|
- bin/bzfgrep
|
|
|
|
- bin/bzgrep
|
|
|
|
- bin/bzip2
|
|
|
|
- bin/bzip2recover
|
|
|
|
- bin/bzless
|
|
|
|
- bin/bzmore
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
tea.xyz/gx/make: '*'
|
|
|
|
tea.xyz/gx/cc: c99
|
|
|
|
script: |
|
|
|
|
make \
|
|
|
|
--environment-overrides \
|
|
|
|
--jobs {{ hw.concurrency }} \
|
|
|
|
install
|
2022-08-17 15:22:22 +03:00
|
|
|
|
2022-11-12 02:47:42 +03:00
|
|
|
case {{ hw.platform }} in
|
|
|
|
linux)
|
2022-08-17 15:22:22 +03:00
|
|
|
make \
|
|
|
|
--file Makefile-libbz2_so \
|
|
|
|
--environment-overrides \
|
|
|
|
--jobs {{ hw.concurrency }}
|
|
|
|
|
|
|
|
mv libbz2.*.1.* {{ prefix }}/lib
|
|
|
|
cd {{ prefix }}/lib
|
|
|
|
ln -s libbz2.so.{{ version }} libbz2.so
|
|
|
|
ln -s libbz2.so.{{ version }} libbz2.so.{{ version.major }}
|
2022-11-12 02:47:42 +03:00
|
|
|
;;
|
|
|
|
darwin)
|
|
|
|
make \
|
|
|
|
--file props/Makefile-libbz2_dylib \
|
|
|
|
--environment-overrides \
|
|
|
|
--jobs {{ hw.concurrency }} \
|
|
|
|
|
|
|
|
cd {{ prefix }}/lib
|
|
|
|
ln -s libbz2.{{ version }}.dylib libbz2.{{ version.major }}.dylib
|
|
|
|
;;
|
|
|
|
esac
|
2022-08-17 15:22:22 +03:00
|
|
|
|
2022-08-02 04:08:18 +03:00
|
|
|
env:
|
2022-08-17 15:22:22 +03:00
|
|
|
CFLAGS: -fPIC # so deps link without relocation issues on linux/aarch64
|
2022-08-02 04:08:18 +03:00
|
|
|
PREFIX: ${{ prefix }}
|
2022-11-12 02:47:42 +03:00
|
|
|
darwin:
|
|
|
|
PKG_VERSION: ${{ version }}
|
2022-08-02 04:08:18 +03:00
|
|
|
|
|
|
|
test:
|
|
|
|
script: |
|
|
|
|
OUT=$(echo "$INPUT" | bzip2 | bunzip2)
|
|
|
|
test "$OUT" = "$INPUT"
|
|
|
|
env:
|
|
|
|
INPUT: tea.xyz
|