[arch-commits] Commit in openh264/repos (community-x86_64 community-x86_64/PKGBUILD)

Daniel Bermond dbermond at gemini.archlinux.org
Wed Aug 3 01:49:43 UTC 2022


    Date: Wednesday, August 3, 2022 @ 01:49:42
  Author: dbermond
Revision: 1259953

archrelease: copy trunk to community-x86_64

Added:
  openh264/repos/community-x86_64/
  openh264/repos/community-x86_64/PKGBUILD
    (from rev 1259952, openh264/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: openh264/repos/community-x86_64/PKGBUILD (from rev 1259952, openh264/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-08-03 01:49:42 UTC (rev 1259953)
@@ -0,0 +1,38 @@
+# Maintainer : Daniel Bermond <dbermond at archlinux.org>
+# Contributor: drakkan <nicola.murino at gmail dot com>
+
+pkgname=openh264
+pkgver=2.3.0
+pkgrel=2
+_gtestver=1.8.1
+pkgdesc='H.264 encoder and decoder'
+arch=('x86_64')
+url='https://www.openh264.org/'
+license=('BSD')
+depends=('gcc-libs')
+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=('99b0695272bee73a3b3a5fcb1afef462c11a142d1dc35a2c61fef5a4b7d60bc0'
+            '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
+    install -D -m644 "${pkgname}-${pkgver}"/h264{dec,enc} -t "${pkgdir}/usr/bin"
+    install -D -m644 "${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}



More information about the arch-commits mailing list