termux-packages/packages/cups/build.sh

30 lines
948 B
Bash
Raw Normal View History

2021-07-29 15:26:04 +02:00
TERMUX_PKG_HOMEPAGE="https://www.cups.org/"
TERMUX_PKG_DESCRIPTION="Common UNIX Printing System"
TERMUX_PKG_LICENSE="Apache-2.0"
2021-07-29 15:54:10 +02:00
TERMUX_PKG_MAINTAINER="@termux"
2021-07-29 15:26:04 +02:00
TERMUX_PKG_VERSION="2.3.3"
2022-03-19 08:02:54 +01:00
TERMUX_PKG_REVISION=8
2021-07-29 15:26:04 +02:00
TERMUX_PKG_SRCURL="https://github.com/apple/cups/releases/download/v${TERMUX_PKG_VERSION}/cups-${TERMUX_PKG_VERSION}-source.tar.gz"
TERMUX_PKG_SHA256="261fd948bce8647b6d5cb2a1784f0c24cc52b5c4e827b71d726020bcc502f3ee"
2022-03-19 08:02:54 +01:00
TERMUX_PKG_DEPENDS="libc++, libiconv, libcrypt"
2021-07-29 15:26:04 +02:00
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_CONFFILES="
etc/cups/cups-files.conf
etc/cups/cupsd.conf
etc/cups/snmp.conf
"
TERMUX_PKG_SERVICE_SCRIPT=("cupsd" "mkdir -p $TERMUX_PREFIX/var/run/cups && exec cupsd -f")
termux_step_make() {
make LIBS="-pthread $LDFLAGS -Wl,--hash-style=both -lm -lcrypt -liconv -lz" -j${TERMUX_MAKE_PROCESSES}
}
termux_step_create_debscripts() {
cat <<- EOF > ./postinst
#!${TERMUX_PREFIX}/bin/sh
mkdir -p $TERMUX_PREFIX/var/run/cups
EOF
}