contrib/sdl2_ttf/Pkgfile

25 lines
681 B
Plaintext

# Description: TrueType library for libsdl2.
# URL: https://github.com/libsdl-org/SDL_ttf
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: freetype libsdl2
name=sdl2_ttf
version=2.20.2
_commit=3a51231c98ab0ca728bba6eb5f743da5dcfedf5a
release=3
source=(https://github.com/libsdl-org/SDL_ttf/archive/$_commit/$name-$version.tar.gz)
build() {
cmake -S SDL_ttf-$_commit -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS"
ninja -C build -j ${JOBS:-1}
DESTDIR=$PKG ninja -C build install
# delete installed license.txt
rm -rf $PKG/usr/share
}