summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c9cc0b7b9750fbab261974f406ed13a6bebd7db4 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer:  Vincent Grande <shoober420@gmail.com>
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>

pkgname=sdl2_ttf-git
pkgver=2.0.15
pkgrel=1
pkgdesc="A library that allows you to use TrueType fonts in your SDL applications (Version 2)"
arch=('x86_64')
url="http://www.libsdl.org/projects/SDL_ttf"
license=('MIT')
depends=('sdl2' 'freetype2')
makedepends=('cmake' 'git')
provides=(sdl2_ttf)
conflicts=(sdl2_ttf)
source=(git+https://github.com/libsdl-org/SDL_ttf)
sha512sums=('SKIP')

pkgver() {
  cd SDL_ttf
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}


prepare() {
  cd SDL_ttf

  touch NEWS README AUTHORS ChangeLog
  autoreconf -vi
}

build() {
  cd SDL_ttf

  ./configure --disable-static --prefix=/usr
  make
}

package() {
  cd SDL_ttf

  make DESTDIR="${pkgdir}/" install
#  install -Dm644 COPYING.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}