Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
Fix the commit point and linking
Browse files Browse the repository at this point in the history
git-svn-id: file:///srv/repos/svn-community/svn@782013 9fca08f4-af9d-4005-b8df-a31f2cc04f65
  • Loading branch information
ArchangeGabriel authored and svntogit committed Dec 22, 2020
1 parent 5f95c67 commit 9093aac
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions trunk/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,26 @@

pkgname=libyuv
pkgver=r2212+dfaf7534
pkgrel=1
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)
source=(git+${url})
_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
Expand Down

0 comments on commit 9093aac

Please sign in to comment.