From 404afaad035917006136dfde7488c14abfb55f18 Mon Sep 17 00:00:00 2001 From: Max Rumpf Date: Mon, 11 May 2020 15:38:21 +0200 Subject: [PATCH] new package: jftui (#5277) --- packages/jftui/build.sh | 23 +++++++++++++++++++++++ packages/mpv/build.sh | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 packages/jftui/build.sh diff --git a/packages/jftui/build.sh b/packages/jftui/build.sh new file mode 100644 index 000000000..4646c42ba --- /dev/null +++ b/packages/jftui/build.sh @@ -0,0 +1,23 @@ +TERMUX_PKG_HOMEPAGE=https://github.com/Aanok/jftui +TERMUX_PKG_DESCRIPTION="jftui is a minimalistic, lightweight C99 command line client for the open source Jellyfin media server." +TERMUX_PKG_LICENSE="Unlicense" +TERMUX_PKG_MAINTAINER="Maxr1998 " +TERMUX_PKG_VERSION=0.3.0 +TERMUX_PKG_SRCURL=https://github.com/Aanok/jftui/archive/v${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=336cc17a67bb91ee0b1ca0a5a3d2e415054806cb80f9b1c9b382eb4fdcde3bb5 +TERMUX_PKG_DEPENDS="libcurl, yajl, mpv" +TERMUX_PKG_BUILD_IN_SRC=true + +termux_step_pre_configure() { + sed -i 's| -march=native||' Makefile + sed -i 's|^CFLAGS=|override CFLAGS+=|' Makefile + sed -i 's|^LFLAGS=|override LFLAGS+=|' Makefile +} + +termux_step_make() { + make CFLAGS="$CPPFLAGS" LFLAGS="$LDFLAGS" +} + +termux_step_make_install() { + install -Dm700 $TERMUX_PKG_SRCDIR/build/jftui "$TERMUX_PREFIX/bin/jftui" +} diff --git a/packages/mpv/build.sh b/packages/mpv/build.sh index 0d479fd4c..77dc9752c 100644 --- a/packages/mpv/build.sh +++ b/packages/mpv/build.sh @@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://mpv.io/ TERMUX_PKG_DESCRIPTION="Command-line media player" TERMUX_PKG_LICENSE="GPL-3.0" TERMUX_PKG_VERSION=0.32.0 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=https://github.com/mpv-player/mpv/archive/v${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SHA256=9163f64832226d22e24bbc4874ebd6ac02372cd717bef15c28a0aa858c5fe592 TERMUX_PKG_DEPENDS="ffmpeg, libandroid-glob, libandroid-support, libarchive, libcaca, libiconv, liblua52, pulseaudio, openal-soft, zlib" @@ -22,6 +23,7 @@ termux_step_make_install() { --disable-jpeg \ --disable-lcms2 \ --enable-libarchive \ + --enable-libmpv-shared \ --disable-libass \ --enable-lua \ --enable-pulse \