[arch-commits] Commit in libyuv/repos/community-x86_64 (PKGBUILD PKGBUILD)
Bruno Pagani
archange at archlinux.org
Tue Dec 22 15:04:36 UTC 2020
Date: Tuesday, December 22, 2020 @ 15:04:36
Author: archange
Revision: 782014
archrelease: copy trunk to community-x86_64
Added:
libyuv/repos/community-x86_64/PKGBUILD
(from rev 782013, libyuv/trunk/PKGBUILD)
Deleted:
libyuv/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 63 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 34 insertions(+), 29 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-12-22 15:04:30 UTC (rev 782013)
+++ PKGBUILD 2020-12-22 15:04:36 UTC (rev 782014)
@@ -1,29 +0,0 @@
-# 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}/
-}
Copied: libyuv/repos/community-x86_64/PKGBUILD (from rev 782013, libyuv/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-12-22 15:04:36 UTC (rev 782014)
@@ -0,0 +1,34 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=libyuv
+pkgver=r2212+dfaf7534
+pkgrel=2
+pkgdesc="Library for YUV scaling"
+arch=(x86_64)
+url="https://chromium.googlesource.com/libyuv/libyuv/"
+license=(custom)
+depends=(gcc-libs libjpeg)
+makedepends=(cmake git)
+_commit=dfaf7534e0e536f7e5ef8ddd7326797bd09b8622
+source=(git+${url}#commit=${_commit})
+sha512sums=(SKIP)
+
+pkgver() {
+ cd ${pkgname}
+ printf "r%s+%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ sed -i 's|yuvconvert ${JPEG_LIBRARY}|${ly_lib_shared} ${JPEG_LIBRARY}|g' ${pkgname}/CMakeLists.txt
+}
+
+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