mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
62 lines
1.3 KiB
Bash
62 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>
|
|
# - --disable-lto
|
|
|
|
pkgname=x264
|
|
pkgver=0.164.r3095.baee400
|
|
pkgrel=4
|
|
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
|
|
nasm
|
|
)
|
|
provides=(
|
|
libx264
|
|
libx264.so
|
|
)
|
|
conflicts=(
|
|
libx264
|
|
libx264-10bit
|
|
libx264-all
|
|
)
|
|
replaces=(
|
|
libx264
|
|
libx264-10bit
|
|
libx264-all
|
|
)
|
|
options=(debug)
|
|
_commit=baee400fa9ced6f5481a728138fed6e867b0ff7f # master
|
|
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}" BASHCOMPLETIONSDIR="/usr/share/bash-completion/completions" install-cli install-lib-shared install-bashcompletion
|
|
}
|
|
|
|
# vim: ts=2 sw=2 et:
|