cairo/PKGBUILD

62 lines
1.4 KiB
Bash
Raw Permalink Normal View History

2024-04-17 12:06:36 +08:00
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Future Linux Team <future_linux@163.com>
2024-11-02 22:20:15 +08:00
pkgname=(cairo cairo-docs)
pkgbase=cairo
pkgver=1.18.2
pkgrel=1
2024-04-17 12:06:36 +08:00
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')
2024-11-02 22:20:15 +08:00
depends=(
'bash'
'fontconfig'
'freetype2'
'glib2'
'glibc'
'libpng'
'libx11'
'libxcb'
'libxext'
'libxrender'
'lzo'
'pixman'
'zlib')
2024-04-30 21:40:01 +08:00
makedepends=('meson' 'gtk-doc' 'valgrind')
2024-04-17 12:06:36 +08:00
source=(https://www.cairographics.org/releases/${pkgname}-${pkgver}.tar.xz)
2024-11-02 22:20:15 +08:00
sha256sums=(a62b9bb42425e844cc3d6ddde043ff39dbabedd1542eba57a2eb79f85889d45a)
2024-04-17 12:06:36 +08:00
build() {
2024-11-02 22:20:15 +08:00
cd ${pkgname}-${pkgver}
2024-04-17 12:06:36 +08:00
2024-11-02 22:20:15 +08:00
${FUTURE_MESON} \
-Ddwrite=disabled \
-Dgtk_doc=true \
-Dspectre=disabled \
-Dsymbol-lookup=disabled \
-Dtests=disabled
2024-04-17 12:06:36 +08:00
2024-11-02 22:20:15 +08:00
meson compile -C build
2024-04-17 12:06:36 +08:00
}
2024-11-02 22:20:15 +08:00
package_cairo() {
options+=(!emptydirs)
2024-04-17 12:06:36 +08:00
2024-11-02 22:20:15 +08:00
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}
2024-04-17 12:06:36 +08:00
}