24 lines
641 B
Plaintext
24 lines
641 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
|
|
release=2
|
|
source=(https://github.com/libsdl-org/SDL_ttf/releases/download/release-$version/SDL2_ttf-$version.tar.gz)
|
|
|
|
build() {
|
|
cmake -S SDL2_ttf-$version -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
|
|
}
|