summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f1109db896300bb330ca5d0cc1e98a62cae6e5fa (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
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: sl1pkn07 <sl1pkn07@gmail.com>
# Contributor: jackoneill <cantabile.desu@gmail.com>

_android_arch=x86

pkgname=android-${_android_arch}-vapoursynth
pkgver=R69
pkgrel=1
arch=('any')
pkgdesc="A video processing framework with simplicity in mind (Android ${_android_arch})"
url='http://www.vapoursynth.com/'
license=('LGPL2.1'
         'custom:OFL')
depends=("android-${_android_arch}-zimg")
makedepends=('android-configure')
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://github.com/vapoursynth/vapoursynth/archive/refs/tags/${pkgver}.tar.gz")
md5sums=('87c61e60a1c3f23796121c635e472638')

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

    ./autogen.sh
}

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

    android-${_android_arch}-configure \
        --enable-vsscript=no \
        --enable-python-module=no \
        --with-cython=no
    sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
    sed -i 's|-Wl,--no-undefined||g' Makefile
    sed -i 's| -no-undefined | |g' Makefile
    make $MAKEFLAGS
}

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