summaryrefslogtreecommitdiffstats
path: root/arch/tde-deps/lcms/PKGBUILD
blob: fdd0ea5521a71b162bdc0eb0cae0a6080a7b0cea (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
58
59
# Maintainer: Tobias Kieslich <neri@archlinux.org>
# Contributor: Ben <contrasutra@myrealbox.com>

pkgbase=lcms
pkgname=(lcms)
pkgver=1.19
pkgrel=7.1
pkgdesc='Lightweight color management development library/engine'
arch=('x86_64' 'i686' 'aarch64' 'armv7h')
license=('custom')
depends=('libtiff')
#makedepends=('python2')
url='http://www.littlecms.com'
source=("https://downloads.sourceforge.net/sourceforge/${pkgbase}/${pkgbase}-${pkgver}.tar.gz"
        'cve-2013-4276.patch')
sha256sums=('80ae32cb9f568af4dc7ee4d3c05a4c31fc513fc3e31730fed0ce7378237273a9'
            'cd10cc5ce791ae782b1257e6181a71cbdb685b705779c9ef2ceffc7fb2021bd0')

prepare() {
  cd "${srcdir}/${pkgbase}-${pkgver}"

  patch -Np1 -i ../cve-2013-4276.patch

  cp -a /usr/share/libtool/build-aux/config.guess .
  cp -a /usr/share/libtool/build-aux/config.sub .
}

build() {
  cd "${srcdir}/${pkgbase}-${pkgver}"

  ./configure \
    --prefix=/usr \
    --without-python
  make
  #make -C python
}

package_lcms() {
  cd "${srcdir}/${pkgbase}-${pkgver}"

  make DESTDIR="${pkgdir}" install
  install -D -m0644 COPYING \
    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

  rm -rf "${pkgdir}/usr/lib/python2.7/"
}

#package_python2-lcms() {
#  pkgdesc='LittleCMS Python bindings'
#  depends=('lcms')
#
#  cd "${srcdir}/${pkgbase}-${pkgver}"
#
#  make DESTDIR="${pkgdir}" install
#  install -D -m0644 COPYING \
#    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
#
#  rm -rf "${pkgdir}/usr/"{bin,include,lib/{pkgconfig,liblcms.*},share/man}
#}