summaryrefslogtreecommitdiff
path: root/extra/libvpx/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libvpx/PKGBUILD')
-rw-r--r--extra/libvpx/PKGBUILD39
1 files changed, 23 insertions, 16 deletions
diff --git a/extra/libvpx/PKGBUILD b/extra/libvpx/PKGBUILD
index d784e7086..9995e36e5 100644
--- a/extra/libvpx/PKGBUILD
+++ b/extra/libvpx/PKGBUILD
@@ -1,29 +1,36 @@
-# $Id: PKGBUILD 197350 2013-10-25 02:49:53Z bisson $
+# $Id: PKGBUILD 201279 2013-12-07 18:33:32Z bpiotrowski $
# Maintainer: Ionut Biru <ibiru@archlinux.org>
+
pkgname=libvpx
-pkgver=1.2.0
-pkgrel=2
-pkgdesc="The VP8 Codec SDK"
+pkgver=1.3.0
+pkgrel=1
+pkgdesc='The VP8 Codec SDK'
arch=('i686' 'x86_64' 'mips64el')
-url="http://www.webmproject.org/"
+url='http://www.webmproject.org/'
license=('BSD')
depends=('glibc')
-[ "$CARCH" != "mips64el" ] && makedepends=('yasm')
-source=(ftp://ftp.archlinux.org/other/libvpx/libvpx-$pkgver.tar.xz{,.sig}
+makedepends=('git')
+[ "$CARCH" != "mips64el" ] && makedepends+=('yasm')
+source=($pkgname::git+http://code.google.com/p/webm.libvpx#tag=v$pkgver
mips64el.patch)
-sha1sums=('75cd953cf2db694412569272803fbdc73f2b599f'
- 'SKIP'
- '78ea367dc417f64ad3ce8e33fda210e56a083f4b')
+md5sums=('SKIP'
+ '78ea367dc417f64ad3ce8e33fda210e56a083f4b')
-build() {
- cd "$pkgname-$pkgver"
+prepare() {
+ if [ "$CARCH" = "mips64el" ]; then
+ patch -Np1 -i ${srcdir}/mips64el.patch
+ fi
+}
+build() {
if [ "$CARCH" = "mips64el" ]; then
extra="--target=mips64el-linux-gcc"
- patch -Np1 -i ${srcdir}/mips64el.patch
fi
- ./configure --prefix=/usr --enable-vp8 \
+ cd $pkgname
+ ./configure --prefix=/usr \
+ --enable-vp8 \
+ --enable-vp9 \
--enable-runtime-cpu-detect \
--enable-shared \
--enable-postproc \
@@ -34,7 +41,7 @@ build() {
}
package() {
- cd "$pkgname-$pkgver"
+ cd $pkgname
make DIST_DIR="$pkgdir/usr" install
- install -D -m 0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}