core/sdl2_ttf/PKGBUILD

31 lines
959 B
Bash
Raw Normal View History

2013-09-29 23:05:28 +08:00
pkgname=sdl2_ttf
2016-06-21 04:50:55 +08:00
pkgver=2.0.14
pkgrel=1
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')
source=("http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-${pkgver}.tar.gz"
"FindSDL2_ttf.cmake")
2016-06-21 04:50:55 +08:00
sha256sums=('34db5e20bcf64e7071fe9ae25acaa7d72bdc4f11ab3ce59acc768ab62fe39276'
2013-09-29 23:05:28 +08:00
'457852758f2009caf337afe4f1068375e5a661cece4808acb465a10fd6952046')
build() {
cd "${srcdir}/SDL2_ttf-${pkgver}/"
./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
}