PKGBUILDs/extra/x264/PKGBUILD

69 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>
2015-07-16 05:19:14 +00:00
# - configure needs --disable-asm to build on non-AArch64
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
2019-10-30 17:55:35 +00:00
pkgver=0.157.r2980.34c06d1
2019-11-21 00:20:21 +00:00
pkgrel=2
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)
2018-08-16 12:26:07 +00:00
depends=(
2019-03-31 17:51:33 +00:00
liblsmash.so
2018-08-16 12:26:07 +00:00
)
2019-03-31 17:51:33 +00:00
makedepends=(
git
l-smash
nasm
)
provides=(
libx264
libx264.so
)
conflicts=(
libx264
libx264-10bit
libx264-all
)
replaces=(
libx264
libx264-10bit
libx264-all
)
2019-10-30 17:55:35 +00:00
source=(git+https://code.videolan.org/videolan/x264.git#commit=34c06d1c17ad968fbdda153cb772f77ee31b3095)
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
2016-02-27 15:06:22 +00:00
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
2014-06-05 00:23:45 +00:00
2018-08-16 12:26:07 +00:00
[[ $CARCH != "aarch64" ]] && CONFIG="--disable-asm"
2017-05-19 12:55:51 +00:00
2019-10-30 17:55:35 +00:00
./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 \
--disable-avs $CONFIG
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() {
2019-10-30 17:55:35 +00:00
make -C x264 DESTDIR="${pkgdir}" install-cli install-lib-shared
2011-01-19 00:41:46 +00:00
}
2016-02-27 15:06:22 +00:00
# vim: ts=2 sw=2 et: