PKGBUILDs/extra/libvpx/PKGBUILD

61 lines
1.4 KiB
Bash
Raw Normal View History

2016-08-05 00:03:30 +00:00
# $Id$
# 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
2018-02-06 01:59:33 +00:00
pkgver=1.7.0
2017-01-15 18:44:15 +00:00
pkgrel=1
2015-04-21 11:57:20 +00:00
pkgdesc='VP8 and VP9 codec'
2018-02-06 01:59:33 +00:00
arch=('x86_64')
2013-12-07 19:24:13 +00:00
url='http://www.webmproject.org/'
2011-01-23 19:01:50 +00:00
license=('BSD')
2015-04-21 12:17:51 +00:00
depends=('glibc' 'gcc-libs')
2013-12-07 19:24:13 +00:00
makedepends=('yasm' 'git')
2015-04-21 12:17:51 +00:00
provides=('libvpx.so')
2016-08-05 00:03:30 +00:00
source=("libvpx-${pkgver}.tar.gz::https://github.com/webmproject/libvpx/archive/v${pkgver}.tar.gz"
2017-01-15 19:15:49 +00:00
0001-ARM-fixes.patch)
2018-02-06 01:59:33 +00:00
sha256sums=('1fec931eb5c94279ad219a5b6e0202358e94a93a90cfb1603578c326abfc1238'
'5e1be5248079a37d1ddf3e20954fde6e8b0182030bbcec87f9064aba6f1d3875')
2015-04-21 11:57:20 +00:00
prepare() {
2016-08-05 00:03:30 +00:00
cd libvpx-${pkgver}
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() {
2016-08-05 00:03:30 +00:00
cd libvpx-${pkgver}
2016-01-24 15:27:04 +00:00
2016-08-05 00:03:30 +00:00
./configure \
--prefix='/usr' \
2015-04-21 11:57:20 +00:00
--enable-runtime-cpu-detect \
--enable-shared \
--enable-pic \
--disable-install-docs \
--disable-install-srcs \
2016-08-05 00:03:30 +00:00
--enable-vp8 \
--enable-postproc \
--enable-vp9 \
--enable-vp9-highbitdepth \
--enable-experimental \
--enable-spatial-svc \
2015-04-21 12:40:23 +00:00
--disable-neon --disable-neon-asm
2016-08-05 00:03:30 +00:00
2015-04-21 11:57:20 +00:00
make
2011-03-09 06:40:49 +00:00
}
package() {
2016-08-05 00:03:30 +00:00
cd libvpx-${pkgver}
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: