PKGBUILDs/extra/libvpx/PKGBUILD

65 lines
1.4 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-12-20 14:00:58 +00:00
pkgver=1.8.2
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)
2019-12-20 14:00:58 +00:00
source=(git+https://chromium.googlesource.com/webm/libvpx#tag=7ec7a33a081aeeb53fed1a8d87e4cbd189152527
2017-01-15 19:15:49 +00:00
0001-ARM-fixes.patch)
2019-03-06 02:03:41 +00:00
sha256sums=('SKIP'
2019-12-20 14:00:58 +00:00
'fde43bd72223854fe6d7aadd4b8d9947de902124fec01a5578ca12ca9436c810')
pkgver() {
cd libvpx
git describe --tags | sed 's/^v//'
}
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 \
2019-12-20 14:00:58 +00:00
--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: