void-packages/srcpkgs/SDL2_ttf/template

29 lines
883 B
Bash

# Template file for 'SDL2_ttf'
pkgname=SDL2_ttf
version=2.20.2
revision=1
build_style=cmake
configure_args="-DSDL2TTF_HARFBUZZ=ON"
makedepends="SDL2-devel freetype-devel harfbuzz-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"
changelog="https://github.com/libsdl-org/SDL_ttf/raw/SDL2/CHANGES.txt"
distfiles="https://github.com/libsdl-org/SDL_ttf/releases/download/release-${version}/SDL2_ttf-${version}.tar.gz"
checksum=9dc71ed93487521b107a2c4a9ca6bf43fb62f6bddd5c26b055e6b91418a22053
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
}
}