mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-04 18:45:52 +00:00
29 lines
575 B
Bash
29 lines
575 B
Bash
TERMUX_SUBPKG_DESCRIPTION="Update or create index file from all installed info files in directory"
|
|
TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true
|
|
TERMUX_SUBPKG_INCLUDE="
|
|
bin/update-info-dir
|
|
share/man/man8/update-info-dir.8.gz
|
|
"
|
|
|
|
termux_step_create_subpkg_debscripts() {
|
|
local INFODIR=$TERMUX_PREFIX/share/info
|
|
|
|
cat <<- EOF > ./triggers
|
|
interest-noawait $INFODIR
|
|
EOF
|
|
|
|
cat <<- EOF > ./postinst
|
|
#!$TERMUX_PREFIX/bin/sh
|
|
if [ -d $INFODIR ]; then
|
|
$TERMUX_PREFIX/bin/update-info-dir
|
|
fi
|
|
exit
|
|
EOF
|
|
|
|
cat <<- EOF > ./prerm
|
|
#!$TERMUX_PREFIX/bin/sh
|
|
rm -rf $INFODIR/dir
|
|
exit
|
|
EOF
|
|
}
|