[arch-commits] Commit in (libyuv libyuv/repos libyuv/trunk libyuv/trunk/PKGBUILD)

Bruno Pagani archange at archlinux.org
Mon Dec 21 22:53:58 UTC 2020


    Date: Monday, December 21, 2020 @ 22:53:58
  Author: archange
Revision: 781637

Initial addition of libyuv in [community]

New dependency for libavif

Added:
  libyuv/
  libyuv/repos/
  libyuv/trunk/
  libyuv/trunk/PKGBUILD

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

Added: libyuv/trunk/PKGBUILD
===================================================================
--- libyuv/trunk/PKGBUILD	                        (rev 0)
+++ libyuv/trunk/PKGBUILD	2020-12-21 22:53:58 UTC (rev 781637)
@@ -0,0 +1,29 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=libyuv
+pkgver=r2212+dfaf7534
+pkgrel=1
+pkgdesc="Library for YUV scaling"
+arch=(x86_64)
+url="https://chromium.googlesource.com/libyuv/libyuv/"
+license=(custom)
+depends=(gcc-libs libjpeg)
+makedepends=(cmake git)
+source=(git+${url})
+sha512sums=(SKIP)
+
+pkgver() {
+  cd ${pkgname}
+  printf "r%s+%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+  cmake -B build -S ${pkgname} \
+    -DCMAKE_INSTALL_PREFIX=/usr
+  make -C build
+}
+
+package() {
+  make -C build DESTDIR="${pkgdir}" install
+  install -Dm644 ${pkgname}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}



More information about the arch-commits mailing list