# Maintainer: Maxime Gauduin # Contributor: Ionut Biru # Contributor: Bartłomiej Piotrowski # Contributor: damir # Contributor: Paul Mattal # ALARM: Kevin Mihelich # - --disable-lto pkgname=x264 pkgver=0.164.r3081.19856cc pkgrel=1.1 epoch=3 pkgdesc='Open Source H264/AVC video encoder' arch=(x86_64) url=https://www.videolan.org/developers/x264.html license=(GPL) depends=( liblsmash.so ) makedepends=( git l-smash nasm ) provides=( libx264 libx264.so ) conflicts=( libx264 libx264-10bit libx264-all ) replaces=( libx264 libx264-10bit libx264-all ) _commit=19856cc41ad11e434549fb3cc6a019e645ce1efe source=(git+https://code.videolan.org/videolan/x264.git#commit=${_commit}) sha256sums=(SKIP) pkgver() { cd x264 ./version.sh | grep X264_POINTVER | sed -r 's/^#define X264_POINTVER "([0-9]+\.[0-9]+)\.([0-9]+) (.*)"$/\1.r\2.\3/' } build() { cd x264 ./configure \ --prefix=/usr \ --enable-shared \ --enable-pic \ --disable-lto \ --disable-avs make } package() { make -C x264 DESTDIR="${pkgdir}" install-cli install-lib-shared } # vim: ts=2 sw=2 et: