aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2023-02-07 20:31:46 +0000
committerpsykose <alice@ayaya.dev>2023-02-07 21:31:46 +0100
commiteb182ed931d8b1b6b6fdef9a5955b7b947429730 (patch)
tree5adc74b9075f06b4f8876c3e6b63f100165afcff
parent268b8d1a4e3a1b398b57f7fea90130888fd0f87a (diff)
community/sdl2_ttf: upgrade to 2.20.2
-rw-r--r--community/sdl2_ttf/APKBUILD35
1 files changed, 19 insertions, 16 deletions
diff --git a/community/sdl2_ttf/APKBUILD b/community/sdl2_ttf/APKBUILD
index 87c40da2e83..199c3817625 100644
--- a/community/sdl2_ttf/APKBUILD
+++ b/community/sdl2_ttf/APKBUILD
@@ -1,38 +1,41 @@
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=sdl2_ttf
-pkgver=2.20.1
+pkgver=2.20.2
pkgrel=0
-_pkgname=SDL2_ttf
pkgdesc="A library which allows you to use TrueType fonts in your SDL applications"
url="http://www.libsdl.org/projects/SDL_ttf/"
arch="all"
license="Zlib"
-depends_dev="freetype-dev"
-makedepends="$depends_dev mesa-dev sdl2-dev"
-subpackages="$pkgname-dev"
+makedepends="
+ cmake
+ freetype-dev
+ harfbuzz-dev
+ mesa-dev
+ samurai
+ sdl2-dev
+ "
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://github.com/libsdl-org/SDL_ttf/releases/download/release-$pkgver/SDL2_ttf-$pkgver.tar.gz"
+builddir="$srcdir"/SDL2_ttf-$pkgver
options="!check" # no test suite
-source="https://github.com/libsdl-org/SDL_ttf/releases/download/release-$pkgver/$_pkgname-$pkgver.tar.gz"
-
-builddir="$srcdir"/$_pkgname-$pkgver
# secfixes:
# 2.20.0-r0:
# - CVE-2022-27470
build() {
- ./configure \
- --build=$CBUILD \
- --host=$CHOST \
- --prefix=/usr \
- --enable-static
- make
+ cmake -B build -G Ninja \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DSDL2TTF_HARFBUZZ=ON
+ cmake --build build
}
package() {
- make DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
-5745a318583a771dff30421d79c5940bdb0fe2f8908a0192e98a2a80076722ba53f6488e922de5b49e078f0c7d9d358e681886ebc8862d89ca6671b5be471134 SDL2_ttf-2.20.1.tar.gz
+b54e93b100712e3764cd80d4e4b16cd4c2a6853620f675941a4214320b0ee29a583d57ad56cd5fdb5c7a32d7615cbf43bc3fa55337b01623cee7219ebb43667c SDL2_ttf-2.20.2.tar.gz
"