Package Details: jpegtran_crop 9d-1

Git Clone URL: https://aur.archlinux.org/jpegtran_crop.git (read-only, click to copy)
Package Base: jpegtran_crop
Description: Stable jpegtran version with the lossless crop and scale feature
Upstream URL: http://sylvana.net/jpegcrop/jpegtran/
Licenses: Other
Conflicts: jpegtran_crop_bin, libjpeg-turbo
Submitter: jose1711
Maintainer: jose1711
Last Packager: jose1711
Votes: 2
Popularity: 0.000000
First Submitted: 2011-10-30 21:33
Last Updated: 2019-11-18 16:17

Dependencies (0)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

jose1711 commented on 2020-09-04 20:09

@Maniaxx if you check https://aur.archlinux.org/packages/libjpeg9 you'll find that it also contains /usr/lib/libjpeg.so.9. And libjpeg-turbo updating to v9 seems very unlikely: https://libjpeg-turbo.org/About/Jpeg-9

In a nutshell, The libjpeg-turbo Project has decided to use the release of 
jpeg-9 as an opportunity to draw a line in the sand and say "enough!" We could 
emulate the libjpeg v9 API/ABI easily enough, but why? The only purpose would be 
to support applications or O/S distributions that had upgraded from jpeg-8 to 
jpeg-9, but it is our opinion that no technical justification exists for this 
upgrade. 

Also it seems to be quite a lot of bad blood between the projects..

Maniaxx commented on 2020-08-17 22:53

Not sure. It might work if jpgtran asks for libjpeg.so.9 specifically. But you'll get into trouble once libjpeg-turbo updates to v9 as well. I'm wondering why they haven't done so already. Maybe ask the officials how to deal with this.

jose1711 commented on 2020-08-16 21:28

@Maniaxx thanks for sharing. please let me know what you think about this:

diff --git a/PKGBUILD b/PKGBUILD
index 0784861..f1b2f9a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,14 @@

 pkgname=jpegtran_crop
 pkgver=9d
-pkgrel=1
+pkgrel=2
 pkgdesc="Stable jpegtran version with the lossless crop and scale feature"
 arch=('i686' 'x86_64')
 url="http://sylvana.net/jpegcrop/jpegtran/"
 license=('other')
 source=("http://sylvana.net/jpegcrop/jpegcrop.tar.gz")
-md5sums=('c49521506af43d9faebc91ee1c85a105')
-conflicts=('jpegtran_crop_bin' 'libjpeg-turbo')
+md5sums=('7e1b64e8691ba8ee0efb94dcd5734373')
+conflicts=('jpegtran_crop_bin')

 build() {
   cd ${srcdir}/jpegcrop/jpeg-${pkgver}
@@ -20,4 +20,7 @@ build() {
 package() {
   cd ${srcdir}/jpegcrop/jpeg-${pkgver}
   make DESTDIR=${pkgdir} install
+  find $pkgdir -type f \( ! -name jpegtran -a ! -name 'libjpeg.so.[0-9]*' \) -delete
+  rm $pkgdir/usr/lib/libjpeg.so
+  mv $pkgdir/usr/bin/jpegtran $pkgdir/usr/bin/jpegtran_crop
 }

Maniaxx commented on 2020-08-16 17:45

How is this meant to be installed without breaking the dependency tree? extra/libjpeg-turbo has too many dependencies to get uninstalled here.

Edit: As a workaround i've compiled it statically:

./configure
make DESTDIR=/tmp/jpegtran LINK='$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -all-static -s -o $@' -j4 install

dreieck commented on 2020-07-22 13:37

Checksum verification fails:

==> Validating source files with md5sums...
    jpegcrop.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!

jose1711 commented on 2019-11-18 16:15

@Nowaker

there is a difference between jpegtran from libjpeg-turbo and this PKGBUILD. namely libjpeg-turbo supports -icc switch but it is lacking support for:

-drop +X+Y filename Drop another image
-scale M/N          Scale output image by fraction M/N
-wipe WxH+X+Y       Wipe (gray out) a rectangular subarea

aurmyster commented on 2019-11-17 08:11

If you want to build this, change 9b to 9d in both the PKGBUILD & .SRCINFO files.

Please note that this package also conflicts with extra/libjpeg-turbo

Nowaker commented on 2014-08-10 18:16

How does this package differ from libjpeg-turbo from [community] that provides the very same binaries? If it doesn't, this package needs to be deleted.

martinpoljak commented on 2014-04-24 15:40

This time working PKGBUILD:
http://pastebin.com/V9vxVwmV

FernandoBasso commented on 2013-09-27 21:36

$ aurget -S jpegtran_crop
:: Resolving dependencies...
Edit jpegtran_crop's PKGBUILD before sourcing for dependencies? [Y/n]
Continue sourcing for dependencies? [Y/n]
:: Searching AUR...

Targets (1): jpegtran_crop-8d-2

Proceed with installation? [Y/n]
:: Retrieving taurball from AUR...
:: Building package...
/home/fernando/aurget-pkgs/jpegtran_crop
Edit jpegtran_crop's PKGBUILD before building? [Y/n]
Continue building? [Y/n]
==> Making package: jpegtran_crop 8d-2 (Fri Sep 27 18:35:32 BRT 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found jpegcrop.tar.gz
==> Validating source files with md5sums...
jpegcrop.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!
warning: package jpegtran_crop failed to build, skipping

Thanks for the package, though.