[arch-commits] Commit in jpeg-archive/repos (3 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 21:20:11 UTC 2020


    Date: Tuesday, July 7, 2020 @ 21:20:11
  Author: felixonmars
Revision: 660340

archrelease: copy trunk to community-staging-x86_64

Added:
  jpeg-archive/repos/community-staging-x86_64/
  jpeg-archive/repos/community-staging-x86_64/PKGBUILD
    (from rev 660339, jpeg-archive/trunk/PKGBUILD)
  jpeg-archive/repos/community-staging-x86_64/parallel.config
    (from rev 660339, jpeg-archive/trunk/parallel.config)

-----------------+
 PKGBUILD        |   45 +++++++++++++++++++++++++++++++++++++++++++++
 parallel.config |    6 ++++++
 2 files changed, 51 insertions(+)

Copied: jpeg-archive/repos/community-staging-x86_64/PKGBUILD (from rev 660339, jpeg-archive/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 21:20:11 UTC (rev 660340)
@@ -0,0 +1,45 @@
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Maintainer: arjan5 <aur at anymore.nl>
+
+pkgname=jpeg-archive
+pkgver=2.2.0
+pkgrel=2
+pkgdesc='Utilities for archiving JPEGs for long term storage'
+arch=(x86_64)
+url="https://github.com/danielgtaylor/jpeg-archive/"
+license=(MIT)
+depends=(bash)
+makedepends=(git nasm)
+optdepends=('parallel: for jpeg-archive'
+            'dcraw: for jpeg-archive'
+            'perl-image-exiftool: for jpeg-archive')
+_commit=f51c5cefeb9fe5207835cc9cc2422f3950ab787a # 2.2.0
+_mozjpeg_commit=72d249b89ca348c991d5e27c82cf32ba0f12d05a # v3.2
+source=(git://github.com/danielgtaylor/jpeg-archive.git#commit=$_commit
+        git://github.com/mozilla/mozjpeg.git#commit=$_mozjpeg_commit
+        parallel.config)
+md5sums=('SKIP'
+         'SKIP'
+         '1534de688b10c4dad77ccfbffecb9a59')
+
+build() {
+  cd "$srcdir/mozjpeg"
+  CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
+  autoreconf -fiv
+  ./configure --with-jpeg8 --prefix="$srcdir/jpeg-archive/mozjpeg"
+  make
+  make install
+
+  cd "$srcdir/jpeg-archive"
+  MOZJPEG_PREFIX="$srcdir/jpeg-archive/mozjpeg" make
+}
+
+package() {
+  cd "$srcdir/jpeg-archive"
+  make PREFIX="$pkgdir/usr" install
+  install -Dm644 "$srcdir/parallel.config" \
+    "$pkgdir/usr/share/$pkgname/parallel.config"
+
+  install -d "$pkgdir/usr/share/licenses/$pkgname"
+  tail -n7 README.md > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: jpeg-archive/repos/community-staging-x86_64/parallel.config (from rev 660339, jpeg-archive/trunk/parallel.config)
===================================================================
--- community-staging-x86_64/parallel.config	                        (rev 0)
+++ community-staging-x86_64/parallel.config	2020-07-07 21:20:11 UTC (rev 660340)
@@ -0,0 +1,6 @@
+--rpl 'FULLPATH $_=::shell_quote($_);chomp($_=qx{readlink -f $_});'
+--rpl 'DIRNAME $_=::shell_quote(::dirname($_));chomp($_=qx{readlink -f $_});'
+--rpl 'BASENAME s:.*/::;s:\.[^/.]+$::;'
+--rpl 'EXT s:.*\.::'
+--rpl 'RELDIR $_=::shell_quote($_);chomp(($_,$c)=qx{readlink -f $_;pwd});s:\Q$c/\E::;$_=::dirname($_);'
+--rpl 'RELPATH $_=::shell_quote($_);chomp(($_,$c)=qx{readlink -f $_;pwd});s:\Q$c/\E::;'



More information about the arch-commits mailing list