PKGBUILDs/extra/libvpx/PKGBUILD

58 lines
1.5 KiB
Bash
Raw Normal View History

2012-02-07 13:46:49 +00:00
# $Id: PKGBUILD 149273 2012-02-06 17:33:27Z ibiru $
2011-01-23 19:01:50 +00:00
# Maintainer: Ionut Biru <ibiru@archlinux.org>
2015-04-21 11:57:20 +00:00
# Maintainer: 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
2015-11-12 00:47:09 +00:00
pkgver=1.5.0
2016-01-24 15:27:04 +00:00
pkgrel=4
2015-04-21 11:57:20 +00:00
pkgdesc='VP8 and VP9 codec'
2011-01-23 19:01:50 +00:00
arch=('i686' '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')
2015-11-12 00:47:09 +00:00
source=($pkgname-$pkgver.tar.gz::https://github.com/webmproject/libvpx/archive/v$pkgver.tar.gz
2016-01-24 15:27:04 +00:00
0001-Fix-for-issue-1114-compile-error.patch
2013-12-07 21:39:15 +00:00
fix-armhf-link.patch)
2015-11-12 00:47:09 +00:00
md5sums=('0c662bc7525afe281badb3175140d35c'
2016-01-24 15:27:04 +00:00
'a03e318d5d92270ed826b55d6d9dc828'
2015-04-21 12:40:23 +00:00
'a2d92d01ecc336fe81682daa8a7fdafa')
2015-04-21 11:57:20 +00:00
prepare() {
2015-11-12 00:47:09 +00:00
cd $pkgname-$pkgver
2016-01-24 15:27:04 +00:00
# https://bugs.chromium.org/p/webm/issues/detail?id=1114
patch -Np1 -i ../0001-Fix-for-issue-1114-compile-error.patch
2015-04-21 11:57:20 +00:00
patch -p1 -i ../fix-armhf-link.patch
}
2011-01-23 19:01:50 +00:00
build() {
2015-11-12 00:47:09 +00:00
cd $pkgname-$pkgver
2016-01-24 15:27:04 +00:00
2015-04-21 11:57:20 +00:00
./configure --prefix=/usr \
--enable-vp8 \
--enable-vp9 \
2016-01-24 15:27:04 +00:00
--enable-vp9-highbitdepth \
2015-04-21 11:57:20 +00:00
--enable-runtime-cpu-detect \
--enable-shared \
--enable-postproc \
--enable-pic \
2015-11-12 00:47:09 +00:00
--enable-experimental --enable-spatial-svc \
2015-04-21 11:57:20 +00:00
--disable-install-docs \
--disable-install-srcs \
2015-04-21 12:40:23 +00:00
--disable-neon --disable-neon-asm
2015-04-21 11:57:20 +00:00
make
2011-03-09 06:40:49 +00:00
}
package() {
2015-11-12 00:47:09 +00:00
cd $pkgname-$pkgver
2015-04-21 11:57:20 +00:00
make DIST_DIR="$pkgdir/usr" install
install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
2011-01-23 19:01:50 +00:00
}