new package: quilt
This commit is contained in:
parent
b1bb12d611
commit
119191e5c9
19
packages/quilt/build.sh
Normal file
19
packages/quilt/build.sh
Normal file
@ -0,0 +1,19 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://savannah.nongnu.org/projects/quilt
|
||||
TERMUX_PKG_DESCRIPTION="Allows you to easily manage large numbers of patches"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=0.66
|
||||
TERMUX_PKG_SRCURL=https://savannah.nongnu.org/download/quilt/quilt-${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=314b319a6feb13bf9d0f9ffa7ce6683b06919e734a41275087ea457cc9dc6e07
|
||||
TERMUX_PKG_DEPENDS="coreutils, diffstat, gawk, graphviz, perl"
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
--with-diffstat=$TERMUX_PREFIX/bin/diffstat
|
||||
--without-7z
|
||||
--without-rpmbuild
|
||||
--without-sendmail
|
||||
"
|
||||
|
||||
termux_step_post_make_install() {
|
||||
ln -sf $TERMUX_PREFIX/bin/gawk $TERMUX_PREFIX/share/quilt/compat/awk
|
||||
}
|
13
packages/quilt/quilt-scripts-utilfns.patch
Normal file
13
packages/quilt/quilt-scripts-utilfns.patch
Normal file
@ -0,0 +1,13 @@
|
||||
--- a/quilt/scripts/utilfns
|
||||
+++ b/quilt/scripts/utilfns
|
||||
@@ -47,8 +47,8 @@
|
||||
{
|
||||
if [ "$1" = -d ]
|
||||
then
|
||||
- mktemp -d ${2:-${TMPDIR:-/tmp}/quilt.}XXXXXX
|
||||
+ mktemp -d ${2:-${TMPDIR:-@TERMUX_PREFIX@/tmp}/quilt.}XXXXXX
|
||||
else
|
||||
- mktemp ${1:-${TMPDIR:-/tmp}/quilt.}XXXXXX
|
||||
+ mktemp ${1:-${TMPDIR:-@TERMUX_PREFIX@/tmp}/quilt.}XXXXXX
|
||||
fi
|
||||
}
|
11
packages/quilt/quilt-setup.in.patch
Normal file
11
packages/quilt/quilt-setup.in.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/quilt/setup.in
|
||||
+++ b/quilt/setup.in
|
||||
@@ -219,7 +219,7 @@
|
||||
specdir=$PWD
|
||||
fi
|
||||
|
||||
- tmpdir=$(gen_tempfile -d ${VARTMPDIR:-/var/tmp}/${0##*/})
|
||||
+ tmpdir=$(gen_tempfile -d ${VARTMPDIR:-@TERMUX_PREFIX@/tmp}/${0##*/})
|
||||
mkdir -p $tmpdir || exit 1
|
||||
add_exit_handler "rm -rf $tmpdir"
|
||||
mkdir -p $tmpdir/bin
|
Loading…
Reference in New Issue
Block a user