diff --git a/packages/libcairo/build.sh b/packages/libcairo/build.sh index 558092070..482c05a50 100644 --- a/packages/libcairo/build.sh +++ b/packages/libcairo/build.sh @@ -1,6 +1,7 @@ TERMUX_PKG_HOMEPAGE=https://cairographics.org TERMUX_PKG_DESCRIPTION="Cairo 2D vector graphics library" TERMUX_PKG_VERSION=1.14.12 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SHA256=8c90f00c500b2299c0a323dd9beead2a00353752b2092ead558139bd67f7bf16 TERMUX_PKG_SRCURL=https://cairographics.org/releases/cairo-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_DEPENDS="libandroid-support, libpixman, fontconfig, freetype, libpng" diff --git a/packages/libcairo/cairo-script-operators.c.patch b/packages/libcairo/cairo-script-operators.c.patch new file mode 100644 index 000000000..0585e3a69 --- /dev/null +++ b/packages/libcairo/cairo-script-operators.c.patch @@ -0,0 +1,12 @@ +diff -uNr cairo-1.14.12/util/cairo-script/cairo-script-operators.c cairo-1.14.12.mod/util/cairo-script/cairo-script-operators.c +--- cairo-1.14.12/util/cairo-script/cairo-script-operators.c 2017-12-05 00:26:25.000000000 +0200 ++++ cairo-1.14.12.mod/util/cairo-script/cairo-script-operators.c 2018-06-19 17:48:57.767824702 +0300 +@@ -1719,7 +1719,7 @@ + static void * + _mmap_bytes (const struct mmap_vec *vec, int count) + { +- char template[] = "/tmp/csi-font.XXXXXX"; ++ char template[] = "@TERMUX_PREFIX@/tmp/csi-font.XXXXXX"; + void *ptr; + int fd; + int num_bytes;