mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
# $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
|
|
}
|