summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e8e59030c03a7e06a7c56e5db3d3426bed793d19 (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
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: drakkan <nicola.murino at gmail dot com>

_android_arch=x86

pkgname=android-${_android_arch}-pixman
pkgver=0.44.0
pkgrel=1
arch=('any')
pkgdesc="The pixel-manipulation library for X and cairo (Android ${_android_arch})"
url="http://xorg.freedesktop.org"
license=('custom')
groups=('android-pixman')
depends=('android-ndk')
makedepends=("android-meson"
             "android-${_android_arch}-libpng")
options=(!strip !buildflags staticlibs !emptydirs)
source=("http://xorg.freedesktop.org/releases/individual/lib/pixman-${pkgver}.tar.xz")
md5sums=('cf9628e53e9e5e992997c19908d6031e')

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

    android-${_android_arch}-meson build \
        -D loongson-mmi=disabled \
        -D vmx=disabled \
        -D arm-simd=disabled \
        -D neon=disabled \
        -D a64-neon=disabled \
        -D rvv=disabled \
        -D mips-dspr2=disabled \
        -D b_lto=false \
        -D gtk=disabled \
        -D strip=false \
        -D tests=disabled \
        -D demos=disabled
    ninja -C build
}

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

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