void-packages/srcpkgs/pixman/template
2021-11-07 20:12:05 +01:00

34 lines
1.1 KiB
Bash

# Template file for 'pixman'
pkgname=pixman
version=0.40.0
revision=1
build_style=meson
# gtk is only necessary for demos, disabled to avoid dependency loop
# openmp is only used in demos and tests, and things still test without it
configure_args="-Dtests=enabled -Dgnu-inline-asm=enabled -Dlibpng=enabled
-Diwmmxt=disabled -Dopenmp=disabled -Dgtk=disabled"
hostmakedepends="pkg-config perl"
makedepends="libpng-devel"
short_desc="Library of low-level pixel manipulation routines"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="MIT"
homepage="http://pixman.org/"
distfiles="https://www.cairographics.org/releases/${pkgname}-${version}.tar.gz"
checksum=6d200dec3740d9ec4ec8d1180e25779c00bc749f94278c8b9021f5534db223fc
# set stacksize for musl: https://gitlab.gnome.org/GNOME/librsvg/-/issues/595
LDFLAGS="-Wl,-z,stack-size=2097152"
post_install() {
vlicense COPYING LICENSE
}
pixman-devel_package() {
depends="pixman>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}