| Name |
openh264 |
| Description |
H.264 encoder and decoder |
| Version |
2.6.0-2 |
| Package Base |
openh264 |
| Homepage |
https://www.openh264.org/ |
| Maintainers |
['Daniel Bermond <dbermond@archlinux.org>'] |
| Contributors |
['drakkan <nicola.murino@gmail.com>'] |
| Distro-repo |
https://gitlab.archlinux.org/archlinux/packaging/packages/openh264 |
| Sources |
['https://github.com/cisco/openh264/archive/v2.6.0/openh264-2.6.0.tar.gz', 'https://github.com/google/googletest/archive/release-1.8.1/googletest-1.8.1.tar.gz'] |
| Dependencies |
['glibc', 'libgcc', 'libstdc++'] |
| Optional-Dependencies |
[] |
| Build-Dependencies |
['nasm'] |
| Provides |
['libopenh264.so'] |
| Builddate |
15-02-2026 16:18:22 |
| Architecture |
x86_64 |
| Distro-Version |
|
| Licenses |
['BSD-2-Clause'] |
| Hash |
2b775d7a4e330c37510e590ade35ad43ba6ea5e9f3f5e0d522c62ade4390937e |
# Maintainer : Daniel Bermond <dbermond@archlinux.org>
# Contributor: drakkan <nicola.murino at gmail dot com>
pkgname=openh264
pkgver=2.6.0
pkgrel=2
# https://github.com/cisco/openh264/blob/v2.6.0/Makefile#L33
_gtestver=1.8.1
pkgdesc='H.264 encoder and decoder'
arch=('x86_64')
url='https://www.openh264.org/'
license=('BSD-2-Clause')
depends=(
'glibc'
'libgcc'
'libstdc++')
makedepends=(
'nasm')
provides=('libopenh264.so')
source=("https://github.com/cisco/openh264/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
"https://github.com/google/googletest/archive/release-${_gtestver}/googletest-${_gtestver}.tar.gz")
sha256sums=('558544ad358283a7ab2930d69a9ceddf913f4a51ee9bf1bfb9e377322af81a69'
'9bf1fe5182a604b4135edc1a425ae356c9ad15e9b23f9f12a02e80184c3a249c')
prepare() {
ln -sf "../googletest-release-${_gtestver}" "${pkgname}-${pkgver}/gtest"
}
build() {
make -C "${pkgname}-${pkgver}"
}
check() {
make -C "${pkgname}-${pkgver}" test
cd "${pkgname}-${pkgver}/testbin"
./CmdLineExample.sh
}
package() {
make -C "${pkgname}-${pkgver}" DESTDIR="$pkgdir" PREFIX='/usr' install-shared
install -D -m755 "${pkgname}-${pkgver}"/h264{dec,enc} -t "${pkgdir}/usr/bin"
install -D -m644 "${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}