diff options
author | GordonGR | 2018-08-18 19:08:06 +0300 |
---|---|---|
committer | GordonGR | 2018-08-18 19:08:06 +0300 |
commit | d59c702882881a4b7116c015558c4c45d6c53c58 (patch) | |
tree | b7133f6f6116fce11c814d17b32ac91fd27f74b8 | |
download | aur-d59c702882881a4b7116c015558c4c45d6c53c58.tar.gz |
155.r0a84d986-1: Initial import
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 55 |
2 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3ef06becb2fa --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +# Generated by mksrcinfo v8 +# Sat Aug 18 16:07:32 UTC 2018 +pkgbase = lib32-x264 + pkgdesc = Open Source H264/AVC video encoder (lib32) + pkgver = 155.r0a84d986 + pkgrel = 1 + url = https://www.videolan.org/developers/x264.html + arch = x86_64 + license = GPL + makedepends = git + makedepends = l-smash + makedepends = nasm + provides = lib32-libx264 + provides = libx264.so + conflicts = lib32-libx264 + conflicts = lib32-libx264-10bit + conflicts = lib32-libx264-all + replaces = lib32-libx264 + replaces = lib32-libx264-10bit + replaces = lib32-libx264-all + source = git+https://git.videolan.org/git/x264.git#commit=0a84d986e7020f8344f00752e3600b9769cc1e85 + sha256sums = SKIP + +pkgname = lib32-x264 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..04ed8fa065e3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: GodronGR <ntheo1979@gmail.com> +# Contributor: 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> + +pkgname=lib32-x264 +_pkgname=x264 +pkgver=155.r0a84d986 +pkgrel=1 +pkgdesc='Open Source H264/AVC video encoder (lib32)' +arch=('x86_64') +url='https://www.videolan.org/developers/x264.html' +license=('GPL') +#depends=( +# 'libavcodec.so' 'libavformat.so' 'libavutil.so' 'liblsmash.so' +# 'libswscale.so' +#) +makedepends=('git' 'l-smash' 'nasm') +#ffmpeg +provides=('lib32-libx264' 'libx264.so') +conflicts=('lib32-libx264' 'lib32-libx264-10bit' 'lib32-libx264-all') +replaces=('lib32-libx264' 'lib32-libx264-10bit' 'lib32-libx264-all') +_commit='0a84d986e7020f8344f00752e3600b9769cc1e85' +source=("git+https://git.videolan.org/git/x264.git#commit=${_commit}") +sha256sums=('SKIP') + +prepare() { +if [[ -d build ]]; then + rm -rf build +fi +mkdir build +} + +build() { +cd build +export CC="gcc -m32" +export CXX="g++ -m32" +export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + +../x264/configure \ + --prefix='/usr' \ + --enable-shared \ + --enable-pic \ + --enable-lto \ + -libdir=/usr/lib32 --host=i686-linux-gnu --libexecdir=/usr/lib32 +make +} + +package() { +make -C build DESTDIR="${pkgdir}" install-cli install-lib-shared +cd "$pkgdir/usr" +rm -rf {bin,include}/ +} |