Browse Source

Remove some macOS leftovers

We only build on Linux nowadays
android-5
Fredrik Fornwall 8 years ago
parent
commit
2911ab9295
  1. 3
      build-package.sh
  2. 12
      packages/ncurses/build.sh

3
build-package.sh

@ -64,7 +64,6 @@ termux_setup_golang() {
local TERMUX_GO_VERSION=go1.8rc1
local TERMUX_GO_PLATFORM=linux-amd64
test "$(uname)" = "Darwin" && TERMUX_GO_PLATFORM=darwin-amd64
local TERMUX_BUILDGO_FOLDER=$TERMUX_COMMON_CACHEDIR/${TERMUX_GO_VERSION}.${TERMUX_GO_PLATFORM}
export GOROOT=$TERMUX_BUILDGO_FOLDER
@ -211,8 +210,6 @@ termux_step_setup_variables() {
export TERMUX_TAR="tar"
export TERMUX_TOUCH="touch"
test "$(uname)" = "Darwin" && TERMUX_TAR=gtar
test "$(uname)" = "Darwin" && TERMUX_TOUCH=gtouch
export prefix=${TERMUX_PREFIX}
export PREFIX=${TERMUX_PREFIX}
export PKG_CONFIG_LIBDIR=$TERMUX_PREFIX/lib/pkgconfig

12
packages/ncurses/build.sh

@ -23,18 +23,6 @@ termux_step_post_make_install () {
mkdir ncursesw
cd ncursesw
ln -s ../{ncurses.h,termcap.h,panel.h,unctrl.h,menu.h,form.h,tic.h,nc_tparm.h,term.h,eti.h,term_entry.h,ncurses_dll.h,curses.h} .
if [ `uname` = Darwin ]; then
cd $TERMUX_PREFIX/share/terminfo
for l in *; do
if [ ${#l} -eq 2 ]; then
char=`echo 0x$l | /usr/bin/awk '{printf "%c\n", $1}'`
rm -Rf $char
mv $l $char
fi
done
cd -
fi
}
termux_step_post_massage () {

Loading…
Cancel
Save