mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
58 lines
1.3 KiB
Bash
58 lines
1.3 KiB
Bash
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
|
|
# Contributor: Ionut Biru <ibiru@archlinux.org>
|
|
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - patch to fix building
|
|
# - disable neon and neon-asm
|
|
|
|
pkgname=libvpx
|
|
pkgver=1.8.0
|
|
pkgrel=1
|
|
pkgdesc='VP8 and VP9 codec'
|
|
arch=(x86_64)
|
|
url=http://www.webmproject.org/
|
|
license=(BSD)
|
|
makedepends=(
|
|
git
|
|
nasm
|
|
)
|
|
provides=(libvpx.so)
|
|
source=(git+https://chromium.googlesource.com/webm/libvpx#tag=v${pkgver}
|
|
0001-ARM-fixes.patch)
|
|
sha256sums=('SKIP'
|
|
'c3961bd173bde825221e766bb86d87de126b2e66d5c7b922935e5afcfcc40e62')
|
|
|
|
prepare() {
|
|
cd libvpx
|
|
|
|
patch -p1 -i ../0001-ARM-fixes.patch
|
|
}
|
|
|
|
build() {
|
|
cd libvpx
|
|
|
|
[[ $CARCH != "aarch64" ]] && CONFIG="--disable-neon --disable-neon-asm"
|
|
./configure \
|
|
--prefix='/usr' \
|
|
--disable-install-docs \
|
|
--disable-install-srcs \
|
|
--enable-pic \
|
|
--enable-postproc \
|
|
--enable-runtime-cpu-detect \
|
|
--enable-shared \
|
|
--enable-vp8 \
|
|
--enable-vp9 \
|
|
--enable-vp9-highbitdepth \
|
|
--enable-vp9-temporal-denoising $CONFIG
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd libvpx
|
|
|
|
make DIST_DIR="${pkgdir}"/usr install
|
|
install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/libvpx/
|
|
}
|
|
|
|
# vim: ts=2 sw=2 et:
|