diff --git a/srcpkgs/libthai-devel b/srcpkgs/libthai-devel new file mode 120000 index 0000000000..5b5bced1ea --- /dev/null +++ b/srcpkgs/libthai-devel @@ -0,0 +1 @@ +libthai \ No newline at end of file diff --git a/srcpkgs/libthai/template b/srcpkgs/libthai/template new file mode 100644 index 0000000000..4828c25987 --- /dev/null +++ b/srcpkgs/libthai/template @@ -0,0 +1,29 @@ +# Template file for 'libthai' +pkgname=libthai +version=0.1.26 +revision=1 +build_style=gnu-configure +hostmakedepends="pkg-config" +makedepends="libdatrie-devel" +short_desc="Thai language support routines" +maintainer="newbluemoon " +license="LGPL-2.1" +homepage="https://linux.thai.net/projects/libthai" +distfiles="ftp://linux.thai.net/pub/ThaiLinux/software/${pkgname}/${pkgname}-${version}.tar.xz" +checksum=8710112c836b272db1740a9ea3e6c7ebb65b64eee0e143fc2b2c60f99f6bfe2a + +# the ‘trietool’ binary is used to create the dictionary +if [ -n "$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" + } +}