archrelease: copy trunk to community-any
[ArchLinux/community.git] / argyllcms / trunk / PKGBUILD
blob8f917b25d77bf6bd871d129c532fe4cbbdcc4675
1 # Maintainer: Bruno Pagani <archange@archlinux.org>
2 # Contributor: Timothy Redaelli <timothy.redaelli@gmail.com>
3 # Contributor: Frank Ickstadt (frank dot ickstadt at gmail dot com)
5 pkgname=argyllcms
6 pkgver=2.3.1
7 pkgrel=3
8 pkgdesc="An ICC compatible color management system with support for different colorimeter hardware"
9 arch=(x86_64)
10 url="https://www.argyllcms.com/"
11 license=(GPL AGPL)
12 depends=(libpng libtiff libxss libxinerama libxxf86vm libxrandr zlib openssl)
13 makedepends=(ftjam zip unzip)
14 source=("https://www.argyllcms.com/Argyll_V${pkgver}_src.zip")
15 sha256sums=('bd0bcf58cec284824b79ff55baa242903ed361e12b1b37e12228679f9754961c')
17 prepare() {
18     cd Argyll_V${pkgver}
19     # Use hwdb builtin, instead of the obsolete usb-db in the udev rules.
20     sed -i 's:^TEST=="/lib/udev/usb-db", IMPORT{program}="usb-db %p":IMPORT{builtin}="hwdb --subsystem=usb":' usb/55-Argyll.rules
22     # Use LDFLAGS
23     echo "LINKFLAGS += ${LDFLAGS} ;" >> Jamtop
26 build() {
27     cd Argyll_V${pkgver}
28     CCOPTFLAG="$CFLAGS"
29     jam -q -fJambase ${MAKEFLAGS} -sPREFIX=/usr -sDESTDIR="${pkgdir}" -sREFSUBDIR=share/argyllcms/ref all
32 package() {
33     cd Argyll_V${pkgver}
34     jam -q -fJambase ${MAKEFLAGS} -sPREFIX=/usr -sDESTDIR="${pkgdir}" -sREFSUBDIR=share/argyllcms/ref install
36     rm "${pkgdir}"/usr/bin/License.txt
38     rm {doc,ref}/afiles
39     install -Dm644 doc/*.* -t "${pkgdir}"/usr/share/${pkgname}/doc/
40     install -Dm644 doc/ccmxs/*.ccmx -t "${pkgdir}"/usr/share/${pkgname}/doc/ccmxs/
42     install -Dm644 usb/55-Argyll.rules -t "${pkgdir}"/usr/lib/udev/rules.d/