void-packages/srcpkgs/libthai/template
2021-12-25 23:41:39 -03:00

30 lines
934 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Template file for 'libthai'
pkgname=libthai
version=0.1.29
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="libdatrie-devel"
short_desc="Thai language support routines"
maintainer="newbluemoon <blaumolch@mailbox.org>"
license="LGPL-2.1-or-later"
homepage="https://linux.thai.net/projects/libthai"
changelog="https://raw.githubusercontent.com/tlwg/libthai/master/ChangeLog"
distfiles="http://linux.thai.net/pub/ThaiLinux/software/libthai/libthai-${version}.tar.xz"
checksum=fc80cc7dcb50e11302b417cebd24f2d30a8b987292e77e003267b9100d0f4bcd
# the trietool binary is used to create the dictionary
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" libdatrie"
fi
libthai-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision} libdatrie-devel"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}