New packages: cmus-2.7.1, dependencies: opusfile-0.8, libcue-2.1.0 (#844)

* New package: cmus-2.7.1

* New package: libcue-2.1.0

Dependency of cmus

* New package: opusfile-0.8
This commit is contained in:
Alain Kalker 2017-03-24 00:55:30 +01:00 committed by Fredrik Fornwall
parent 33068c0a64
commit 0209a40e1c
5 changed files with 52 additions and 0 deletions

16
packages/cmus/build.sh Normal file
View File

@ -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
}

View File

@ -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`

View File

@ -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

6
packages/libcue/build.sh Normal file
View File

@ -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

View File

@ -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"