mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-10 00:57:17 +08:00
37 lines
999 B
Bash
37 lines
999 B
Bash
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer: Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
_pkgbasename=sdl2_ttf
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=2.0.12
|
|
pkgrel=2
|
|
pkgdesc="A library that allows you to use TrueType fonts in your SDL applications (Version 2, 32-bit)"
|
|
arch=('x86_64')
|
|
url="http://www.libsdl.org"
|
|
license=('MIT')
|
|
depends=('lib32-sdl2' 'lib32-freetype2' $_pkgbasename=$pkgver)
|
|
makedepends=('cmake' 'gcc-multilib')
|
|
options=(!libtool)
|
|
source=("http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-${pkgver}.tar.gz")
|
|
sha256sums=('8728605443ea1cca5cad501dc34dc0cb15135d1e575551da6d151d213d356f6e')
|
|
|
|
build() {
|
|
cd "${srcdir}/SDL2_ttf-${pkgver}/"
|
|
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
./autogen.sh
|
|
./configure --disable-static --prefix=/usr --libdir=/usr/lib32
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/SDL2_ttf-${pkgver}/"
|
|
make DESTDIR="${pkgdir}/" install
|
|
rm -rf "${pkgdir}"/usr/{include,share,bin}
|
|
}
|
|
|