PKGBUILDs/extra/cairo/PKGBUILD

64 lines
1.5 KiB
Bash
Raw Normal View History

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
2018-09-21 18:37:20 +00:00
pkgver=1.15.14
2017-12-22 13:35:16 +00:00
pkgrel=1
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-09-21 18:37:20 +00:00
_commit=d9aaea0c1e1484c632e1a6735c6ecc961c4b032b # tags/1.15.14^0
source=("git+https://gitlab.freedesktop.org/cairo/cairo.git#commit=$_commit")
sha1sums=('SKIP')
2018-03-25 00:43:31 +00:00
pkgver() {
cd $pkgname
git describe --tags | sed 's/-/+/g'
}
2014-09-19 18:52:05 +00:00
2017-09-15 00:53:35 +00:00
prepare() {
2018-03-25 00:43:31 +00:00
cd $pkgname
# 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
NOCONFIGURE=1 ./autogen.sh
2014-09-19 18:52:05 +00:00
}
2017-09-15 00:53:35 +00:00
build() {
2018-03-25 00:43:31 +00:00
cd $pkgname
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 \
--enable-gtk-doc
2018-09-21 18:37:20 +00:00
#--enable-full-testing \
#--enable-test-surfaces
2017-09-15 00:53:35 +00:00
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
2014-09-19 18:52:05 +00:00
}
2018-03-25 00:43:31 +00:00
check() {
cd $pkgname
2018-09-21 18:37:20 +00:00
# many tests in cairo-test-suite hang forever
# xvfb-run make check
2018-03-25 00:43:31 +00:00
}
2014-09-19 18:52:05 +00:00
package() {
2018-03-25 00:43:31 +00:00
cd $pkgname
2014-09-19 18:52:05 +00:00
make DESTDIR="$pkgdir" install
}