cairo/PKGBUILD

38 lines
1.1 KiB
Bash
Raw 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>
pkgname=cairo
pkgver=1.18.0
2024-04-30 21:40:01 +08:00
pkgrel=2
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')
depends=('fontconfig' 'freetype2' 'glib2' '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)
sha256sums=(SKIP)
build() {
cd ${pkgname}-${pkgver}
2024-04-30 21:40:01 +08:00
meson setup build \
--prefix=/usr \
--buildtype=release \
-Dgtk_doc=true \
-Dspectre=disabled \
-Dsymbol-lookup=disabled \
-Dtests=disabled
2024-04-17 12:06:36 +08:00
meson compile -C build
}
package() {
cd ${pkgname}-${pkgver}
meson install -C build --destdir ${pkgdir}
}