Subject: [PATCH 1/2] community/sdl_ttf: new aport

From: Reed Wade <[email-masked]>
Date: Tue, 16 Mar 2021 09:10:49 +0100

Signed-off-by: Reed Wade <[email-masked]>
---
 community/sdl_ttf/APKBUILD | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 community/sdl_ttf/APKBUILD

diff --git a/community/sdl_ttf/APKBUILD b/community/sdl_ttf/APKBUILD
new file mode 100644
index 0000000000..6fee7820a4
--- /dev/null
+++ b/community/sdl_ttf/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Carlo Landmeter
+# Maintainer: Natanael Copa <[email-masked]>
+pkgname=sdl_ttf
+pkgver=2.0.11
+pkgrel=0
+pkgdesc="Use TrueType fonts in your SDL applications"
+url="http://www.libsdl.org/projects/SDL_ttf/"
+arch="all"
+options="!check"  # No test suite.
+license="Zlib"
+makedepends="sdl-dev freetype-dev libsm-dev"
+subpackages="$pkgname-dev"
+source="https://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-$pkgver.tar.gz"
+
+builddir="$srcdir"/SDL_ttf-$pkgver
+prepare() {
+	update_config_sub
+	default_prepare
+}
+
+build() {
+	./configure \
+		--build=$CBUILD \
+		--host=$CHOST \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--mandir=/usr/share/man \
+		--infodir=/usr/share/info
+	make
+}
+
+package() {
+	make DESTDIR="$pkgdir" install
+}
+
+sha512sums="64e04d1cd77e525e0f2413ad928841e5d3d09d551c030fc577b50777116580e430cb272b2aeb6191dfcc464669cf2f7a5a50d10e7c75637a3b1e8c8fca7fc78b  SDL_ttf-2.0.11.tar.gz"
-- 
2.30.2

---

From: Reed Wade <[email-masked]>
Date: Tue, 16 Mar 2021 09:10:50 +0100

Signed-off-by: Reed Wade <[email-masked]>
---
 community/navit/APKBUILD | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 community/navit/APKBUILD

diff --git a/community/navit/APKBUILD b/community/navit/APKBUILD
new file mode 100644
index 0000000000..51fcd4e560
--- /dev/null
+++ b/community/navit/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Stacy Harper <[email-masked]>
+# Maintainer: Stacy Harper <[email-masked]>
+pkgname=navit
+pkgver=0.5.6
+pkgrel=0
+pkgdesc="Turn-by-turn Navigation Software"
+arch=all
+url="https://www.navit-project.org/"
+license="GPL-2.0-only"
+makedepends="sdl-dev qt5-qtbase-dev gpsd-dev imlib2-dev dbus-glib-dev
+	fontconfig-dev zlib-dev libpng-dev qt5-qtdeclarative-dev qt5-qtsvg-dev
+	qt5-qtlocation-dev sdl_ttf-dev sdl_image-dev freeglut-dev gtk+-dev
+	pango-dev atk-dev gdk-pixbuf-dev qt5-qtsensors-dev qt5-qtmultimedia-dev
+	python3-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/navit-gps/navit/archive/v$pkgver.tar.gz"
+subpackages="$pkgname-doc $pkgname-lang"
+
+prepare() {
+	sed -i 's/lib64/lib/' CMakeLists.txt
+	default_prepare
+}
+
+build() {
+	cmake -B build \
+		-DCMAKE_BUILD_TYPE=None \
+		-DCMAKE_INSTALL_PREFIX=/usr
+	cmake --build build
+}
+
+package() {
+	DESTDIR="$pkgdir" cmake --build build --target install
+}
+
+sha512sums="63f6971a3fd88ab3f44ec18dfdff2ef7f5bdda898ee54501adcb0e2b3aea54895bbc89a192628f708722a96f4727db68a1d44eb4d71061d1ee560191b197929b  navit-0.5.6.tar.gz"
-- 
2.30.2