2012-11-01 05:46:58 +08:00
|
|
|
# maintainer abveritas@chakra-project.org
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
pkgname=cairo
|
2017-10-23 06:10:01 +08:00
|
|
|
pkgver=1.14.10
|
2015-12-11 12:38:43 +08:00
|
|
|
pkgrel=1
|
|
|
|
_ubuntu_diff_version=${pkgver}-1
|
2010-03-14 23:48:48 +08:00
|
|
|
pkgdesc="Cairo vector graphics library"
|
2012-11-01 05:46:58 +08:00
|
|
|
arch=('x86_64')
|
2010-03-14 23:48:48 +08:00
|
|
|
license=('LGPL' 'MPL')
|
|
|
|
url="http://cairographics.org/"
|
2017-10-23 06:10:01 +08:00
|
|
|
depends=('libpng' 'libxrender' 'libxext' 'fontconfig' 'pixman' 'glib2' 'sh' 'mesa>=9.0' 'libgl' 'lzo2')
|
2013-07-28 00:51:03 +08:00
|
|
|
makedepends=('librsvg' 'poppler-glib' 'libspectre' 'valgrind' 'ttf-dejavu' 'gsfonts' 'xorg-server')
|
|
|
|
source=("http://cairographics.org/releases/${pkgname}-${pkgver}.tar.xz"
|
2017-10-23 06:10:01 +08:00
|
|
|
"http://archive.ubuntu.com/ubuntu/pool/main/c/cairo/cairo_${_ubuntu_diff_version}ubuntu1.debian.tar.xz")
|
|
|
|
sha1sums=('28c59d85d6b790c21b8b59ece73a6a1dda28d69a'
|
|
|
|
'89429dcce2a2efe930361b98f6d8210b885bba93')
|
2013-07-28 00:51:03 +08:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2013-10-28 18:09:45 +08:00
|
|
|
|
|
|
|
# apply ubuntu patches
|
|
|
|
for _f in $(cat "$srcdir/debian/patches/series" | grep -v '#') ; do
|
|
|
|
patch -Np1 -i "$srcdir/debian/patches/$_f"
|
|
|
|
done
|
2013-07-28 00:51:03 +08:00
|
|
|
|
2014-07-04 02:54:55 +08:00
|
|
|
autoreconf -vfi
|
2013-07-28 00:51:03 +08:00
|
|
|
}
|
|
|
|
|
2010-03-14 23:48:48 +08:00
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2012-11-01 05:46:58 +08:00
|
|
|
|
2014-07-04 02:54:55 +08:00
|
|
|
# --enable-qt? interesting feature, but still experimental (2014)
|
2012-11-01 05:46:58 +08:00
|
|
|
./configure --prefix=/usr \
|
2013-10-28 18:09:45 +08:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--disable-static \
|
|
|
|
--enable-tee \
|
|
|
|
--enable-gl \
|
|
|
|
--enable-egl \
|
|
|
|
--enable-svg \
|
|
|
|
--enable-ps \
|
|
|
|
--enable-pdf \
|
|
|
|
--enable-gobject
|
2011-01-08 09:08:14 +08:00
|
|
|
make
|
2012-11-01 05:46:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
make DESTDIR="$pkgdir" install
|
2010-03-14 23:48:48 +08:00
|
|
|
}
|