mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-04 18:45:52 +00:00
3c9ce2423f
Signed-off-by: Aditya Alok <alok@termux.dev>
14 lines
577 B
Bash
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)
|