PKGBUILDs/extra/x264/PKGBUILD
2019-11-21 00:20:21 +00:00

68 lines
1.3 KiB
Bash

# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: damir <damir@archlinux.org>
# Contributor: Paul Mattal <paul@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - configure needs --disable-asm to build on non-AArch64
# - --disable-lto
pkgname=x264
pkgver=0.157.r2980.34c06d1
pkgrel=2
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
)
source=(git+https://code.videolan.org/videolan/x264.git#commit=34c06d1c17ad968fbdda153cb772f77ee31b3095)
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
[[ $CARCH != "aarch64" ]] && CONFIG="--disable-asm"
./configure \
--prefix=/usr \
--enable-shared \
--enable-pic \
--disable-lto \
--disable-avs $CONFIG
make
}
package() {
make -C x264 DESTDIR="${pkgdir}" install-cli install-lib-shared
}
# vim: ts=2 sw=2 et: