Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 8th, 2013  |  syntax: Bash  |  size: 3.23 KB  |  views: 45  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Frank Ickstadt (frank dot ickstadt at gmail dot com)
  2. # for argyllcms 1.5.0 color management system
  3.  
  4. # Note for rebuilders:
  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.
  10.  
  11. pkgname=argyllcms
  12. _pkgname=Argyll
  13. pkgver=1.5.1
  14. _pkgver="V${pkgver}"
  15. pkgrel=1
  16. pkgdesc="An ICC compatible color management system with support for different colorimeter hardware"
  17. arch=(i686 x86_64)
  18. depends=('libxss' 'libx11' 'libxinerama' 'libxxf86vm' 'libxrandr')
  19. makedepends=('ftjam' 'zip' 'unzip')
  20. source=($pkgname-$pkgver.zip::http://www.argyllcms.com/${_pkgname}_${_pkgver}_src.zip makepackagebin.patch)
  21. url="http://www.argyllcms.com/"
  22. license=("GPL" "AGPL")
  23. install=${pkgname}.install
  24. md5sums=('e8da62555966aa54f3685adcb02d729e' '3ad80962f6e2d21683050e50c9023ac1')
  25.  
  26. build() {
  27.   cd "${srcdir}"/${_pkgname}_${_pkgver}
  28.   #patch for compiling argyllcms on Archlinux platform
  29.   patch -Np0 -i ../../makepackagebin.patch || return 1
  30.   echo "***running makeall.sh***"
  31.   sh makeall.sh
  32.   echo "***running makeinstall.sh***"
  33.   sh makeinstall.sh
  34.   echo "***running makepackagebin.sh***"
  35.   sh makepackagebin.sh
  36.   rm "${srcdir}"/${_pkgname}_${_pkgver}/bin/License.txt
  37.   rm "${srcdir}"/${_pkgname}_${_pkgver}/ref/License.txt
  38.   rm "${srcdir}"/${_pkgname}_${_pkgver}/ref/afiles
  39.   rm "${srcdir}"/${_pkgname}_${_pkgver}/doc/afiles
  40.   mkdir -p "${pkgdir}"/usr/bin
  41.   install -m755 "${srcdir}"/${_pkgname}_${_pkgver}/bin/* "${pkgdir}"/usr/bin
  42.   mkdir -p "${pkgdir}"/usr/share/${pkgname}/ref
  43.   install -m644 "${srcdir}"/${_pkgname}_${_pkgver}/ref/*.* "${pkgdir}"/usr/share/${pkgname}/ref
  44.   install -m644 "${srcdir}"/${_pkgname}_${_pkgver}/profile/*.sp "${pkgdir}"/usr/share/${pkgname}/ref
  45.   install -m644 "${srcdir}"/${_pkgname}_${_pkgver}/scanin/*.c?? "${pkgdir}"/usr/share/${pkgname}/ref
  46.   mkdir -p "${pkgdir}"/usr/share/${pkgname}/tweak
  47.   install -m755 "${srcdir}"/${_pkgname}_${_pkgver}/tweak/refine "${pkgdir}"/usr/share/${pkgname}/tweak
  48.   install -m644 "${srcdir}"/${_pkgname}_${_pkgver}/tweak/Readme.txt "${pkgdir}"/usr/share/${pkgname}/tweak
  49.  # Because there is just html documentation we have to move it
  50.   mkdir -p "${pkgdir}"/usr/share/${pkgname}/doc/ccmxs
  51.   install -m644 "${srcdir}"/${_pkgname}_${_pkgver}/doc/ccmxs/*.ccmx "${pkgdir}"/usr/share/${pkgname}/doc/ccmxs
  52.   install -m644 "${srcdir}"/${_pkgname}_${_pkgver}/doc/*.* "${pkgdir}"/usr/share/${pkgname}/doc
  53.   mkdir -p "${pkgdir}"/usr/lib/udev/rules.d
  54.   install -m644 "${srcdir}"/${_pkgname}_${_pkgver}/usb/55-Argyll.rules "${pkgdir}"/usr/lib/udev/rules.d/55-Argyll.rules
  55.   sed -i 's|IMPORT{program}="usb|#IMPORT{program}="usb|' "${pkgdir}"/usr/lib/udev/rules.d/55-Argyll.rules
  56.   cat << EOF >>"${pkgdir}"/usr/lib/udev/rules.d/55-Argyll.rules
  57.  
  58. # As mentioned in https://bugzilla.redhat.com/show_bug.cgi?id=859244 and https://bbs.archlinux.org/viewtopic.php?id=155589
  59. # I've commented out the line:
  60. # IMPORT{program}="usb-db %p"
  61. # to prevent the error messages:
  62. # systemd-udevd[242]: failed to execute '/usr/lib/udev/usb-db'...
  63. EOF
  64. }