summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 81a401adc8052fcfb69a7503be44acee9744835b (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: Karl-Felix Glatzer <karl[dot]glatzer[at]gmx[dot]de>

_android_arch=x86-64

pkgname=android-${_android_arch}-fribidi
pkgver=1.0.16
pkgrel=1
arch=('any')
pkgdesc="A Free Implementation of the Unicode Bidirectional Algorithm (Android ${_android_arch})"
url="http://fribidi.org"
license=('LGPL')
groups=('android-fribidi')
depends=('android-ndk')
makedepends=('android-meson')
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://github.com/fribidi/fribidi/archive/v${pkgver}.tar.gz")
md5sums=('d14d2f2ebf77d7dc7b090aa58cc9f32a')

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

    android-${_android_arch}-meson build \
        -Ddocs=false
    ninja -C build
}

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

    DESTDIR="${pkgdir}" meson install -C build
    rm -r "${pkgdir}/${ANDROID_PREFIX_BIN}"
    ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
    ${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a || true
}