cairo 1.18.2-1

This commit is contained in:
xhaa123 2024-11-02 22:20:15 +08:00
parent 0d5c40815d
commit 1bd2bc2ea8

View File

@ -4,24 +4,37 @@
# then please put 'unknown'.
# Maintainer: Future Linux Team <future_linux@163.com>
pkgname=cairo
pkgver=1.18.0
pkgrel=2
pkgname=(cairo cairo-docs)
pkgbase=cairo
pkgver=1.18.2
pkgrel=1
pkgdesc="2D graphics library with support for multiple output devices"
arch=('x86_64')
url="https://cairographics.org"
license=('LGPL-2.1-only OR MPL-1.1')
depends=('fontconfig' 'freetype2' 'glib2' 'libpng' 'libx11' 'libxcb' 'libxext' 'libxrender' 'lzo' 'pixman' 'zlib')
depends=(
'bash'
'fontconfig'
'freetype2'
'glib2'
'glibc'
'libpng'
'libx11'
'libxcb'
'libxext'
'libxrender'
'lzo'
'pixman'
'zlib')
makedepends=('meson' 'gtk-doc' 'valgrind')
source=(https://www.cairographics.org/releases/${pkgname}-${pkgver}.tar.xz)
sha256sums=(SKIP)
sha256sums=(a62b9bb42425e844cc3d6ddde043ff39dbabedd1542eba57a2eb79f85889d45a)
build() {
cd ${pkgname}-${pkgver}
meson setup build \
--prefix=/usr \
--buildtype=release \
${FUTURE_MESON} \
-Ddwrite=disabled \
-Dgtk_doc=true \
-Dspectre=disabled \
-Dsymbol-lookup=disabled \
@ -30,8 +43,19 @@ build() {
meson compile -C build
}
package() {
package_cairo() {
options+=(!emptydirs)
cd ${pkgname}-${pkgver}
meson install -C build --destdir ${pkgdir}
_pick doc ${pkgdir}/usr/share/gtk-doc
}
package_cairo-docs() {
pkgdesc+=" (documentation)"
depends=()
mv doc/* ${pkgdir}
}