summaryrefslogtreecommitdiff
path: root/community/python-lcms/PKGBUILD
blob: 0b406bd65425acb79d01960439735ec3a51ebd4f (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
# $Id: PKGBUILD 66131 2012-02-23 01:40:31Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Connor Behan <connor.behan@gmail.com>

pkgname=python-lcms
pkgver=1.19
_mver=1.19
pkgrel=3
pkgdesc="LittleCMS Python bindings"
arch=(i686 x86_64 'mips64el')
license=('CUSTOM')
depends=('libtiff' 'python2' 'lcms')
url="http://www.littlecms.com"
options=('!libtool')
source=(http://downloads.sourceforge.net/project/lcms/lcms/${_mver}/lcms-$pkgver.tar.gz)
md5sums=('8af94611baf20d9646c7c2c285859818')

build() {
  cd $srcdir/lcms-${_mver}
  ./configure --prefix=/usr --with-python
  make
}
package() {
  cd $srcdir/lcms-${_mver}
  make DESTDIR=$pkgdir install
  install -D -m0644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
  rm -rf $pkgdir/usr/bin \
	 $pkgdir/usr/include \
	 $pkgdir/usr/lib/pkgconfig \
	 $pkgdir/usr/lib/liblcms.* \
	 $pkgdir/usr/share/man/man1/icc2ps.1 \
	 $pkgdir/usr/share/man/man1/icclink.1 \
	 $pkgdir/usr/share/man/man1/jpegicc.1 \
	 $pkgdir/usr/share/man/man1/tifficc.1 \
	 $pkgdir/usr/share/man/man1/wtpt.1
}