[arch-commits] Commit in lib32-libjpeg-turbo/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Fri Nov 24 20:15:59 UTC 2017


    Date: Friday, November 24, 2017 @ 20:15:58
  Author: anthraxx
Revision: 268352

upgpkg: lib32-libjpeg-turbo 1.5.2-2 (reproducible builds)

setting build-date for reproducible builds

Modified:
  lib32-libjpeg-turbo/trunk/PKGBUILD

----------+
 PKGBUILD |   23 ++++++++++++++++-------
 1 file changed, 16 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-24 18:33:33 UTC (rev 268351)
+++ PKGBUILD	2017-11-24 20:15:58 UTC (rev 268352)
@@ -5,19 +5,21 @@
 _pkgbasename=libjpeg-turbo
 pkgname=lib32-$_pkgbasename
 pkgver=1.5.2
-pkgrel=1
+pkgrel=2
 pkgdesc="libjpeg derivative with accelerated baseline JPEG compression and decompression (32-bit)"
 arch=('x86_64')
-url="http://libjpeg-turbo.virtualgl.org/"
+url="https://libjpeg-turbo.org/"
 license=('custom')
 depends=('lib32-glibc' $_pkgbasename)
-makedepends=('nasm' gcc-multilib)
+makedepends=('nasm')
 provides=('lib32-libjpeg=8.1.2' 'lib32-turbojpeg')
 conflicts=('lib32-libjpeg' 'lib32-turbojpeg')
 replaces=('lib32-libjpeg' 'lib32-turbojpeg')
 options=('!libtool')
-source=(http://sourceforge.net/projects/$_pkgbasename/files/$pkgver/$_pkgbasename-$pkgver.tar.gz)
-sha512sums=('c7fe5cc77e38fad33af3f10e6db961c8edf033a86c09541121f49bfa20547179760924e6d3e397f0add7030459ff3babadd3457ab2da4a40a2147dc1574aa444')
+validpgpkeys=('7D6293CC6378786E1B5C496885C7044E033FDE16')
+source=(https://sourceforge.net/projects/$_pkgbasename/files/$pkgver/$_pkgbasename-$pkgver.tar.gz{,.sig})
+sha512sums=('c7fe5cc77e38fad33af3f10e6db961c8edf033a86c09541121f49bfa20547179760924e6d3e397f0add7030459ff3babadd3457ab2da4a40a2147dc1574aa444'
+            'SKIP')
 
 build() {
   cd "$_pkgbasename-$pkgver"
@@ -26,7 +28,13 @@
   export CXX="g++ -m32"
   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
 
-  ./configure --prefix=/usr --with-jpeg8 --mandir=/usr/share/man --libdir=/usr/lib32 --without-simd
+  ./configure \
+    --prefix=/usr \
+    --mandir=/usr/share/man \
+    --libdir=/usr/lib32 \
+    --with-jpeg8 \
+    --without-simd \
+    --with-build-date="$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y%m%d)" \
 
   make
 }
@@ -34,7 +42,7 @@
 check() {
   cd "$_pkgbasename-$pkgver"
   make test
-  }
+}
 
 package() {
   cd "$_pkgbasename-$pkgver"
@@ -46,4 +54,5 @@
 
   mkdir -p "$pkgdir/usr/share/licenses"
   ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+  install -Dm 644 ChangeLog.md -t"${pkgdir}/usr/share/doc/${pkgname}"
 }


More information about the arch-commits mailing list