diff --git a/PKGBUILD b/PKGBUILD index 2b16b3c..a55a062 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,34 +4,58 @@ # then please put 'unknown'. # Maintainer: Future Linux Team -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} + cd ${pkgname}-${pkgver} - meson setup build \ - --prefix=/usr \ - --buildtype=release \ - -Dgtk_doc=true \ - -Dspectre=disabled \ - -Dsymbol-lookup=disabled \ - -Dtests=disabled + ${FUTURE_MESON} \ + -Ddwrite=disabled \ + -Dgtk_doc=true \ + -Dspectre=disabled \ + -Dsymbol-lookup=disabled \ + -Dtests=disabled - meson compile -C build + meson compile -C build } -package() { - cd ${pkgname}-${pkgver} +package_cairo() { + options+=(!emptydirs) - meson install -C build --destdir ${pkgdir} + 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} }