void-packages/srcpkgs/gd/template

48 lines
1.3 KiB
Bash

# Template file for 'gd'
pkgname=gd
version=2.3.3
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="libheif-devel libjpeg-turbo-devel libpng-devel libwebp-devel tiff-devel
fontconfig-devel libXpm-devel"
# There needs to be a font installed for fontconfig/basic test
checkdepends="liberation-fonts-ttf"
short_desc="Graphics library for the dynamic creation of images"
maintainer="Orphaned <orphan@voidlinux.org>"
license="custom:BSD-like"
homepage="http://www.libgd.org/"
changelog="https://raw.githubusercontent.com/libgd/libgd/master/CHANGELOG.md"
distfiles="https://github.com/libgd/libgd/releases/download/gd-${version}/libgd-${version}.tar.xz"
checksum=3fe822ece20796060af63b7c60acb151e5844204d289da0ce08f8fdf131e5a61
make_check=ci-skip # https://github.com/libgd/libgd/issues/745
pre_check() {
# Without this some tests fail
# `tmpdir failed to be used or initialized (/tmp)`
export TMPDIR=/tmp
}
post_install() {
vlicense COPYING
}
gd-devel_package() {
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}
gd-progs_package() {
depends="perl"
short_desc+=" - utilities"
pkg_install() {
vmove usr/bin
}
}