summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ff2bbe3286abd0fa0433b13275ea292c4b21a99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Chaiwat Suttipongsakul <cwt114@gmail.com>

_android_arch=aarch64

pkgname=android-${_android_arch}-libthai
pkgver=0.1.29
pkgrel=1
arch=('any')
pkgdesc="Thai language support library (Android ${_android_arch})"
url='https://linux.thai.net/projects/libthai'
license=('LGPL-2.1-or-later')
depends=("android-${_android_arch}-libdatrie")
makedepends=('android-configure')
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://linux.thai.net/pub/thailinux/software/libthai/libthai-$pkgver.tar.xz")
sha256sums=('fc80cc7dcb50e11302b417cebd24f2d30a8b987292e77e003267b9100d0f4bcd')

build() {
    cd "${srcdir}/libthai-${pkgver}"
    source android-env ${_android_arch}

    android-${_android_arch}-configure \
        --disable-doxygen-doc
    make $MAKEFLAGS
}

package() {
    cd "${srcdir}/libthai-${pkgver}"
    source android-env ${_android_arch}

    make DESTDIR="$pkgdir" install
    ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so
    ${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_PREFIX_LIB}/*.a
}