summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5cb33045d38b5f200f7fe813fd8ae526bebb7bd4 (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
54
55
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: G_Syme <demichan@mail.upb.de>

_android_arch=armv7a-eabi

pkgname=android-${_android_arch}-libass
pkgver=0.17.3
pkgrel=1
arch=('any')
pkgdesc="A portable library for SSA/ASS subtitles rendering (Android ${_android_arch})"
url='https://github.com/libass/libass/'
license=('BSD')
groups=('android-libass')
depends=("android-${_android_arch}-fontconfig"
         "android-${_android_arch}-fribidi"
         "android-${_android_arch}-harfbuzz"
         "android-${_android_arch}-freetype2"
         "android-${_android_arch}-libunibreak")
makedepends=('android-configure'
             'nasm')
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://github.com/libass/libass/archive/refs/tags/${pkgver}.tar.gz")
md5sums=('bc419d8ba51f23790eb423e88d3fbe6e')
validpgpkeys=(
    '5458C3100671F252B0F4C7708079D18C21AAAAFF' # Oleg Oshmyan (Chortos-2) <chortos@inbox.lv>
    '5EE63F2A71BF132CFE3567E1DFFE615F2824C720' # Oneric <oneric@oneric.de>
)

prepare() {
    cd "${srcdir}/libass-${pkgver}"
    source android-env ${_android_arch}

    ./autogen.sh
}

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

    android-${_android_arch}-configure \
        --enable-fontconfig \
        --enable-libunibreak
    make $MAKEFLAGS
}

package() {
    cd "${srcdir}/libass-${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
}