1 # Contributor: Frank Ickstadt (frank dot ickstadt at gmail dot com)
2 # for argyllcms 1.3.5 color management system
5 # The name of the file to be downloaded is always the same!
6 # So if you are a bad boy (Santa knows everything!) and build as root, this file
7 # will be saved in /var/cache/pacman/src . Therefore, rebuilding a later version
8 # likely will fail due to an MD5 error. If so, delete the files from the cache
9 # to force a new download.
16 pkgdesc="An ICC compatible color management system with support for different colorimeter hardware"
18 depends=('libxss' 'libx11' 'libxinerama' 'libxxf86vm' 'libxrandr')
19 makedepends=('ftjam' 'zip' 'unzip')
20 source=(http://www.argyllcms.com/${_pkgname}_${_pkgver}_src.zip)
21 url="http://www.argyllcms.com/"
22 license=("GPL" "AGPL")
23 install=${pkgname}.install
24 md5sums=('089d15abf2b12c7058c6790643937608')
27 cd ${srcdir}/${_pkgname}_${_pkgver}
31 rm ${srcdir}/${_pkgname}_${_pkgver}/bin/License.txt
32 rm ${srcdir}/${_pkgname}_${_pkgver}/ref/afiles
33 rm ${srcdir}/${_pkgname}_${_pkgver}/doc/afiles
34 mkdir -p ${pkgdir}/usr/bin
35 install -m755 ${srcdir}/${_pkgname}_${_pkgver}/bin/* ${pkgdir}/usr/bin
36 mkdir -p ${pkgdir}/usr/share/${pkgname}/ref
37 install -m644 ${srcdir}/${_pkgname}_${_pkgver}/ref/* ${pkgdir}/usr/share/${pkgname}/ref
38 install -m644 ${srcdir}/${_pkgname}_${_pkgver}/ref/ReadMe.txt ${pkgdir}/usr/share/${pkgname}/ref
39 mkdir -p ${pkgdir}/usr/share/${pkgname}/profile
40 install -m644 ${srcdir}/${_pkgname}_${_pkgver}/profile/*.sp ${pkgdir}/usr/share/${pkgname}/profile
41 install -m644 ${srcdir}/${_pkgname}_${_pkgver}/profile/Readme.txt ${pkgdir}/usr/share/${pkgname}/profile
42 mkdir -p ${pkgdir}/usr/share/${pkgname}/scanin
43 install -m644 ${srcdir}/${_pkgname}_${_pkgver}/scanin/*.cht ${pkgdir}/usr/share/${pkgname}/scanin
44 install -m644 ${srcdir}/${_pkgname}_${_pkgver}/scanin/*.cie ${pkgdir}/usr/share/${pkgname}/scanin
45 install -m644 ${srcdir}/${_pkgname}_${_pkgver}/scanin/*.ti2 ${pkgdir}/usr/share/${pkgname}/scanin
46 install -m644 ${srcdir}/${_pkgname}_${_pkgver}/scanin/Readme.txt ${pkgdir}/usr/share/${pkgname}/scanin
47 mkdir -p ${pkgdir}/usr/share/${pkgname}/target
48 install -m644 ${srcdir}/${_pkgname}_${_pkgver}/target/*.ti? ${pkgdir}/usr/share/${pkgname}/target
49 install -m644 ${srcdir}/${_pkgname}_${_pkgver}/target/Readme.txt ${pkgdir}/usr/share/${pkgname}/target
50 mkdir -p ${pkgdir}/usr/share/${pkgname}/spectro
51 install -m644 ${srcdir}/${_pkgname}_${_pkgver}/spectro/*.sp ${pkgdir}/usr/share/${pkgname}/spectro
52 install -m644 ${srcdir}/${_pkgname}_${_pkgver}/spectro/Readme.txt ${pkgdir}/usr/share/${pkgname}/spectro
53 mkdir -p ${pkgdir}/usr/share/${pkgname}/tweak
54 install -m755 ${srcdir}/${_pkgname}_${_pkgver}/tweak/refine ${pkgdir}/usr/share/${pkgname}/tweak
55 install -m644 ${srcdir}/${_pkgname}_${_pkgver}/tweak/Readme.txt ${pkgdir}/usr/share/${pkgname}/tweak
56 # Because there is just html documentation we have to move it
57 mkdir -p ${pkgdir}/usr/share/${pkgname}/doc/ccmxs
58 install -m644 ${srcdir}/${_pkgname}_${_pkgver}/doc/ccmxs/*.ccmx ${pkgdir}/usr/share/${pkgname}/doc/ccmxs
59 install -m644 ${srcdir}/${_pkgname}_${_pkgver}/doc/*.* ${pkgdir}/usr/share/${pkgname}/doc
60 mkdir -p ${pkgdir}/etc/udev/rules.d
61 install -m644 ${srcdir}/${_pkgname}_${_pkgver}/libusb/55-Argyll.rules ${pkgdir}/etc/udev/rules.d/55-Argyll.rules
62 # Maybe "scanner" instead of "camera" is a better option
63 sed -i -e 's/plugdev/camera/g' ${pkgdir}/etc/udev/rules.d/55-Argyll.rules