void-packages/srcpkgs/ftgl/template
2021-06-21 18:10:56 +02:00

32 lines
953 B
Bash

# Template file for 'ftgl'
pkgname=ftgl
version=2.1.3rc5
revision=8
_distver="${version%rc*}"
_distrcver="rc${version#*rc}"
wrksrc="ftgl-${_distver}~${_distrcver}"
build_style=gnu-configure
configure_args="--disable-static FT2_CONFIG=${XBPS_CROSS_BASE}/usr/bin/freetype-config"
hostmakedepends="pkg-config"
makedepends="freetype-devel zlib-devel glu-devel"
short_desc="OpenGL library to use arbitrary fonts"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT-advertising"
homepage="https://sourceforge.net/projects/ftgl/"
distfiles="${SOURCEFORGE_SITE}/ftgl/ftgl-${_distver}-${_distrcver}.tar.bz2"
checksum=521ff7bd62c459ff5372e269c223e2a6107a6a99a36afdc2ae634a973af70c59
post_install() {
vlicense COPYING
}
ftgl-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/doc
}
}