public
Created

PKGBUILD for ArgyllCMS with ColorHUG patch

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
# Contributor: Frank Ickstadt (frank dot ickstadt at gmail dot com)
# for argyllcms 1.3.5 color management system
 
# Note for rebuilders:
# The name of the file to be downloaded is always the same!
# So if you are a bad boy (Santa knows everything!) and build as root, this file
# will be saved in /var/cache/pacman/src . Therefore, rebuilding a later version
# likely will fail due to an MD5 error. If so, delete the files from the cache
# to force a new download.
 
pkgname=argyllcms
_pkgname=Argyll
pkgver=1.3.5_colorhug
_pkgver="V${pkgver%_colorhug}"
pkgrel=3
pkgdesc="An ICC compatible color management system with support for different colorimeter hardware"
arch=(i686 x86_64)
depends=('libxss' 'libx11' 'libxinerama' 'libxxf86vm' 'libxrandr')
makedepends=('ftjam' 'zip' 'unzip')
source=(http://www.argyllcms.com/${_pkgname}_${_pkgver}_src.zip
http://www.hughski.com/downloads/0001-Add-an-experimental-ColorHug-sensor-driver.patch)
url="http://www.argyllcms.com/"
license=("GPL" "AGPL")
install=${pkgname}.install
md5sums=('089d15abf2b12c7058c6790643937608'
'a3f0617fa743991140df63d4ec7a7dff')
build() {
cd ${srcdir}/${_pkgname}_${_pkgver}
patch -p1 < ../../0001-Add-an-experimental-ColorHug-sensor-driver.patch
sh makeall.sh
sh makeinstall.sh
sh makepackagebin.sh
rm ${srcdir}/${_pkgname}_${_pkgver}/bin/License.txt
rm ${srcdir}/${_pkgname}_${_pkgver}/ref/afiles
rm ${srcdir}/${_pkgname}_${_pkgver}/doc/afiles
mkdir -p ${pkgdir}/usr/bin
install -m755 ${srcdir}/${_pkgname}_${_pkgver}/bin/* ${pkgdir}/usr/bin
mkdir -p ${pkgdir}/usr/share/${pkgname}/ref
install -m644 ${srcdir}/${_pkgname}_${_pkgver}/ref/* ${pkgdir}/usr/share/${pkgname}/ref
install -m644 ${srcdir}/${_pkgname}_${_pkgver}/ref/ReadMe.txt ${pkgdir}/usr/share/${pkgname}/ref
mkdir -p ${pkgdir}/usr/share/${pkgname}/profile
install -m644 ${srcdir}/${_pkgname}_${_pkgver}/profile/*.sp ${pkgdir}/usr/share/${pkgname}/profile
install -m644 ${srcdir}/${_pkgname}_${_pkgver}/profile/Readme.txt ${pkgdir}/usr/share/${pkgname}/profile
mkdir -p ${pkgdir}/usr/share/${pkgname}/scanin
install -m644 ${srcdir}/${_pkgname}_${_pkgver}/scanin/*.cht ${pkgdir}/usr/share/${pkgname}/scanin
install -m644 ${srcdir}/${_pkgname}_${_pkgver}/scanin/*.cie ${pkgdir}/usr/share/${pkgname}/scanin
install -m644 ${srcdir}/${_pkgname}_${_pkgver}/scanin/*.ti2 ${pkgdir}/usr/share/${pkgname}/scanin
install -m644 ${srcdir}/${_pkgname}_${_pkgver}/scanin/Readme.txt ${pkgdir}/usr/share/${pkgname}/scanin
mkdir -p ${pkgdir}/usr/share/${pkgname}/target
install -m644 ${srcdir}/${_pkgname}_${_pkgver}/target/*.ti? ${pkgdir}/usr/share/${pkgname}/target
install -m644 ${srcdir}/${_pkgname}_${_pkgver}/target/Readme.txt ${pkgdir}/usr/share/${pkgname}/target
mkdir -p ${pkgdir}/usr/share/${pkgname}/spectro
install -m644 ${srcdir}/${_pkgname}_${_pkgver}/spectro/*.sp ${pkgdir}/usr/share/${pkgname}/spectro
install -m644 ${srcdir}/${_pkgname}_${_pkgver}/spectro/Readme.txt ${pkgdir}/usr/share/${pkgname}/spectro
mkdir -p ${pkgdir}/usr/share/${pkgname}/tweak
install -m755 ${srcdir}/${_pkgname}_${_pkgver}/tweak/refine ${pkgdir}/usr/share/${pkgname}/tweak
install -m644 ${srcdir}/${_pkgname}_${_pkgver}/tweak/Readme.txt ${pkgdir}/usr/share/${pkgname}/tweak
# Because there is just html documentation we have to move it
mkdir -p ${pkgdir}/usr/share/${pkgname}/doc/ccmxs
install -m644 ${srcdir}/${_pkgname}_${_pkgver}/doc/ccmxs/*.ccmx ${pkgdir}/usr/share/${pkgname}/doc/ccmxs
install -m644 ${srcdir}/${_pkgname}_${_pkgver}/doc/*.* ${pkgdir}/usr/share/${pkgname}/doc
mkdir -p ${pkgdir}/lib/udev/rules.d
install -m644 ${srcdir}/${_pkgname}_${_pkgver}/libusb/55-Argyll.rules ${pkgdir}/lib/udev/rules.d/55-Argyll.rules
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.