OCaml 4.14.0 rebuild: ocaml-ctypes 0.20.1-1
[arch-packages.git] / x264 / trunk / PKGBUILD
blob659d9376affd4d927841e71e8004ecfa1d35e738
1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
3 # Contributor: BartÅ‚omiej Piotrowski <bpiotrowski@archlinux.org>
4 # Contributor: damir <damir@archlinux.org>
5 # Contributor: Paul Mattal <paul@archlinux.org>
7 pkgname=x264
8 pkgver=0.164.r3081.19856cc
9 pkgrel=2
10 epoch=3
11 pkgdesc='Open Source H264/AVC video encoder'
12 arch=(x86_64)
13 url=https://www.videolan.org/developers/x264.html
14 license=(GPL)
15 depends=(
16   liblsmash.so
18 makedepends=(
19   git
20   l-smash
21   nasm
23 provides=(
24   libx264
25   libx264.so
27 conflicts=(
28   libx264
29   libx264-10bit
30   libx264-all
32 replaces=(
33   libx264
34   libx264-10bit
35   libx264-all
37 _commit=19856cc41ad11e434549fb3cc6a019e645ce1efe
38 source=(git+https://code.videolan.org/videolan/x264.git#commit=${_commit})
39 sha256sums=(SKIP)
41 pkgver() {
42   cd x264
44   ./version.sh | grep X264_POINTVER | sed -r 's/^#define X264_POINTVER "([0-9]+\.[0-9]+)\.([0-9]+) (.*)"$/\1.r\2.\3/'
47 build() {
48   cd x264
50   ./configure \
51     --prefix=/usr \
52     --enable-shared \
53     --enable-pic \
54     --enable-lto \
55     --disable-avs
56   make
59 package() {
60   make -C x264 DESTDIR="${pkgdir}" install-cli install-lib-shared
63 # vim: ts=2 sw=2 et: