mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-06 10:53:21 +00:00
21 lines
634 B
Bash
21 lines
634 B
Bash
TERMUX_PKG_HOMEPAGE="https://pdfcpu.io"
|
|
TERMUX_PKG_DESCRIPTION="A PDF processor written in Go"
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="0.10.1"
|
|
TERMUX_PKG_SRCURL="https://github.com/pdfcpu/pdfcpu/archive/refs/tags/v$TERMUX_PKG_VERSION.tar.gz"
|
|
TERMUX_PKG_SHA256=f43d55cf7a4c9a88a35c96c67891d3afc326b451059f516abe1837c51e2593dd
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
termux_step_make() {
|
|
termux_setup_golang
|
|
cd "${TERMUX_PKG_SRCDIR}/cmd/pdfcpu"
|
|
go build
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm700 "${TERMUX_PKG_SRCDIR}/cmd/pdfcpu/pdfcpu" \
|
|
"$TERMUX_PREFIX/bin/"
|
|
}
|