2022-04-05 21:50:39 +02:00
|
|
|
#!/usr/bin/bash
|
|
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
|
|
# Website : https://pozol.eu
|
|
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
|
|
|
|
pkgname=cairo
|
2023-09-24 13:50:36 +02:00
|
|
|
pkgver=1.18.0
|
2024-01-24 19:36:38 +01:00
|
|
|
pkgrel=02
|
2022-04-05 21:50:39 +02:00
|
|
|
pkgdesc="2D graphics library with support for multiple output devices"
|
|
|
|
url="https://cairographics.org/"
|
|
|
|
depends=(lzo zlib libpng fontconfig freetype2 libx11 libxext libxrender libxcb
|
|
|
|
glib2 pixman)
|
|
|
|
makedepends=(valgrind git meson gtk-doc)
|
|
|
|
#options=(debug) # uncomment this to have the debug package produced
|
2023-09-24 13:50:36 +02:00
|
|
|
_commit=3909090108bb2db55330e3eb148aebe664735363 # tags/1.18.0^0
|
2023-02-03 02:49:31 +01:00
|
|
|
source=("git+https://gitlab.freedesktop.org/cairo/cairo.git#commit=$_commit")
|
2022-04-05 21:50:39 +02:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd cairo
|
|
|
|
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd cairo
|
|
|
|
|
2023-02-03 02:49:31 +01:00
|
|
|
# # FS#74354
|
|
|
|
# patch -Np1 -i ../0001-Fix-type1-subset-indexing.patch
|
2023-09-24 13:50:36 +02:00
|
|
|
# # https://bugs.archlinux.org/task/77432
|
|
|
|
# # https://gitlab.freedesktop.org/cairo/cairo/-/issues/639
|
|
|
|
# git revert -n 47a21c6e30eef91db503a5a183d5c8cf558aaa56
|
|
|
|
# this was used on 1.17.2
|
2022-04-05 21:50:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2023-02-03 02:49:31 +01:00
|
|
|
local meson_options=(
|
|
|
|
-D dwrite=disabled
|
2022-04-05 21:50:39 +02:00
|
|
|
-D gtk_doc=true
|
2023-02-03 02:49:31 +01:00
|
|
|
-D spectre=disabled
|
|
|
|
-D symbol-lookup=disabled
|
|
|
|
-D tests=disabled
|
|
|
|
)
|
|
|
|
|
|
|
|
arch-meson cairo build "${meson_options[@]}"
|
2022-04-05 21:50:39 +02:00
|
|
|
meson compile -C build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-01-24 19:36:38 +01:00
|
|
|
provides=(
|
|
|
|
libcairo-gobject.so
|
|
|
|
libcairo-script-interpreter.so
|
|
|
|
libcairo.so
|
|
|
|
)
|
2022-04-05 21:50:39 +02:00
|
|
|
meson install -C build --destdir "$pkgdir"
|
2024-01-24 19:36:38 +01:00
|
|
|
|
|
|
|
mkdir -p doc/usr/share
|
|
|
|
rm -rf {"$pkgdir",doc}/usr/share/gtk-doc
|
|
|
|
|
2022-04-05 21:50:39 +02:00
|
|
|
}
|
|
|
|
|
2024-01-24 19:36:38 +01:00
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
|
|
|
|
arch=(x86_64)
|
2022-04-05 21:50:39 +02:00
|
|
|
|
|
|
|
license=(LGPL MPL)
|
|
|
|
|
2023-02-03 02:49:31 +01:00
|
|
|
sha256sums=(SKIP)
|
|
|
|
|
2024-01-24 19:36:38 +01:00
|
|
|
## 55af0ee168c79748cab5ae5ace6a9054a8e47341a2f57df6df86ea6259f974f2 cairo-1.18.0-02-x86_64.pkg.tar.lz
|
2023-02-03 02:49:31 +01:00
|
|
|
|