diff options
author | kfg | 2015-06-09 08:49:05 +0200 |
---|---|---|
committer | kfg | 2015-06-09 08:49:05 +0200 |
commit | 4eb249313325034a4a2ec70858116e1485800804 (patch) | |
tree | b40579cdb534a43b6327ea20415330687cf37110 | |
download | aur-4eb249313325034a4a2ec70858116e1485800804.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 56 |
2 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9891ed768371 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = mingw-w64-x264 + pkgdesc = free library for encoding H264/AVC video streams (mingw-w64) + pkgver = 144.20150223 + pkgrel = 1 + epoch = 1 + url = http://www.videolan.org/developers/x264.html + arch = any + license = GPL + makedepends = mingw-w64-gcc + makedepends = yasm + makedepends = git + depends = mingw-w64-crt + options = !strip + options = !buildflags + options = staticlibs + source = git://git.videolan.org/x264.git#commit=c8a773ebf + md5sums = SKIP + +pkgname = mingw-w64-x264 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8f4fb774a119 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer : Karl-Felix Glatzer <karl.glatzer@gmx.de> +pkgname=mingw-w64-x264 +pkgver=144.20150223 +pkgrel=1 +epoch=1 +pkgdesc='free library for encoding H264/AVC video streams (mingw-w64)' +arch=('any') +url='http://www.videolan.org/developers/x264.html' +license=('GPL') +depends=('mingw-w64-crt') +#provides=('mingw-w64-libx264.so') +options=(!strip !buildflags staticlibs) +makedepends=('mingw-w64-gcc' 'yasm' 'git') +source=(git://git.videolan.org/x264.git#commit=c8a773ebf) +md5sums=('SKIP') +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +pkgver() { + cd x264 + local _ver=$(grep '#define X264_BUILD' x264.h | cut -d' ' -f3) + local _date=$(git log -1 --format="%cd" --date=short | tr -d -) + + echo ${_ver}.${_date} +} + +build() { + for _arch in ${_architectures}; do + mkdir -p ${srcdir}/build-${_arch} && cd ${srcdir}/build-${_arch} + + unset LDFLAGS CPPFLAGS + ${srcdir}/x264/configure --host=${_arch} \ + --cross-prefix="${_arch}-" \ + --enable-win32thread \ + --enable-shared \ + --enable-static + + make + done +} + +package() { + for _arch in ${_architectures}; do + cd ${srcdir}/build-${_arch} + make DESTDIR="$pkgdir" \ + bindir=/usr/${_arch}/bin \ + libdir=/usr/${_arch}/lib \ + includedir=/usr/${_arch}/include \ + install + + ${_arch}-strip --strip-unneeded ${pkgdir}/usr/${_arch}/bin/*.dll + ${_arch}-strip -g ${pkgdir}/usr/${_arch}/lib/*.a + rm ${pkgdir}/usr/${_arch}/bin/*.exe + done +} + +# vim:set ts=2 sw=2 et: |