summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMichal Donat2018-11-12 22:29:46 +0100
committerDaniel Playfair Cal2019-03-07 00:19:50 +1100
commit090de7059385f63a1802be407355d83801fee4ab (patch)
treee8f3032e8591939cd9bd1fbfbb0f75ed3816d003 /PKGBUILD
downloadaur-libvpx-1.7.tar.gz
initial commit
update to 1.6.1, based on the original extra/libvpx forgot to update SRCINFO fill in PROVIDES attribute update SRCINFO package release update conflicts Upgrade to 1.7
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..ed1b90f047d9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Daniel Playfair Cal <daniel.playfair.cal@gmail.com>
+# Contributor: Michal Donat <donny579@gmail.com>
+# Contributor: Maxime Gauduin <alucryd@archlinux.org>
+# Contributor: Ionut Biru <ibiru@archlinux.org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
+
+pkgname=libvpx-1.7
+pkgver=1.7.0
+pkgrel=1
+pkgdesc='VP8 and VP9 codec'
+arch=('x86_64')
+url='http://www.webmproject.org/'
+license=('BSD')
+depends=('glibc' 'gcc-libs')
+makedepends=('yasm' 'git')
+conflicts=('libvpx=1.7')
+provides=('libvpx=1.7')
+source=("libvpx-${pkgver}.tar.gz::https://github.com/webmproject/libvpx/archive/v${pkgver}.tar.gz")
+sha256sums=('1fec931eb5c94279ad219a5b6e0202358e94a93a90cfb1603578c326abfc1238')
+
+build() {
+ cd libvpx-${pkgver}
+
+ ./configure \
+ --prefix='/usr' \
+ --enable-runtime-cpu-detect \
+ --enable-shared \
+ --enable-pic \
+ --disable-install-docs \
+ --disable-install-srcs \
+ --enable-vp8 \
+ --enable-postproc \
+ --enable-vp9 \
+ --enable-vp9-highbitdepth \
+ --enable-experimental \
+ --enable-spatial-svc
+
+ make
+}
+
+package() {
+ cd libvpx-${pkgver}
+
+ mkdir -p "${pkgdir}"/opt/"${pkgname}"
+ mkdir -p "${pkgdir}"/usr/lib
+
+ make DIST_DIR="${pkgdir}"/opt/"${pkgname}" install
+
+ ln -rs "${pkgdir}"/opt/"${pkgname}"/lib/libvpx.so.5 "${pkgdir}"/usr/lib/libvpx.so.5
+ ln -rs "${pkgdir}"/usr/lib/libvpx.so.5 "${pkgdir}"/usr/lib/libvpx.so.5.0
+ ln -rs "${pkgdir}"/usr/lib/libvpx.so.5 "${pkgdir}"/usr/lib/libvpx.so.5.0.0
+
+ install -Dm 644 LICENSE -t "${pkgdir}"/opt/${pkgname}/licenses/libvpx-1.7/
+}