PKGBUILDs/extra/libvpx/PKGBUILD

67 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
2020-08-04 15:42:46 +00:00
pkgver=1.9.0
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)
2020-08-04 15:42:46 +00:00
depends=(gcc-libs)
2019-03-06 02:03:41 +00:00
makedepends=(
git
nasm
)
provides=(libvpx.so)
2020-08-04 15:42:46 +00:00
_tag=6516e974f8c40d0e49b19a4b55b1c98e7432edbb
source=(git+https://chromium.googlesource.com/webm/libvpx#tag=${_tag}
2017-01-15 19:15:49 +00:00
0001-ARM-fixes.patch)
2019-03-06 02:03:41 +00:00
sha256sums=('SKIP'
2020-08-04 15:42:46 +00:00
'65504659ca0fdc10b3ad8a82ad902aa97fd7a31f31377a217ca9538722961f22')
2019-12-20 14:00:58 +00:00
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: