summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: df7d58fe18afa644765af5df6b1313e548d1ea07 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: pingplug < aur at pingplug dot me >
# Contributor: Schala Zeal < schalaalexiazeal at gmail dot com >

_android_arch=x86-64

pkgname=android-${_android_arch}-fontconfig
pkgver=2.15.0
pkgrel=1
arch=('any')
pkgdesc="A library for configuring and customizing font access (android)"
depends=("android-${_android_arch}-expat"
         "android-${_android_arch}-freetype2")
makedepends=('android-configure'
             'autoconf-archive'
             'gperf'
             'python-lxml'
             'json-c'
             'python-six')
options=(!strip !buildflags staticlibs !emptydirs)
license=('custom')
url="https://www.freedesktop.org/wiki/Software/fontconfig/"
source=("https://gitlab.freedesktop.org/fontconfig/fontconfig/-/archive/${pkgver}/fontconfig-${pkgver}.tar.gz")
sha256sums=('cdebb4b805d33e9bdefcc0ef9743db638d2acb21139bbe1a6a85878d4c3e8c9e')

prepare() {
    cd "${srcdir}/fontconfig-${pkgver}"

    # do not build buggy test code
    sed -i /test\\/Makefile/d configure.ac
    sed -i "s/po-conf test/po-conf/g" Makefile.am
    rm -r test
    NOCONFIGURE=1 ./autogen.sh
}

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

    android-${_android_arch}-configure \
        --disable-docs
    make $MAKEFLAGS
}

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

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