void-packages/srcpkgs/SDL2_ttf/template

29 lines
831 B
Bash

# Template file for 'SDL2_ttf'
pkgname=SDL2_ttf
version=2.20.0
revision=1
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config"
makedepends="freetype-devel MesaLib-devel SDL2-devel libSM-devel"
short_desc="Use TrueType fonts in your SDL 2.x applications"
maintainer="André Cerqueira <acerqueira021@gmail.com>"
license="MIT"
homepage="https://github.com/libsdl-org/SDL_ttf"
distfiles="${homepage}/releases/download/release-${version}/${pkgname}-${version}.tar.gz"
checksum=874680232b72839555a558b48d71666b562e280f379e673b6f0c7445ea3b9b8a
post_install() {
vlicense LICENSE.txt
}
SDL2_ttf-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
}
}