PKGBUILDs/extra/x264/PKGBUILD

62 lines
1.3 KiB
Bash
Raw Normal View History

2016-02-27 15:06:22 +00:00
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
2011-01-19 00:41:46 +00:00
# Contributor: damir <damir@archlinux.org>
# Contributor: Paul Mattal <paul@archlinux.org>
2012-02-07 13:45:40 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2017-05-19 13:37:03 +00:00
# - --disable-lto
2011-01-19 00:41:46 +00:00
2018-08-16 12:26:07 +00:00
pkgname=x264
2023-10-09 23:21:50 +00:00
pkgver=0.164.r3108.31e19f9
pkgrel=1
2019-10-30 17:55:35 +00:00
epoch=3
2018-08-16 12:26:07 +00:00
pkgdesc='Open Source H264/AVC video encoder'
2019-03-31 17:51:33 +00:00
arch=(x86_64)
url=https://www.videolan.org/developers/x264.html
license=(GPL)
2022-08-23 12:40:09 +00:00
depends=(liblsmash.so)
2019-03-31 17:51:33 +00:00
makedepends=(
git
nasm
)
provides=(
libx264
libx264.so
)
conflicts=(
libx264
libx264-10bit
libx264-all
)
replaces=(
libx264
libx264-10bit
libx264-all
)
2023-10-09 23:21:50 +00:00
_commit=31e19f92f00c7003fa115047ce50978bc98c3a0d
2020-08-10 11:55:11 +00:00
source=(git+https://code.videolan.org/videolan/x264.git#commit=${_commit})
2019-03-31 17:51:33 +00:00
sha256sums=(SKIP)
2011-01-19 00:41:46 +00:00
2014-03-29 16:21:56 +00:00
pkgver() {
2018-08-16 12:26:07 +00:00
cd x264
2019-10-30 17:55:35 +00:00
./version.sh | grep X264_POINTVER | sed -r 's/^#define X264_POINTVER "([0-9]+\.[0-9]+)\.([0-9]+) (.*)"$/\1.r\2.\3/'
2014-08-07 11:07:38 +00:00
}
2013-08-01 13:02:31 +00:00
build() {
2019-10-30 17:55:35 +00:00
cd x264
./configure \
2019-03-31 17:51:33 +00:00
--prefix=/usr \
2018-08-16 12:26:07 +00:00
--enable-shared \
--enable-pic \
2019-11-21 00:20:21 +00:00
--disable-lto \
2022-02-07 04:34:11 +00:00
--disable-avs
2018-08-16 12:26:07 +00:00
make
2017-05-19 12:55:51 +00:00
}
2018-08-16 12:26:07 +00:00
package() {
2022-08-23 12:40:09 +00:00
make -C x264 DESTDIR="${pkgdir}" BASHCOMPLETIONSDIR="/usr/share/bash-completion/completions" install-cli install-lib-shared install-bashcompletion
2011-01-19 00:41:46 +00:00
}
2016-02-27 15:06:22 +00:00
# vim: ts=2 sw=2 et: