diff --git a/packages/cmus/build.sh b/packages/cmus/build.sh new file mode 100644 index 000000000..a4001019c --- /dev/null +++ b/packages/cmus/build.sh @@ -0,0 +1,16 @@ +TERMUX_PKG_HOMEPAGE=https://cmus.github.io/ +TERMUX_PKG_DESCRIPTION="Small, fast and powerful console music player" +TERMUX_PKG_VERSION=2.7.1 +TERMUX_PKG_DEPENDS="libandroid-support, ncurses, libflac, libmad, libvorbis, opusfile, libcue, libpulseaudio" +TERMUX_PKG_SRCURL=https://github.com/cmus/cmus/archive/v${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=8179a7a843d257ddb585f4c65599844bc0e516fe85e97f6f87a7ceade4eb5165 +TERMUX_PKG_FOLDERNAME=cmus-$TERMUX_PKG_VERSION +TERMUX_PKG_BUILD_IN_SRC=yes + +termux_step_pre_configure() { + LD=$CC +} + +termux_step_configure () { + ./configure prefix=$TERMUX_PREFIX +} diff --git a/packages/cmus/checks.patch b/packages/cmus/checks.patch new file mode 100644 index 000000000..cc0e3a58b --- /dev/null +++ b/packages/cmus/checks.patch @@ -0,0 +1,13 @@ +--- ./scripts/checks.sh.orig 2015-07-13 10:00:56.000000000 +0000 ++++ ./scripts/checks.sh 2017-03-08 01:07:20.393468934 +0000 +@@ -450,8 +450,8 @@ + __exe=`tmp_file prog` + echo "$1" > $__src || exit 1 + shift +- __cmd="$CC $__src -o $__exe $CFLAGS $LDFLAGS $@" +- $CC $__src -o $__exe $CFLAGS $LDFLAGS "$@" 2>/dev/null ++ __cmd="$CC $__src -o $__exe $CFLAGS $CPPFLAGS $LDFLAGS $@" ++ $CC $__src -o $__exe $CFLAGS $CPPFLAGS $LDFLAGS "$@" 2>/dev/null + ;; + cxx) + __src=`tmp_file prog.cc` diff --git a/packages/cmus/configure.patch b/packages/cmus/configure.patch new file mode 100644 index 000000000..51238ff1e --- /dev/null +++ b/packages/cmus/configure.patch @@ -0,0 +1,11 @@ +--- ./configure.orig 2015-07-13 10:00:56.000000000 +0000 ++++ ./configure 2017-03-07 21:29:44.492136734 +0000 +@@ -117,7 +117,7 @@ + msg_checking "for working ncurses setup" + for flag in "" "-I/usr/include/ncurses" "-I/usr/include/ncursesw" + do +- if try_compile_link "$ncurses_code" $flag $NCURSES_LIBS ++ if try_compile_link "$ncurses_code" $NCURSES_CFLAGS $flag $NCURSES_LIBS + then + NCURSES_CFLAGS="$NCURSES_CFLAGS $flag" + msg_result yes diff --git a/packages/libcue/build.sh b/packages/libcue/build.sh new file mode 100644 index 000000000..54e29b853 --- /dev/null +++ b/packages/libcue/build.sh @@ -0,0 +1,6 @@ +TERMUX_PKG_HOMEPAGE=https://github.com/lipnitsk/libcue/ +TERMUX_PKG_DESCRIPTION="CUE Sheet Parser Library" +TERMUX_PKG_VERSION=2.1.0 +TERMUX_PKG_SRCURL=https://github.com/lipnitsk/libcue/archive/v${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=288ddd01e5f9e8f901d0c205d31507e4bdffd2540fa86073f2fe82de066d2abb +TERMUX_PKG_FOLDERNAME=libcue-$TERMUX_PKG_VERSION diff --git a/packages/opusfile/build.sh b/packages/opusfile/build.sh new file mode 100644 index 000000000..84d1c3ee0 --- /dev/null +++ b/packages/opusfile/build.sh @@ -0,0 +1,6 @@ +TERMUX_PKG_HOMEPAGE=https://www.opus-codec.org/ +TERMUX_PKG_DESCRIPTION="A high-level API for decoding and seeking within .opus files" +TERMUX_PKG_VERSION=0.8 +TERMUX_PKG_SRCURL=http://downloads.xiph.org/releases/opus/opusfile-${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=2c231ed3cfaa1b3173f52d740e5bbd77d51b9dfecb87014b404917fba4b855a4 +TERMUX_PKG_DEPENDS="libopus"