Name libthai
Description Thai language library
Version 0.1.29-r1
Package Base libthai
Homepage https://github.com/tlwg/libthai
Maintainers ['Celeste <cielesti@protonmail.com>']
Contributors ['Alex Yam <alex@alexyam.com>']
Distro-repo https://gitlab.alpinelinux.org/alpine/aports/-/tree/3.22-stable/community/libthai
Sources ['https://github.com/tlwg/libthai/releases/download/v0.1.29-r1/libthai-0.1.29-r1.tar.xz']
Dependencies ['libc.musl-x86_64.so.1', 'libdatrie.so.1']
Optional-Dependencies []
Build-Dependencies ['doxygen', 'libdatrie', 'libdatrie-dev']
Provides ['so:libthai.so.0=0.3.1']
Builddate 16-10-2024 18:20:45
Architecture x86_64
Distro-Version v3.22
Licenses ['LGPL-2.1-or-later']
Hash Q1vrkymjV2jp+2lQj3gw9BT7x4yNA=
# Contributor: Alex Yam <alex@alexyam.com>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=libthai
pkgver=0.1.29
pkgrel=1
pkgdesc="Thai language library"
url="https://github.com/tlwg/libthai"
arch="all"
license="LGPL-2.1-or-later"
makedepends="doxygen libdatrie libdatrie-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/tlwg/libthai/releases/download/v$pkgver/libthai-$pkgver.tar.xz"

prepare() {
	default_prepare
	# update config.sub to recognize loongarch64-alpine-linux-musl
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
0ba1261581a1705a2a2546a3071acb3c63892dbf111f0dad415667165a6b9542a5e4549061c67b11ec53de7c9e70fceb3c04d794fd12a22d991a539dbacebda1  libthai-0.1.29.tar.xz
"