0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-04 18:45:52 +00:00
termux-packages/packages/ghc-libs/ghc.subpackage.sh
Aditya Alok 3c9ce2423f
ghc-libs: Include symlinks too in subpackage
Signed-off-by: Aditya Alok <alok@termux.dev>
2023-02-21 03:09:33 +05:30

14 lines
577 B
Bash

# shellcheck shell=bash
TERMUX_SUBPKG_DESCRIPTION="The Glasgow Haskell Compiler"
TERMUX_SUBPKG_DEPENDS="binutils-is-llvm | binutils, llvm, clang"
TERMUX_SUBPKG_INCLUDE="lib/ghc-$TERMUX_PKG_VERSION/ghc-$TERMUX_PKG_VERSION"
while read -r file; do
TERMUX_SUBPKG_INCLUDE+=" ${file/$TERMUX_PREFIX\//}"
done < <(find "$TERMUX_PREFIX"/lib/ghc-"$TERMUX_PKG_VERSION"/bin -type f -or -type l -not -name "ghc-pkg*" -print)
while read -r file; do
TERMUX_SUBPKG_INCLUDE+=" ${file/$TERMUX_PREFIX\//}"
done < <(find "$TERMUX_PREFIX"/bin -type f -or -type l -not -name "ghc-pkg*" -print)