[arch-commits] Commit in argyllcms/trunk (PKGBUILD argyllcms-1.8.0-gcc5.patch)
Timothy Redaelli
tredaelli at archlinux.org
Tue Sep 8 13:20:17 UTC 2015
Date: Tuesday, September 8, 2015 @ 15:20:17
Author: tredaelli
Revision: 139601
upgpkg: argyllcms 1.8.2-1
Added:
argyllcms/trunk/argyllcms-1.8.0-gcc5.patch
Modified:
argyllcms/trunk/PKGBUILD
----------------------------+
PKGBUILD | 31 ++++++++++++++++++++-----------
argyllcms-1.8.0-gcc5.patch | 20 ++++++++++++++++++++
2 files changed, 40 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-09-08 12:47:02 UTC (rev 139600)
+++ PKGBUILD 2015-09-08 13:20:17 UTC (rev 139601)
@@ -4,32 +4,41 @@
pkgname=argyllcms
_pkgname=Argyll
-pkgver=1.7.0
+pkgver=1.8.2
_pkgver="V${pkgver}"
pkgrel=1
pkgdesc="An ICC compatible color management system with support for different colorimeter hardware"
arch=(i686 x86_64)
-depends=('libxss' 'libxinerama' 'libxxf86vm' 'libxrandr' 'zlib')
+depends=('libtiff' 'libxss' 'libxinerama' 'libxxf86vm' 'libxrandr' 'openssl')
makedepends=('ftjam' 'zip' 'unzip')
# You need to fake an UserAgent or it doesn't download
-source=(http://www.argyllcms.com/${_pkgname}_${_pkgver}_src.zip)
+DLAGENTS=('http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -A "Mozilla/4.0" -o %o %u')
+source=(http://www.argyllcms.com/${_pkgname}_${_pkgver}_src.zip
+ argyllcms-1.8.0-gcc5.patch)
url="http://www.argyllcms.com/"
license=("GPL" "AGPL")
install=${pkgname}.install
-sha256sums=('dac51cf5d8f6d04bb02f2f5b119fa0e8b773a010e6377116768b082ef018f663')
+sha256sums=('59bdfaeace35d2007c90fc53234ba33bf8a64cffc08f7b27a297fc5f85455377'
+ 'de9b8a90e249070d457291c29ae3c732f89c51bc6f6296cb6aa7e800ba31a0e5')
prepare() {
- sed -i 's:^TEST=="/lib/udev/usb-db", IMPORT{program}="usb-db %p":IMPORT{builtin}="hwdb --subsystem=usb":' ${_pkgname}_${_pkgver}/usb/55-Argyll.rules
+ cd ${_pkgname}_${_pkgver}
+ sed -i 's:^TEST=="/lib/udev/usb-db", IMPORT{program}="usb-db %p":IMPORT{builtin}="hwdb --subsystem=usb":' usb/55-Argyll.rules
+ patch -Np1 -i "$srcdir"/argyllcms-1.8.0-gcc5.patch
+
+ sed -i 's/-j${NUMBER_OF_PROCESSORS:-2}/$MAKEFLAGS/' makeall.sh
+
+ # From Gentoo argyllcms ebuild
+ echo "LINKFLAGS += ${LDFLAGS} ;" >> Jamtop
+ echo "STDLIBS += -ldl -lrt -lX11 -lXext -lXxf86vm -lXinerama -lXrandr -lXau -lXdmcp -lXss -ltiff -ljpeg ;" >> Jamtop
}
build() {
cd ${_pkgname}_${_pkgver}
- echo "***running makeall.sh***"
- sh ./makeall.sh
- echo "***running makeinstall.sh***"
- sh ./makeinstall.sh
- echo "***running makepackagebin.sh***"
- sh ./makepackagebin.sh
+
+ CCOPTFLAG="$CFLAGS" ./makeall.sh
+ ./makeinstall.sh
+ ./makepackagebin.sh
rm {bin,ref}/License.txt
rm {doc,ref}/afiles
}
Added: argyllcms-1.8.0-gcc5.patch
===================================================================
--- argyllcms-1.8.0-gcc5.patch (rev 0)
+++ argyllcms-1.8.0-gcc5.patch 2015-09-08 13:20:17 UTC (rev 139601)
@@ -0,0 +1,20 @@
+Description: Fix FTBFS with GCC 5
+Author: James Cowgill <james410 at cowgill.org.uk>
+Bug-Debian: https://bugs.debian.org/777779
+Forwarded: no
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/icc/icc.h
++++ b/icc/icc.h
+@@ -100,7 +100,11 @@
+ #define CF64PREC "LL" /* Constant precision specifier */
+
+ #ifndef ATTRIBUTE_NORETURN
++#ifdef _MSC_VER
+ # define ATTRIBUTE_NORETURN __declspec(noreturn)
++#else
++# define ATTRIBUTE_NORETURN __attribute__((noreturn))
++#endif
+ #endif
+
+ #else /* !__STDC_VERSION__ */
More information about the arch-commits
mailing list