mirror of
https://github.com/termux/termux-packages.git
synced 2025-06-08 10:43:41 +00:00
27 lines
1.1 KiB
Bash
27 lines
1.1 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://www.musicpd.org/libs/libmpdclient/
|
|
TERMUX_PKG_DESCRIPTION="Asynchronous API library for interfacing MPD in the C, C++ & Objective C languages"
|
|
TERMUX_PKG_LICENSE="BSD 2-Clause, BSD 3-Clause"
|
|
TERMUX_PKG_LICENSE_FILE="LICENSES/BSD-2-Clause.txt, LICENSES/BSD-3-Clause.txt"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="2.22"
|
|
TERMUX_PKG_SRCURL=https://github.com/MusicPlayerDaemon/libmpdclient/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=56bbae543a8a70db83b68c679b91990838f0db31a358c1a139774cd8ba7e3c59
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_UPDATE_TAG_TYPE="newest-tag"
|
|
TERMUX_PKG_BREAKS="libmpdclient-dev"
|
|
TERMUX_PKG_REPLACES="libmpdclient-dev"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-Ddefault_socket=${TERMUX_PREFIX}/var/run/mpd.socket"
|
|
|
|
termux_step_pre_configure() {
|
|
export TERMUX_MESON_ENABLE_SOVERSION=1
|
|
}
|
|
|
|
termux_step_post_massage() {
|
|
# Do not forget to bump revision of reverse dependencies and rebuild them
|
|
# after SOVERSION is changed.
|
|
local _GUARD_FILE="lib/libmpdclient.so.2"
|
|
if [ ! -e "${_GUARD_FILE}" ]; then
|
|
termux_error_exit "Error: file ${_GUARD_FILE} not found."
|
|
fi
|
|
}
|