PKGBUILDs/community/python-lcms/PKGBUILD

42 lines
1.1 KiB
Bash
Raw Normal View History

2009-10-10 02:15:33 +00:00
# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Connor Behan <connor.behan@gmail.com>
pkgname=python-lcms
pkgver=1.17
pkgrel=4
pkgdesc="LittleCMS Python bindings"
arch=(i686 x86_64)
license=('CUSTOM')
depends=('libtiff' 'python' 'lcms')
url="http://www.littlecms.com"
options=('!libtool')
source=(http://littlecms.com/lcms-${pkgver}.tar.gz)
md5sums=('07bdbb4cfb05d21caa58fe3d1c84ddc1')
build() {
cd ${startdir}/src/lcms-${pkgver}
patch -p0 python/lcms_wrap.cxx <<EOF
2917c2917
< char *cstr; int len;
---
> char *cstr; Py_ssize_t len;
EOF
./configure --prefix=/usr --with-python
make || return 1
make DESTDIR=${startdir}/pkg install || return 1
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
}