Files
termux-packages/packages/python-lameenc/build.sh
termux-pacman-bot fb0cdae74d tree-wide: TERMUX_PKG_PYTHON_COMMON_DEPS -> TERMUX_PKG_PYTHON_COMMON_BUILD_DEPS
- Planned here, and separated into another PR for easier review and source control: https://github.com/termux/termux-packages/pull/23652#discussion_r2206041304

%ci:no-build
2026-01-18 16:06:30 +00:00

41 lines
1.1 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/chrisstaite/lameenc
TERMUX_PKG_DESCRIPTION="Python bindings around the LAME encoder"
TERMUX_PKG_LICENSE="LGPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="1.8.1"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/chrisstaite/lameenc/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=3f1994d4b14680a186b6f2b92af4bff30b0e262d043774fe411ddf3481547750
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="libandroid-support, libmp3lame, python"
TERMUX_PKG_PYTHON_COMMON_BUILD_DEPS="setuptools-scm, wheel"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
rm -rf build dist
}
termux_step_configure() {
:
}
termux_step_make() {
# Set version for setuptools_scm
export SETUPTOOLS_SCM_PRETEND_VERSION="${TERMUX_PKG_VERSION}"
python setup.py \
--libdir=$TERMUX_PREFIX/lib \
--incdir=$TERMUX_PREFIX/include/lame \
bdist_wheel
}
termux_step_make_install() {
local f
for f in dist/lameenc-${TERMUX_PKG_VERSION#*:}-*.whl; do
if [ -e "${f}" ]; then
pip install --force "${f}" --prefix $TERMUX_PREFIX
break
fi
done
}