[new package] sdl3-ttf 3.1.0
This commit is contained in:
parent
6548855e85
commit
fd762f2c48
59
mingw-w64-sdl3-ttf/PKGBUILD
Normal file
59
mingw-w64-sdl3-ttf/PKGBUILD
Normal file
@ -0,0 +1,59 @@
|
||||
# Maintainer: Konstantin Podsvirov <konstantin@podsvirov.pro>
|
||||
|
||||
_realname=sdl3-ttf
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname=${MINGW_PACKAGE_PREFIX}-${_realname}
|
||||
pkgver=3.1.0
|
||||
pkgrel=1
|
||||
pkgdesc="A library that allows you to use TrueType fonts in your SDL applications (Version 3) (mingw-w64)"
|
||||
arch=('any')
|
||||
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
||||
url="https://github.com/libsdl-org/SDL_ttf"
|
||||
license=('spdx:Zlib')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-sdl3"
|
||||
"${MINGW_PACKAGE_PREFIX}-freetype")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-cmake"
|
||||
"${MINGW_PACKAGE_PREFIX}-ninja"
|
||||
"${MINGW_PACKAGE_PREFIX}-cc")
|
||||
source=("${url}/releases/download/preview-${pkgver}/SDL3_ttf-${pkgver}.tar.gz"{,.sig})
|
||||
sha256sums=('fab27d078842c458bedcce32afaf17da7d21da7e873d0d8deadd10edc440e96b'
|
||||
'SKIP')
|
||||
validpgpkeys=('1528635D8053A57F77D1E08630A59377A7763BE6') # Sam Lantinga <slouken@libsdl.org>
|
||||
|
||||
build() {
|
||||
declare -a extra_config
|
||||
if check_option "debug" "n"; then
|
||||
extra_config+=("-DCMAKE_BUILD_TYPE=Release")
|
||||
else
|
||||
extra_config+=("-DCMAKE_BUILD_TYPE=Debug")
|
||||
fi
|
||||
extra_config+=("-DSDLTTF_INSTALL=ON")
|
||||
|
||||
MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \
|
||||
cmake \
|
||||
-GNinja \
|
||||
-DCMAKE_INSTALL_PREFIX="${MINGW_PREFIX}" \
|
||||
"${extra_config[@]}" \
|
||||
-DBUILD_SHARED_LIBS=OFF \
|
||||
-S "SDL3_ttf-${pkgver}" \
|
||||
-B "build-${MSYSTEM}-static"
|
||||
|
||||
cmake --build "build-${MSYSTEM}-static"
|
||||
|
||||
MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \
|
||||
cmake \
|
||||
-GNinja \
|
||||
-DCMAKE_INSTALL_PREFIX="${MINGW_PREFIX}" \
|
||||
"${extra_config[@]}" \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-S "SDL3_ttf-${pkgver}" \
|
||||
-B "build-${MSYSTEM}-shared"
|
||||
|
||||
cmake --build "build-${MSYSTEM}-shared"
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="${pkgdir}" cmake --install "build-${MSYSTEM}-static"
|
||||
|
||||
DESTDIR="${pkgdir}" cmake --install "build-${MSYSTEM}-shared"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user