40 lines
1.0 KiB
Bash
40 lines
1.0 KiB
Bash
# Template file for 'gd'
|
|
pkgname=gd
|
|
version=2.3.1
|
|
revision=1
|
|
wrksrc="libgd-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--without-xpm"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libjpeg-turbo-devel libpng-devel libwebp-devel tiff-devel fontconfig-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/"
|
|
distfiles="https://github.com/libgd/libgd/releases/download/gd-${version}/libgd-${version}.tar.xz"
|
|
checksum=9767917d9f818faec4ddd763fe4a4ad9f6322c3d25da290ab2ea3e2ce4b52a7b
|
|
|
|
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
|
|
}
|
|
}
|