PKGBUILDs/extra/x264/PKGBUILD

67 lines
1.2 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
2021-10-22 03:02:46 +00:00
pkgver=0.163.r3060.5db6aa6
2022-02-07 04:34:11 +00:00
pkgrel=1.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)
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
)
2021-10-22 03:02:46 +00:00
_commit=5db6aa6cab1b146e07b60cc1736a01f21da01154
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
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
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 \
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() {
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: