mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-07 19:33:20 +00:00
addpkg(main/moar): 1.30.0
This commit is contained in:
19
packages/moar/build.sh
Normal file
19
packages/moar/build.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://github.com/walles/moar
|
||||
TERMUX_PKG_DESCRIPTION="A pager designed to just do the right thing without any configuration"
|
||||
TERMUX_PKG_LICENSE="BSD 2-Clause"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION="1.30.0"
|
||||
TERMUX_PKG_SRCURL=https://github.com/walles/moar/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=a26954fca06c95604a94b6f208f62eff247e50c8d239262322a13d0959074de1
|
||||
TERMUX_PKG_AUTO_UPDATE=true
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
|
||||
termux_step_make() {
|
||||
termux_setup_golang
|
||||
go build -trimpath -ldflags="-s -w -X main.versionString=${TERMUX_PKG_VERSION}"
|
||||
}
|
||||
|
||||
termux_step_make_install() {
|
||||
install -Dm700 -t "${TERMUX_PREFIX}/bin" moar
|
||||
install -Dm600 -t "${TERMUX_PREFIX}/share/man/man1" moar.1
|
||||
}
|
||||
Reference in New Issue
Block a user