PKGBUILD 860 Bytes
Newer Older
amnon's avatar
amnon committed
1 2

pkgname=libvpx
Luca Giambonini's avatar
Luca Giambonini committed
3
pkgver=1.6.1
Luca Giambonini's avatar
Luca Giambonini committed
4
pkgrel=2
Xuetian Weng's avatar
Xuetian Weng committed
5
pkgdesc='VP8 and VP9 codec'
6
arch=('x86_64')
amnon's avatar
amnon committed
7 8
url="http://www.webmproject.org/"
license=('BSD')
Xuetian Weng's avatar
Xuetian Weng committed
9
depends=('glibc' 'gcc-libs')
Luca Giambonini's avatar
Luca Giambonini committed
10
makedepends=('yasm' 'git')
Xuetian Weng's avatar
Xuetian Weng committed
11
provides=('libvpx.so')
Chaoting Liu's avatar
Chaoting Liu committed
12
source=($pkgname-$pkgver.tar.gz::https://github.com/webmproject/libvpx/archive/v$pkgver.tar.gz)
Luca Giambonini's avatar
Luca Giambonini committed
13
md5sums=('b0925c8266e2859311860db5d76d1671')
amnon's avatar
amnon committed
14 15

build() {
Xuetian Weng's avatar
Xuetian Weng committed
16
  cd $pkgname-$pkgver
Luca Giambonini's avatar
Luca Giambonini committed
17 18
  ./configure \
    --prefix='/usr' \
Xuetian Weng's avatar
Xuetian Weng committed
19 20 21 22
    --enable-runtime-cpu-detect \
    --enable-shared \
    --enable-pic \
    --disable-install-docs \
Luca Giambonini's avatar
Luca Giambonini committed
23 24 25 26 27 28 29 30
    --disable-install-srcs \
    --enable-vp8 \
    --enable-postproc \
    --enable-vp9 \
    --enable-vp9-highbitdepth \
    --enable-experimental \
    --enable-spatial-svc

Xuetian Weng's avatar
Xuetian Weng committed
31
  make
32 33 34
}

package() {
Xuetian Weng's avatar
Xuetian Weng committed
35 36 37
  cd $pkgname-$pkgver
  make DIST_DIR="$pkgdir/usr" install
  install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
38
}