summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a7b1bf3cc9bc5cd0991418d96887314237d3878 (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: nm10923 https://nm10923.xyz/contact
pkgname=sdl3_ttf-git
pkgver=r987.5986e15
pkgrel=1
pkgdesc="Support for TrueType (.ttf) font files with Simple Directmedia Layer (Version 3)"
arch=('x86_64')
url="https://github.com/libsdl-org/SDL_ttf.git"
license=('zlib')
depends=( 'sdl3' 'freetype2' 'harfbuzz' )
source=("git+https://github.com/libsdl-org/SDL_ttf")
sha256sums=('SKIP')
provides=('sdl3_ttf')
conflicts=('sdl3_ttf')

pkgver() {
  cd "${srcdir}/SDL_ttf"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
  cd "${srcdir}/SDL_ttf"
  cmake -B build -D SDLTTF_SAMPLES=OFF -D CMAKE_INSTALL_PREFIX=/usr
  cmake --build build
}

package() {
  cd "${srcdir}/SDL_ttf"
  DESTDIR="${pkgdir}" cmake --install build
}