2014-09-19 18:52:05 +00:00
|
|
|
# Maintainer: Jan de Groot <jgc@archlinux.org>
|
|
|
|
# Contributor: Brice Carpentier <brice@daknet.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - drop valgrind makedepend
|
|
|
|
|
|
|
|
pkgname=cairo
|
2019-08-03 13:50:12 +00:00
|
|
|
pkgver=1.17.2+17+g52a7c79fd
|
2019-10-05 21:19:34 +00:00
|
|
|
pkgrel=2
|
2017-09-15 00:53:35 +00:00
|
|
|
pkgdesc="2D graphics library with support for multiple output devices"
|
|
|
|
url="https://cairographics.org/"
|
2017-12-22 13:35:16 +00:00
|
|
|
arch=(x86_64)
|
2018-03-25 00:43:31 +00:00
|
|
|
license=(LGPL MPL)
|
|
|
|
depends=(libpng libxrender libxext fontconfig pixman glib2 lzo)
|
|
|
|
makedepends=(librsvg gtk2 poppler-glib libspectre gtk-doc git)
|
2018-10-20 22:02:42 +00:00
|
|
|
checkdepends=(ttf-dejavu gsfonts)
|
2019-08-03 13:50:12 +00:00
|
|
|
_commit=52a7c79fd4ff96bb5fac175f0199819b0f8c18fc # master
|
2019-10-05 21:19:34 +00:00
|
|
|
source=("git+https://gitlab.freedesktop.org/cairo/cairo.git#commit=$_commit"
|
|
|
|
0001-image-compositor-Remove-the-right-glyph-from-pixman-.patch)
|
|
|
|
sha256sums=('SKIP'
|
|
|
|
'262bf1cebc04eaae93dbfab56045ad800b3b027be303ca2611375645108f171f')
|
2018-03-25 00:43:31 +00:00
|
|
|
|
|
|
|
pkgver() {
|
2018-10-20 22:02:42 +00:00
|
|
|
cd cairo
|
2018-03-25 00:43:31 +00:00
|
|
|
git describe --tags | sed 's/-/+/g'
|
|
|
|
}
|
2014-09-19 18:52:05 +00:00
|
|
|
|
2017-09-15 00:53:35 +00:00
|
|
|
prepare() {
|
2018-10-20 22:02:42 +00:00
|
|
|
cd cairo
|
2018-03-25 00:43:31 +00:00
|
|
|
|
2019-10-05 21:19:34 +00:00
|
|
|
# https://bugs.archlinux.org/task/63856
|
|
|
|
patch -Np1 -i ../0001-image-compositor-Remove-the-right-glyph-from-pixman-.patch
|
|
|
|
|
2018-03-25 00:43:31 +00:00
|
|
|
# Update gtk-doc
|
|
|
|
cp /usr/share/aclocal/gtk-doc.m4 build/aclocal.gtk-doc.m4
|
|
|
|
cp /usr/share/gtk-doc/data/gtk-doc.make build/Makefile.am.gtk-doc
|
|
|
|
|
2019-08-03 13:50:12 +00:00
|
|
|
# Fix typo
|
|
|
|
sed -i 's/have_png/use_png/g' configure.ac
|
|
|
|
|
2018-03-25 00:43:31 +00:00
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
2014-09-19 18:52:05 +00:00
|
|
|
}
|
|
|
|
|
2017-09-15 00:53:35 +00:00
|
|
|
build() {
|
2018-10-20 22:02:42 +00:00
|
|
|
cd cairo
|
2017-09-15 00:53:35 +00:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--disable-static \
|
|
|
|
--disable-gl \
|
|
|
|
--enable-tee \
|
|
|
|
--enable-svg \
|
|
|
|
--enable-ps \
|
|
|
|
--enable-pdf \
|
|
|
|
--enable-gobject \
|
2018-10-20 22:02:42 +00:00
|
|
|
--enable-gtk-doc \
|
|
|
|
--enable-full-testing \
|
|
|
|
--enable-test-surfaces
|
2019-08-03 13:50:12 +00:00
|
|
|
sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
2017-09-15 00:53:35 +00:00
|
|
|
make
|
2014-09-19 18:52:05 +00:00
|
|
|
}
|
|
|
|
|
2018-03-25 00:43:31 +00:00
|
|
|
check() {
|
2018-10-20 22:02:42 +00:00
|
|
|
cd cairo
|
|
|
|
# FIXME: tests don't pass
|
|
|
|
env CAIRO_TEST_TARGET=image \
|
|
|
|
CAIRO_TEST_TARGET_FORMAT=rgba \
|
|
|
|
CAIRO_TESTS='!pthread-show-text' make -k check || :
|
2018-03-25 00:43:31 +00:00
|
|
|
}
|
|
|
|
|
2014-09-19 18:52:05 +00:00
|
|
|
package() {
|
2018-10-20 22:02:42 +00:00
|
|
|
cd cairo
|
2014-09-19 18:52:05 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
}
|