blob: c7cae856a8a80948eb300012076e4823f158d7b9 (
plain)
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
|
# $Id: PKGBUILD 106923 2014-03-10 14:57:49Z tredaelli $
# Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
# Contributor: Frank Ickstadt (frank dot ickstadt at gmail dot com)
pkgname=argyllcms
_pkgname=Argyll
pkgver=1.6.3
_pkgver="V${pkgver}"
pkgrel=2
pkgdesc="An ICC compatible color management system with support for different colorimeter hardware"
arch=(i686 x86_64)
depends=('libxss' 'libxinerama' 'libxxf86vm' 'libxrandr')
makedepends=('ftjam' 'zip' 'unzip')
# You need to fake an UserAgent or it doesn't download
source=(http://www.argyllcms.com/${_pkgname}_${_pkgver}_src.zip)
url="http://www.argyllcms.com/"
license=("GPL" "AGPL")
install=${pkgname}.install
sha256sums=('188beaa03dd2459403415023f8f8f9aab362bf3062a9822b3622dde6902e4b84')
build() {
cd ${_pkgname}_${_pkgver}
echo "***running makeall.sh***"
sh ./makeall.sh
echo "***running makeinstall.sh***"
sh ./makeinstall.sh
echo "***running makepackagebin.sh***"
sh ./makepackagebin.sh
rm {bin,ref}/License.txt
rm {doc,ref}/afiles
}
package() {
mkdir -p "${pkgdir}"/usr/bin
install -m755 ${_pkgname}_${_pkgver}/bin/* "${pkgdir}"/usr/bin
mkdir -p "${pkgdir}"/usr/share/${pkgname}/ref
install -m644 ${_pkgname}_${_pkgver}/ref/*.* "${pkgdir}"/usr/share/${pkgname}/ref
install -m644 ${_pkgname}_${_pkgver}/profile/*.sp "${pkgdir}"/usr/share/${pkgname}/ref
install -m644 ${_pkgname}_${_pkgver}/scanin/*.c?? "${pkgdir}"/usr/share/${pkgname}/ref
# Because there is just html documentation we have to move it
mkdir -p "${pkgdir}"/usr/share/${pkgname}/doc/ccmxs
install -m644 ${_pkgname}_${_pkgver}/doc/ccmxs/*.ccmx "${pkgdir}"/usr/share/${pkgname}/doc/ccmxs
install -m644 ${_pkgname}_${_pkgver}/doc/*.* "${pkgdir}"/usr/share/${pkgname}/doc
mkdir -p "${pkgdir}"/usr/lib/udev/rules.d
install -m644 ${_pkgname}_${_pkgver}/usb/55-Argyll.rules "${pkgdir}"/usr/lib/udev/rules.d/55-Argyll.rules
sed -i 's|^IMPORT{program}="usb|#IMPORT{program}="usb|' "${pkgdir}"/usr/lib/udev/rules.d/55-Argyll.rules
cat <<EOF >>"${pkgdir}"/usr/lib/udev/rules.d/55-Argyll.rules
# As mentioned in https://bugzilla.redhat.com/show_bug.cgi?id=859244 and https://bbs.archlinux.org/viewtopic.php?id=155589
# I've commented out the line:
# IMPORT{program}="usb-db %p"
# to prevent the error messages:
# systemd-udevd[242]: failed to execute '/usr/lib/udev/usb-db'...
EOF
}
# vim:set ts=2 sw=2 et:
|