diff options
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 46 |
3 files changed, 45 insertions, 21 deletions
@@ -1,21 +1,20 @@ -# Generated by mksrcinfo v8 -# Sat Aug 27 09:52:47 UTC 2016 pkgbase = openh264-git - pkgdesc = Open Source H.264 Codec - pkgver = 1.6.0.r4354.30328b8 + pkgdesc = OpenH264 is a codec library which supports H.264 encoding and decoding. (GIT version) + pkgver = 2.3.0.r5206.045aeac1 pkgrel = 1 url = http://www.openh264.org - arch = i686 arch = x86_64 arch = armv6h arch = armv7h license = BSD + checkdepends = gtest makedepends = git makedepends = nasm - provides = openh264 + makedepends = meson + provides = libopenh264.so + provides = openh264=2.3.0.r5206.045aeac1 conflicts = openh264 source = git+https://github.com/cisco/openh264.git - sha1sums = SKIP + sha256sums = SKIP pkgname = openh264-git - diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..fce6edeefba2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD +!esee @@ -2,35 +2,55 @@ # Contributor: sekret, mail=$(echo c2VrcmV0QHBvc3Rlby5zZQo= | base64 -d) pkgname=openh264-git -pkgver=1.6.0.r4354.30328b8 +pkgver=2.3.0.r5206.045aeac1 pkgrel=1 -pkgdesc="Open Source H.264 Codec" -arch=('i686' 'x86_64' 'armv6h' 'armv7h') +pkgdesc='OpenH264 is a codec library which supports H.264 encoding and decoding. (GIT version)' +arch=('x86_64' 'armv6h' 'armv7h') url='http://www.openh264.org' license=('BSD') makedepends=('git' 'nasm' + 'meson' ) -provides=('openh264') +checkdepends=('gtest') +provides=('libopenh264.so' + "openh264=${pkgver}") conflicts=('openh264') -source=('git+https://github.com/cisco/openh264.git') -sha1sums=('SKIP') +source=('git+https://github.com/cisco/openh264.git' + 'esee' + ) +sha256sums=('SKIP' + '83978429d53f118f685fc6921ac42cce2d04fb9eb2143f270a11e39702a8bea7' + ) pkgver() { cd openh264 - _ver="$(cat codec/api/svc/codec_ver.h | grep -m3 -e 'OPENH264_MAJOR' -e 'OPENH264_MINOR' -e 'OPENH264_REVISION' | sed 's|OPENH264|OPENHTWOSIXFOUR|g' | grep -o "[[:digit:]]*" | paste -sd'.')" + _ver="$(cat codec/api/wels/codec_ver.h | grep -m3 -e 'OPENH264_MAJOR' -e 'OPENH264_MINOR' -e 'OPENH264_REVISION' | sed 's|OPENH264|OPENHTWOSIXFOUR|g' | grep -o "[[:digit:]]*" | paste -sd'.')" echo "${_ver}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" } +prepare() { + patch -d openh264 -p1 -i "${srcdir}/esee" +} + build() { - make -C openh264 PREFIX="/usr" + arch-meson openh264 build + meson compile -C build } -package() { +check() { + ( cd openh264/test/encoder_binary_comparison ; CFLAGS=-Werror ./run_PrepareAllTestData.sh 64 ) + meson test -C build -v cd openh264 - make DESTDIR="${pkgdir}" PREFIX="/usr" install - install -Dm755 h264dec "$pkgdir/usr/bin/h264dec" - install -Dm755 h264enc "$pkgdir/usr/bin/h264enc" - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + ./run_Test.sh BinaryCompare BA_MW_D.264 + ./run_Test.sh BinaryCompare Adobe_PDF_sample_a_1024x768_50Frms.264 + ./run_Test.sh BinaryCompare Zhling_1280x720.264 + } + +package() { + + DESTDIR="${pkgdir}" meson install -C build + + install -Dm644 openh264/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |