mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/argyllcms to 1.8.2-1
This commit is contained in:
parent
38925b14f7
commit
ac0399b667
2 changed files with 40 additions and 11 deletions
|
@ -7,32 +7,41 @@
|
||||||
|
|
||||||
pkgname=argyllcms
|
pkgname=argyllcms
|
||||||
_pkgname=Argyll
|
_pkgname=Argyll
|
||||||
pkgver=1.7.0
|
pkgver=1.8.2
|
||||||
_pkgver="V${pkgver}"
|
_pkgver="V${pkgver}"
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="An ICC compatible color management system with support for different colorimeter hardware"
|
pkgdesc="An ICC compatible color management system with support for different colorimeter hardware"
|
||||||
arch=(i686 x86_64)
|
arch=(i686 x86_64)
|
||||||
depends=('libxss' 'libxinerama' 'libxxf86vm' 'libxrandr' 'zlib')
|
depends=('libtiff' 'libxss' 'libxinerama' 'libxxf86vm' 'libxrandr' 'openssl')
|
||||||
makedepends=('ftjam' 'zip' 'unzip')
|
makedepends=('ftjam' 'zip' 'unzip')
|
||||||
# You need to fake an UserAgent or it doesn't download
|
# 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/"
|
url="http://www.argyllcms.com/"
|
||||||
license=("GPL" "AGPL")
|
license=("GPL" "AGPL")
|
||||||
install=${pkgname}.install
|
install=${pkgname}.install
|
||||||
sha256sums=('dac51cf5d8f6d04bb02f2f5b119fa0e8b773a010e6377116768b082ef018f663')
|
sha256sums=('59bdfaeace35d2007c90fc53234ba33bf8a64cffc08f7b27a297fc5f85455377'
|
||||||
|
'de9b8a90e249070d457291c29ae3c732f89c51bc6f6296cb6aa7e800ba31a0e5')
|
||||||
|
|
||||||
prepare() {
|
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() {
|
build() {
|
||||||
cd ${_pkgname}_${_pkgver}
|
cd ${_pkgname}_${_pkgver}
|
||||||
echo "***running makeall.sh***"
|
|
||||||
sh ./makeall.sh
|
CCOPTFLAG="$CFLAGS" ./makeall.sh
|
||||||
echo "***running makeinstall.sh***"
|
./makeinstall.sh
|
||||||
sh ./makeinstall.sh
|
#./makepackagebin.sh
|
||||||
#echo "***running makepackagebin.sh***"
|
|
||||||
#sh ./makepackagebin.sh
|
|
||||||
rm {bin,ref}/License.txt
|
rm {bin,ref}/License.txt
|
||||||
rm {doc,ref}/afiles
|
rm {doc,ref}/afiles
|
||||||
}
|
}
|
||||||
|
|
20
community/argyllcms/argyllcms-1.8.0-gcc5.patch
Normal file
20
community/argyllcms/argyllcms-1.8.0-gcc5.patch
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
Description: Fix FTBFS with GCC 5
|
||||||
|
Author: James Cowgill <james410@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__ */
|
Loading…
Reference in a new issue