1 # Maintainer: Bruno Pagani <archange@archlinux.org>
2 # Contributor: Timothy Redaelli <timothy.redaelli@gmail.com>
3 # Contributor: Frank Ickstadt (frank dot ickstadt at gmail dot com)
8 pkgdesc="An ICC compatible color management system with support for different colorimeter hardware"
10 url="https://www.argyllcms.com/"
12 depends=(libpng libtiff libxss libxinerama libxxf86vm libxrandr zlib openssl)
13 makedepends=(ftjam zip unzip)
14 source=("https://www.argyllcms.com/Argyll_V${pkgver}_src.zip")
15 sha256sums=('bd0bcf58cec284824b79ff55baa242903ed361e12b1b37e12228679f9754961c')
19 # Use hwdb builtin, instead of the obsolete usb-db in the udev rules.
20 sed -i 's:^TEST=="/lib/udev/usb-db", IMPORT{program}="usb-db %p":IMPORT{builtin}="hwdb --subsystem=usb":' usb/55-Argyll.rules
23 echo "LINKFLAGS += ${LDFLAGS} ;" >> Jamtop
29 jam -q -fJambase ${MAKEFLAGS} -sPREFIX=/usr -sDESTDIR="${pkgdir}" -sREFSUBDIR=share/argyllcms/ref all
34 jam -q -fJambase ${MAKEFLAGS} -sPREFIX=/usr -sDESTDIR="${pkgdir}" -sREFSUBDIR=share/argyllcms/ref install
36 rm "${pkgdir}"/usr/bin/License.txt
39 install -Dm644 doc/*.* -t "${pkgdir}"/usr/share/${pkgname}/doc/
40 install -Dm644 doc/ccmxs/*.ccmx -t "${pkgdir}"/usr/share/${pkgname}/doc/ccmxs/
42 install -Dm644 usb/55-Argyll.rules -t "${pkgdir}"/usr/lib/udev/rules.d/