mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +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.1
|
|
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'
|
|
'91c82653dd9ae1f36d78efd1ae6f9e7a642c6cac68e391ab95460c07988bd885')
|
|
|
|
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:
|