PKGBUILDs/extra/libvpx/PKGBUILD

59 lines
1.3 KiB
Bash
Raw Normal View History

2016-08-05 00:03:30 +00:00
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
2011-01-23 19:01:50 +00:00
2012-02-07 13:46:49 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2013-12-07 21:39:15 +00:00
# - patch to fix building
2015-04-21 12:40:23 +00:00
# - disable neon and neon-asm
2011-01-23 19:01:50 +00:00
pkgname=libvpx
2019-07-17 12:58:19 +00:00
pkgver=1.8.1
2017-01-15 18:44:15 +00:00
pkgrel=1
2015-04-21 11:57:20 +00:00
pkgdesc='VP8 and VP9 codec'
2019-03-06 02:03:41 +00:00
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}
2017-01-15 19:15:49 +00:00
0001-ARM-fixes.patch)
2019-03-06 02:03:41 +00:00
sha256sums=('SKIP'
2019-07-17 12:58:19 +00:00
'91c82653dd9ae1f36d78efd1ae6f9e7a642c6cac68e391ab95460c07988bd885')
2015-04-21 11:57:20 +00:00
prepare() {
2019-03-06 02:03:41 +00:00
cd libvpx
2016-01-24 15:27:04 +00:00
2017-01-15 19:15:49 +00:00
patch -p1 -i ../0001-ARM-fixes.patch
2015-04-21 11:57:20 +00:00
}
2011-01-23 19:01:50 +00:00
build() {
2019-03-06 02:03:41 +00:00
cd libvpx
2016-01-24 15:27:04 +00:00
2019-03-06 02:03:41 +00:00
[[ $CARCH != "aarch64" ]] && CONFIG="--disable-neon --disable-neon-asm"
2016-08-05 00:03:30 +00:00
./configure \
--prefix='/usr' \
2015-04-21 11:57:20 +00:00
--disable-install-docs \
--disable-install-srcs \
2019-03-06 02:03:41 +00:00
--enable-pic \
2016-08-05 00:03:30 +00:00
--enable-postproc \
2019-03-06 02:03:41 +00:00
--enable-runtime-cpu-detect \
--enable-shared \
--enable-vp8 \
2016-08-05 00:03:30 +00:00
--enable-vp9 \
--enable-vp9-highbitdepth \
2019-03-06 02:03:41 +00:00
--enable-vp9-temporal-denoising $CONFIG
2015-04-21 11:57:20 +00:00
make
2011-03-09 06:40:49 +00:00
}
package() {
2019-03-06 02:03:41 +00:00
cd libvpx
2016-08-05 00:03:30 +00:00
make DIST_DIR="${pkgdir}"/usr install
install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/libvpx/
2011-01-23 19:01:50 +00:00
}
2016-08-05 00:03:30 +00:00
# vim: ts=2 sw=2 et: