Skip to content

Commit

Permalink
bump(main/cmus): 2.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaskin committed Oct 26, 2024
1 parent b9d6cb6 commit 6164b77
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 53 deletions.
15 changes: 2 additions & 13 deletions packages/cmus/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,14 @@ TERMUX_PKG_HOMEPAGE=https://cmus.github.io/
TERMUX_PKG_DESCRIPTION="Small, fast and powerful console music player"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="2.11.0"
TERMUX_PKG_REVISION=1
TERMUX_PKG_VERSION="2.12.0"
TERMUX_PKG_DEPENDS="libandroid-support, libiconv, ncurses, pulseaudio, ffmpeg, libmad, opusfile, libflac, libvorbis"
TERMUX_PKG_SRCURL=https://github.com/cmus/cmus/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=2bbdcd6bbbae301d734214eab791e3755baf4d16db24a44626961a489aa5e0f7
TERMUX_PKG_SHA256=44b96cd5f84b0d84c33097c48454232d5e6a19cd33b9b6503ba9c13b6686bfc7
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BUILD_IN_SRC=true

termux_step_pre_configure() {
# cherry-pick patches
local sha commits=(
319b9a4ae59d942eecffb699c27356d9ba7e1f73 # aaudio output plugin (cmus/cmus#1346)
be3a140a6ead1a01dbd21fbaaa9b37cd4a5f6c84 # fix pause_on_output_change with softvol (cmus/cmus#1353)
)
for sha in "${commits[@]}"; do
termux_download "https://github.com/cmus/cmus/commit/$sha.patch" "$sha.patch" "SKIP_CHECKSUM" # skip checksum since we're already referencing an exact commit hash
git apply "$sha.patch"
done

# we need to be able to link against aaudio even on older api levels (it will fall back properly at runtime)
if [[ $TERMUX_PKG_API_LEVEL -lt 26 ]]; then
local _libdir="$TERMUX_PKG_TMPDIR/libaaudio"
Expand Down
13 changes: 0 additions & 13 deletions packages/cmus/checks.patch

This file was deleted.

16 changes: 0 additions & 16 deletions packages/cmus/configure-clang16.patch

This file was deleted.

11 changes: 0 additions & 11 deletions packages/cmus/configure.patch

This file was deleted.

0 comments on commit 6164b77

Please sign in to comment.