summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 899a9b84e0df7876aea98da1ace827510303d51e (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
# Maintainer: Sebastien MacDougall-Landry

pkgname=sdl2_fontcache
pkgver=1
pkgrel=1
pkgdesc='A generic font caching library'
url='https://github.com/grimfang4/SDL_FontCache'
source=("git+https://github.com/grimfang4/SDL_FontCache.git")
arch=('x86_64')
license=('MIT')
depends=('sdl2_ttf')
sha256sums=('SKIP')

build () {
  cd SDL_FontCache
  sed -i 's|"SDL.h"|<SDL2/SDL.h>|g' SDL_FontCache.h
  sed -i 's|"SDL_ttf.h"|<SDL2/SDL_ttf.h>|g' SDL_FontCache.h
  gcc -O3 -fPIC -shared SDL_FontCache.c -l SDL2 -l SDL2_ttf -o libSDL2_FontCache.so
}

package () {
  cd SDL_FontCache
  install -Dm755 libSDL2_FontCache.so -t "$pkgdir/usr/lib"
  install -Dm644 SDL_FontCache.h -t "$pkgdir/usr/include/SDL2"
}