pantry/projects/gnu.org/libtool/package.yml

39 lines
754 B
YAML
Raw Normal View History

2022-09-07 17:33:57 +03:00
distributable:
url: http://ftp.gnu.org/gnu/libtool/libtool-{{ version }}.tar.xz
strip-components: 1
#FIXME: need versions
versions:
- 2.4.7
provides:
- bin/libtool
- bin/libtoolize
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
gnu.org/autoconf: ^2.65.0
gnu.org/m4: 1
script: |-
./configure --prefix={{ prefix }}
make --jobs {{ hw.concurrency }} install
2022-11-11 14:51:41 +03:00
cd {{prefix}}/bin
2022-10-21 04:57:26 +03:00
sed -i.bak \
-e 's_prefix="{{prefix}}"_prefix="$(dirname $(dirname $0))"_' \
-e 's_{{prefix}}_$prefix_' \
2022-11-11 14:51:41 +03:00
libtoolize
rm libtoolize.bak
# an often expected alias
ln -s libtoolize glibtoolize
2022-09-07 17:33:57 +03:00
test:
dependencies:
tea.xyz/gx/make: '*'
script: |
libtoolize
test -f ltmain.sh