2020-12-02 19:42:55 +00:00
|
|
|
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
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
|
2020-12-02 19:42:55 +00:00
|
|
|
pkgver=1.17.4
|
2020-05-18 14:22:21 +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)
|
2020-12-02 19:42:55 +00:00
|
|
|
depends=(lzo zlib libpng fontconfig freetype2 libx11 libxext libxrender libxcb
|
|
|
|
glib2 pixman)
|
|
|
|
makedepends=(git meson)
|
|
|
|
_commit=156cd3eaaebfd8635517c2baf61fcf3627ff7ec2 # tags/1.17.4^0
|
2020-05-18 14:22:21 +00:00
|
|
|
source=("git+https://gitlab.freedesktop.org/cairo/cairo.git#commit=$_commit")
|
|
|
|
sha256sums=('SKIP')
|
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
|
2014-09-19 18:52:05 +00:00
|
|
|
}
|
|
|
|
|
2017-09-15 00:53:35 +00:00
|
|
|
build() {
|
2020-12-02 19:42:55 +00:00
|
|
|
arch-meson cairo build \
|
|
|
|
-D spectre=disabled \
|
|
|
|
-D tee=enabled \
|
|
|
|
-D tests=disabled
|
|
|
|
meson compile -C build
|
2018-03-25 00:43:31 +00:00
|
|
|
}
|
|
|
|
|
2014-09-19 18:52:05 +00:00
|
|
|
package() {
|
2020-12-02 19:42:55 +00:00
|
|
|
DESTDIR="$pkgdir" meson install -C build
|
2014-09-19 18:52:05 +00:00
|
|
|
}
|