mirror of
https://github.com/termux-pacman/glibc-packages.git
synced 2024-11-23 14:46:18 +00:00
3725e379db
gpkg/findutils gpkg/git gpkg/json-c gpkg/jsoncpp gpkg/libarchive gpkg/libcairo gpkg/libcurl gpkg/libexpat gpkg/libgc gpkg/libgcrypt gpkg/libjpeg-turbo gpkg/libpng gpkg/libtiff gpkg/libxml2 gpkg/nano gpkg/openssl gpkg/readline gpkg/strace gpkg/vulkan-icd-loader gpkg/vulkan-tools gpkg/vulkan-volk gpkg/mpdecimal: fix
21 lines
829 B
Bash
21 lines
829 B
Bash
TERMUX_PKG_HOMEPAGE=https://www.nano-editor.org/
|
|
TERMUX_PKG_DESCRIPTION="Small, free and friendly text editor"
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
|
TERMUX_PKG_MAINTAINER="@termux-pacman"
|
|
TERMUX_PKG_VERSION=8.2
|
|
TERMUX_PKG_SRCURL=https://nano-editor.org/dist/v${TERMUX_PKG_VERSION/.*/}/nano-$TERMUX_PKG_VERSION.tar.xz
|
|
TERMUX_PKG_SHA256=d5ad07dd862facae03051c54c6535e54c7ed7407318783fcad1ad2d7076fffeb
|
|
TERMUX_PKG_DEPENDS="ncurses-glibc, file-glibc"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
--enable-color
|
|
--enable-nanorc
|
|
--enable-multibuffer
|
|
"
|
|
TERMUX_PKG_CONFFILES="glibc/etc/nanorc"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
termux_step_post_make_install() {
|
|
install -DTm644 doc/sample.nanorc $TERMUX_PREFIX/etc/nanorc
|
|
sed -i "$(grep -n '/share/nano/\*.nanorc' doc/sample.nanorc | awk -F ':' '{printf $1}')s/# include/include/" $TERMUX_PREFIX/etc/nanorc
|
|
}
|