[arch-commits] Commit in lib32-libthai/trunk (PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Sat Nov 17 16:14:30 UTC 2018


    Date: Saturday, November 17, 2018 @ 16:14:29
  Author: alucryd
Revision: 408567

upgpkg: lib32-libthai 0.1.28-1

Modified:
  lib32-libthai/trunk/PKGBUILD

----------+
 PKGBUILD |   23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-17 16:07:57 UTC (rev 408566)
+++ PKGBUILD	2018-11-17 16:14:29 UTC (rev 408567)
@@ -3,7 +3,7 @@
 # Contributor: Chaiwat Suttipongsakul <cwt114 at gmail.com>
 
 pkgname=lib32-libthai
-pkgver=0.1.27
+pkgver=0.1.28
 pkgrel=1
 pkgdesc='Thai language support routines'
 url='https://linux.thai.net/projects/libthai'
@@ -10,12 +10,18 @@
 arch=('x86_64')
 license=('LGPL')
 depends=('lib32-libdatrie')
-makedepends=('gcc-multilib')
-source=("https://linux.thai.net/pub/thailinux/software/libthai/libthai-${pkgver}.tar.xz")
-sha256sums=('1659fa1b7b1d6562102d7feb8c8c3fd94bb2dc5761ed7dbaae4f300e1c03eff6')
+makedepends=('autoconf-archive' 'git')
+source=("git+https://github.com/tlwg/libthai.git#tag=v${pkgver}")
+sha256sums=('SKIP')
 
+prepare() {
+  cd libthai
+
+  ./autogen.sh
+}
+
 build() {
-  cd libthai-${pkgver}
+  cd libthai
 
   export CC='gcc -m32'
   export CXX='g++ -m32'
@@ -24,14 +30,13 @@
   ./configure \
     --prefix='/usr' \
     --libdir='/usr/lib32' \
-    --disable-static
+    --disable-static \
+    --disable-doxygen-doc
   make
 }
 
 package() {
-  cd libthai-${pkgver}
-
-  make DESTDIR="${pkgdir}" install
+  make DESTDIR="${pkgdir}" -C libthai install
   rm -rf "${pkgdir}"/usr/{include,share}
 }
 


More information about the arch-commits mailing list