core/sdl2_ttf/PKGBUILD

33 lines
993 B
Bash
Raw Normal View History

2013-09-29 23:05:28 +08:00
pkgname=sdl2_ttf
pkgver=2.0.12
2015-10-07 19:56:04 +08:00
pkgrel=3
2013-09-29 23:05:28 +08:00
pkgdesc="A library that allows you to use TrueType fonts in your SDL applications (Version 2)"
2015-10-07 19:56:04 +08:00
arch=('x86_64')
2013-09-29 23:05:28 +08:00
url="http://www.libsdl.org"
license=('MIT')
depends=('sdl2' 'freetype2')
makedepends=('cmake')
options=(!libtool)
source=("http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-${pkgver}.tar.gz"
"FindSDL2_ttf.cmake")
sha256sums=('8728605443ea1cca5cad501dc34dc0cb15135d1e575551da6d151d213d356f6e'
'457852758f2009caf337afe4f1068375e5a661cece4808acb465a10fd6952046')
build() {
cd "${srcdir}/SDL2_ttf-${pkgver}/"
./autogen.sh
./configure --disable-static --prefix=/usr
make
}
package() {
cd "${srcdir}/SDL2_ttf-${pkgver}/"
make DESTDIR="${pkgdir}/" install
install -Dm644 COPYING.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# we can remove the following when provided directly by cmake
2015-10-07 19:56:04 +08:00
install -Dm644 $srcdir/FindSDL2_ttf.cmake ${pkgdir}/usr/share/cmake-3.0/Modules/FindSDL2_ttf.cmake
2013-09-29 23:05:28 +08:00
}