From f4b99bc418260f07f69d3a67709e2e987af5c5e1 Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Tue, 1 Mar 2022 09:46:28 +0900 Subject: [PATCH] dcraw: Bump revision to rebuild --- packages/dcraw/build.sh | 4 ++-- packages/dcraw/swab.c | 34 ---------------------------------- 2 files changed, 2 insertions(+), 36 deletions(-) delete mode 100644 packages/dcraw/swab.c diff --git a/packages/dcraw/build.sh b/packages/dcraw/build.sh index 478a14874..e15bad094 100644 --- a/packages/dcraw/build.sh +++ b/packages/dcraw/build.sh @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Raw digital camera images decoding utility" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=9.28.0 -TERMUX_PKG_REVISION=3 +TERMUX_PKG_REVISION=4 TERMUX_PKG_SRCURL=https://mirrors.dotsrc.org/pub/mirrors/exherbo/dcraw-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SHA256=2890c3da2642cd44c5f3bfed2c9b2c1db83da5cec09cc17e0fa72e17541fb4b9 TERMUX_PKG_BUILD_IN_SRC=true @@ -11,7 +11,7 @@ TERMUX_PKG_DEPENDS="littlecms, libjasper, libjpeg-turbo" termux_step_make_install() { # See the "install" script for flags: - $CC $CFLAGS $CPPFLAGS $LDFLAGS dcraw.c $TERMUX_PKG_BUILDER_DIR/swab.c -lm -ljasper -ljpeg -llcms2 -o $TERMUX_PREFIX/bin/dcraw + $CC $CFLAGS $CPPFLAGS $LDFLAGS dcraw.c -lm -ljasper -ljpeg -llcms2 -o $TERMUX_PREFIX/bin/dcraw chmod +w dcraw.1 # Add missing write permission cp dcraw.1 $TERMUX_PREFIX/share/man/man1/ } diff --git a/packages/dcraw/swab.c b/packages/dcraw/swab.c deleted file mode 100644 index f317c1ae9..000000000 --- a/packages/dcraw/swab.c +++ /dev/null @@ -1,34 +0,0 @@ -/* Copyright (C) 1992, 1996, 1997 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, write to the Free - Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA - 02111-1307 USA. */ - -#include - -void -swab (const void *bfrom, void *bto, ssize_t n) -{ - const char *from = (const char *) bfrom; - char *to = (char *) bto; - - n &= ~((ssize_t) 1); - while (n > 1) - { - const char b0 = from[--n], b1 = from[--n]; - to[n] = b0; - to[n + 1] = b1; - } -}