49 lines
1.3 KiB
Bash
49 lines
1.3 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=libyuv
|
|
pkgver=r2426+464c51a0
|
|
pkgrel=01
|
|
pkgdesc="Library for YUV scaling"
|
|
url="https://chromium.googlesource.com/libyuv/libyuv/"
|
|
depends=(gcc-libs libjpeg)
|
|
makedepends=(cmake git)
|
|
# Version required by libavif
|
|
_commit=464c51a0353c71f08fe45f683d6a97a638d47833
|
|
source=(git+${url}#commit=${_commit})
|
|
|
|
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}|' ${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}/
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(custom)
|
|
|
|
sha256sums=(SKIP)
|
|
|
|
## b87bd8b5b2479c139b91825fa2adf925908f11b9152ec000f352f0936e28a839 libyuv-r2426+464c51a0-01-x86_64.pkg.tar.lz
|
|
|