blob: 20874d1f39eb702a69ab67c51b4a2321e5a46133 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Maintainer: Dario Cvitanović <dario.cvitanovic04@gmail.com>
pkgname=sdl3_ttf
pkgver=3.2.0
pkgrel=1
pkgdesc="Support for TrueType (.ttf) font files with Simple Directmedia Layer"
arch=('x86_64')
url="https://github.com/libsdl-org/SDL_ttf"
license=('0BSD')
depends=('sdl3' 'freetype2' 'harfbuzz')
makedepends=('cmake')
conflicts=('sdl3_ttf-git')
source=("https://github.com/libsdl-org/SDL_ttf/releases/download/release-${pkgver}/SDL3_ttf-${pkgver}.tar.gz")
sha256sums=('9a741defb7c7d6dff658d402cb1cc46c1409a20df00949e1572eb9043102eb62')
build() {
cmake -B build -S "SDL3_ttf-${pkgver}" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DSDLTTF_PLUTOSVG=OFF \
-DSDLTTF_SAMPLES=OFF \
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 "SDL3_ttf-${pkgver}/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|