void-packages/srcpkgs/argyllcms/template

41 lines
1.5 KiB
Plaintext

# Template file for 'argyllcms'
pkgname=argyllcms
version=1.6.3
revision=2
wrksrc="Argyll_V${version}"
hostmakedepends="ftjam zip unzip"
makedepends="zlib-devel libjpeg-turbo-devel libXinerama-devel libXScrnSaver-devel libXxf86vm-devel libXrandr-devel"
short_desc="ICC compatible color management system"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL, AGPL"
homepage="http://www.argyllcms.com/"
update_site="http://www.argyllcms.com/downloadsrc.html"
update_pattern='Argyll_V\K[\d.]+'
distfiles="http://www.argyllcms.com/Argyll_V${version}_src.zip"
checksum=188beaa03dd2459403415023f8f8f9aab362bf3062a9822b3622dde6902e4b84
do_configure() {
sed -i 's:^TEST=="/lib/udev/usb-db", IMPORT{program}="usb-db %p":IMPORT{builtin}="hwdb --subsystem=usb":' usb/55-Argyll.rules
}
do_build() {
unset AR
sh ./makeall.sh
sh ./makeinstall.sh
rm {bin,ref}/License.txt
rm {doc,ref}/afiles
}
do_install() {
vmkdir usr/bin
install -m755 bin/* ${DESTDIR}/usr/bin
vmkdir usr/share/${pkgname}/ref
install -m644 ref/*.* ${DESTDIR}/usr/share/${pkgname}/ref
install -m644 profile/*.sp ${DESTDIR}/usr/share/${pkgname}/ref
install -m644 scanin/*.c?? ${DESTDIR}/usr/share/${pkgname}/ref
# Because there is just html documentation we have to move it
vmkdir usr/share/${pkgname}/doc/ccmxs
install -m644 doc/ccmxs/*.ccmx ${DESTDIR}/usr/share/${pkgname}/doc/ccmxs
install -m644 doc/*.* ${DESTDIR}/usr/share/${pkgname}/doc
vmkdir usr/lib/udev/rules.d
install -m644 usb/55-Argyll.rules ${DESTDIR}/usr/lib/udev/rules.d/55-Argyll.rules
}