Browse Source

[testing] -> [extra] 'cairo-1.17.4-1' move

master
Dudemanguy 1 year ago
parent
commit
ff471eb3a9
Signed by: Dudemanguy GPG Key ID: 4003D2EF625D6492
  1. 52
      cairo/x86_64/extra/PKGBUILD
  2. 38
      cairo/x86_64/testing/PKGBUILD

52
cairo/x86_64/extra/PKGBUILD

@ -1,17 +1,18 @@
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Brice Carpentier <brice@daknet.org>
pkgname=cairo
pkgver=1.17.2+25+gaee96d175
pkgver=1.17.4
pkgrel=1
pkgdesc="2D graphics library with support for multiple output devices"
url="https://cairographics.org/"
arch=(x86_64)
license=(LGPL MPL)
depends=(libpng libxrender libxext fontconfig pixman glib2 lzo)
makedepends=(librsvg gtk2 poppler-glib libspectre gtk-doc valgrind git)
checkdepends=(ttf-dejavu gsfonts)
_commit=aee96d175d8349945a6d1948a56abd4b4ec6ad84 # master
depends=(lzo zlib libpng fontconfig freetype2 libx11 libxext libxrender libxcb
glib2 pixman)
makedepends=(valgrind git meson)
_commit=156cd3eaaebfd8635517c2baf61fcf3627ff7ec2 # tags/1.17.4^0
source=("git+https://gitlab.freedesktop.org/cairo/cairo.git#commit=$_commit")
sha256sums=('SKIP')
@ -22,45 +23,16 @@ pkgver() {
prepare() {
cd cairo
# 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
# Fix typo
sed -i 's/have_png/use_png/g' configure.ac
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd cairo
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--disable-gl \
--enable-tee \
--enable-svg \
--enable-ps \
--enable-pdf \
--enable-gobject \
--enable-gtk-doc \
--enable-full-testing \
--enable-test-surfaces
sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
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 || :
arch-meson cairo build \
-D spectre=disabled \
-D tee=enabled \
-D tests=disabled
meson compile -C build
}
package() {
cd cairo
make DESTDIR="$pkgdir" install
DESTDIR="$pkgdir" meson install -C build
}

38
cairo/x86_64/testing/PKGBUILD

@ -1,38 +0,0 @@
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Brice Carpentier <brice@daknet.org>
pkgname=cairo
pkgver=1.17.4
pkgrel=1
pkgdesc="2D graphics library with support for multiple output devices"
url="https://cairographics.org/"
arch=(x86_64)
license=(LGPL MPL)
depends=(lzo zlib libpng fontconfig freetype2 libx11 libxext libxrender libxcb
glib2 pixman)
makedepends=(valgrind git meson)
_commit=156cd3eaaebfd8635517c2baf61fcf3627ff7ec2 # tags/1.17.4^0
source=("git+https://gitlab.freedesktop.org/cairo/cairo.git#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd cairo
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd cairo
}
build() {
arch-meson cairo build \
-D spectre=disabled \
-D tee=enabled \
-D tests=disabled
meson compile -C build
}
package() {
DESTDIR="$pkgdir" meson install -C build
}
Loading…
Cancel
Save