enscript: avoid manually applying patches
This also fixes the LibraryPath, seems @TERMUX_PREFIX@ was not sed'ed in it before.
This commit is contained in:
parent
256555adec
commit
dc896e159e
@ -3,13 +3,8 @@ TERMUX_PKG_DESCRIPTION="Enscript converts ASCII text files to PostScript, HTML,
|
|||||||
TERMUX_PKG_LICENSE="GPL-3.0"
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
||||||
TERMUX_PKG_MAINTAINER="@termux"
|
TERMUX_PKG_MAINTAINER="@termux"
|
||||||
TERMUX_PKG_VERSION=1.6.6
|
TERMUX_PKG_VERSION=1.6.6
|
||||||
TERMUX_PKG_REVISION=11
|
TERMUX_PKG_REVISION=12
|
||||||
TERMUX_PKG_SRCURL=https://ftp.gnu.org/gnu/enscript/enscript-$TERMUX_PKG_VERSION.tar.gz
|
TERMUX_PKG_SRCURL=https://ftp.gnu.org/gnu/enscript/enscript-$TERMUX_PKG_VERSION.tar.gz
|
||||||
TERMUX_PKG_SHA256=6d56bada6934d055b34b6c90399aa85975e66457ac5bf513427ae7fc77f5c0bb
|
TERMUX_PKG_SHA256=6d56bada6934d055b34b6c90399aa85975e66457ac5bf513427ae7fc77f5c0bb
|
||||||
TERMUX_PKG_DEPENDS="cups, perl"
|
TERMUX_PKG_DEPENDS="cups, perl"
|
||||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --sysconfdir=$TERMUX_PREFIX/etc/enscript"
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --sysconfdir=$TERMUX_PREFIX/etc/enscript"
|
||||||
|
|
||||||
termux_step_post_make_install() {
|
|
||||||
cd "$TERMUX_PREFIX"/bin && patch -i "$TERMUX_PKG_BUILDER_DIR"/diffpp.patch.txt
|
|
||||||
cd "$TERMUX_PREFIX"/etc/enscript && patch -i "$TERMUX_PKG_BUILDER_DIR"/enscript.cfg.patch.txt
|
|
||||||
}
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
--- enscript-1.6.6/scripts/diffpp 2018-08-26 16:51:49.594000009 +0530
|
--- ../diffpp.in.orig 2022-02-22 20:04:42.190819348 +0000
|
||||||
+++ diffpp 2018-08-27 18:05:56.762000111 +0530
|
+++ ./scripts/diffpp.in 2022-02-22 20:05:18.550692024 +0000
|
||||||
@@ -69,7 +69,7 @@
|
@@ -69,7 +69,7 @@
|
||||||
open(FP, $file) || die "$program: couldn't open file `$file' for input: $!\n";
|
open(FP, $file) || die "$program: couldn't open file `$file' for input: $!\n";
|
||||||
@orig_file = <FP>;
|
@orig_file = <FP>;
|
@ -1,5 +1,5 @@
|
|||||||
--- enscript-1.6.6/lib/enscript.cfg 2018-08-27 22:11:45.300000097 +0530
|
--- ../enscript.cfg.in.orig 2022-02-22 20:02:37.744671349 +0000
|
||||||
+++ enscript.cfg 2018-08-27 22:13:27.280000103 +0530
|
+++ ./lib/enscript.cfg.in 2022-02-22 20:03:09.737858022 +0000
|
||||||
@@ -76,7 +76,7 @@
|
@@ -76,7 +76,7 @@
|
||||||
# HighlightBars: 2
|
# HighlightBars: 2
|
||||||
|
|
Loading…
Reference in New Issue
Block a user