mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-21 20:56:19 +00:00
ff819992fc
psutils 3.0+ now comprises of Python scripts, dropping Perl. Cross compilation is no longer necessary. Moved to disabled since no one wants to maintain this package. Will keep maintain libpaper as a runtime dependency. To install the latest psutils, do pkg install libpaper python pip install pspdfutils
26 lines
1.1 KiB
Bash
26 lines
1.1 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/rrthomas/psutils
|
|
TERMUX_PKG_DESCRIPTION="A set of postscript utilities"
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="2.10"
|
|
TERMUX_PKG_REVISION=2
|
|
TERMUX_PKG_SRCURL="https://github.com/rrthomas/psutils/releases/download/v${TERMUX_PKG_VERSION}/psutils-${TERMUX_PKG_VERSION}.tar.gz"
|
|
TERMUX_PKG_SHA256=6f8339fd5322df5c782bfb355d9f89e513353220fca0700a5a28775404d7e98b
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_DEPENDS="ghostscript, perl, libpaper"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_path_PAPER=${TERMUX_PREFIX}/bin/paper"
|
|
|
|
termux_step_post_massage() {
|
|
local perl_version
|
|
perl_version=$(
|
|
. "${TERMUX_SCRIPTDIR}"/packages/perl/build.sh
|
|
echo "${TERMUX_PKG_VERSION[0]}"
|
|
)
|
|
|
|
# Make sure that perl can find PSUtils module.
|
|
mkdir -p "${TERMUX_PKG_MASSAGEDIR}/${TERMUX_PREFIX}/lib/perl5/${perl_version}"
|
|
mv -f "${TERMUX_PKG_MASSAGEDIR}/${TERMUX_PREFIX}"/share/psutils/PSUtils.pm \
|
|
"${TERMUX_PKG_MASSAGEDIR}/${TERMUX_PREFIX}/lib/perl5/${perl_version}"/
|
|
rmdir "${TERMUX_PKG_MASSAGEDIR}/${TERMUX_PREFIX}"/share/psutils
|
|
}
|