Package Details: cairo-ubuntu 1.16.0-2

Git Clone URL: (read-only)
Package Base: cairo-ubuntu
Description: 2D graphics library with support for multiple output devices (with ubuntu patches)
Upstream URL:
Licenses: MPL, LGPL
Conflicts: cairo
Provides: cairo=1.16.0
Submitter: wonder
Maintainer: el_aur
Last Packager: el_aur
Votes: 327
Popularity: 0.000001
First Submitted: 2008-06-04 11:52
Last Updated: 2019-02-11 16:20

Required by (437)

Sources (5)

Latest Comments

« First ‹ Previous ... 2 3 4 5 6 7 8 9 10 11 12 ... Next › Last »

bohoomil commented on 2013-02-17 12:05

Thank you for the feedback.

Ad. 1) Mesa is not required by cairo -- at best it is an optional dependency. You can disable it by removing '--enable-gl'. (I compile cairo with several features that may not be present in the official package. You can easily adjust the configure section so that it meets you requirements. I presume that you were successfully using Arch without mesa, so you don't really need it now.)
Ad. 2) Didn't I mention that I'm using generic names? :) That's why I don't need to change $pkgname variable.

Anyway, I'm glad that you were able to re-use the files.

Anonymous comment on 2013-02-17 09:11


thanks a lot for your support!!
I tested your PKGBUILD but it don't work; I found two errors:
1) add 'mesa' in the depends list (otherwise you get an opengl error)
2) replace $srcdir/$pkgname-$pkgver with $srcdir/cairo-$pkgver

my working PKGBUILD is:

pkgdesc="Cairo vector graphics library, with Ubuntu's LCD rendering patches"
arch=(i686 x86_64)
license=('LGPL' 'MPL')
depends=('libpng>=1.4.0' 'libxrender' 'fontconfig-ubuntu>=2.8.0' 'libxft' 'pixman>=0.16.6' 'xcb-util>=0.3.6' 'mesa')
provides=("cairo=$pkgver" "cairo-tee=$pkgver")
conflicts=('cairo' 'cairo-cleartype' 'cairo-lcd' 'cairo-tee' 'cairo-xeffects')

'92bb0af20e9438d07a04a586841ac90f' )

build() {
cd $srcdir/cairo-$pkgver

for _f in $(cat $srcdir/debian/patches/series) ; do
patch -Np1 -i $srcdir/debian/patches/$_f

patch -Np1 -i ../cairo-respect-fontconfig.patch
patch -Np1 -i ../cairo-1.12.8-expose_snapshot-1.patch

sed '20 aAM_PROG_AR' -i $srcdir/cairo-$pkgver/

autoreconf -i --force

./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--enable-tee \
--enable-gl \
--enable-egl \
--enable-svg \
--enable-ps \
--enable-pdf \

#check() {
# cd "$srcdir/cairo-$pkgver"
# make -k check || /bin/true # 162 Passed, 328 Failed [8 crashed, 10 expected], 26 Skipped

package() {
cd "$srcdir/cairo-$pkgver"
make DESTDIR="$pkgdir" install

bohoomil commented on 2013-02-16 20:57

I have obviously made a mistake: the version is 1.12.14 of course, not 1.12.4. :)

bohoomil commented on 2013-02-16 20:55

Sure, here you go:

...and the expo patch, just in case you don't have it:

Beware that I'm using generic names (cairo instead of cairo-ubuntu) so you may need to adjust the relevant parts, i.e.


If necessary, run 'makepkg -g >> PKGBUILD' (the expo patch may have a different checksum when copied and pasted).

Anonymous comment on 2013-02-16 15:53

I applied the two lines you suggested
sed '20 aAM_PROG_AR' -i $srcdir/${pkgname}-${pkgver}/
autoreconf -i --force
and got the following error:

sed: not possible to read /home/nunzio/Download/cairo-ubuntu/src/cairo-ubuntu-1.12.14/ File or directory don't exist
==> ERROR: there is an error in build().

please, can you share the full PKGBUILD of 1.12.14 version?

bohoomil commented on 2013-02-14 21:06

Cairo 1.12.14 can be built just fine with the following patches:


Having applied the patches, you may need to add two lines to the PKGBUILD:

sed '20 aAM_PROG_AR' -i $srcdir/${pkgname}-${pkgver}/
autoreconf -i --force

Anonymous comment on 2013-02-13 21:52

the last version of Cairo is 1.12.14
Ubuntu patch already exists

I suppose cairo-1.12.2 is out of date... or not?

valmar commented on 2013-02-12 12:26

Why is this flagged as out of date? Isn't stable ubuntu also at 1.12.2?

valmar commented on 2013-02-12 12:25

Why is this flagged as out of date. Isn't stable ubuntu also at 1.12.2?

Ichigo-Roku commented on 2013-01-12 18:29

In the PKGBUILD you have to replace "autoreconf" by "autoreconf -fi".