summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 692147795d4edc649a3e9bd0b5e27da170298b89 (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
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Karl-Felix Glatzer <karl[dot]glatzer[at]gmx[dot]de>

_android_arch=aarch64

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

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
}