[arch-commits] Commit in libyuv/repos (community-x86_64 community-x86_64/PKGBUILD)
Bruno Pagani
archange at archlinux.org
Mon Dec 21 22:54:06 UTC 2020
Date: Monday, December 21, 2020 @ 22:54:05
Author: archange
Revision: 781638
archrelease: copy trunk to community-x86_64
Added:
libyuv/repos/community-x86_64/
libyuv/repos/community-x86_64/PKGBUILD
(from rev 781637, libyuv/trunk/PKGBUILD)
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Copied: libyuv/repos/community-x86_64/PKGBUILD (from rev 781637, libyuv/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2020-12-21 22:54:05 UTC (rev 781638)
@@ -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