PKGBUILDs/extra/libyuv/PKGBUILD

40 lines
988 B
Bash
Raw Normal View History

2021-10-21 23:27:59 +00:00
# Maintainer: Bruno Pagani <archange@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - disable NEON, broken assembly
pkgname=libyuv
2023-10-30 13:07:06 +00:00
pkgver=r2426+464c51a0
pkgrel=1
2021-10-21 23:27:59 +00:00
pkgdesc="Library for YUV scaling"
arch=(x86_64)
url="https://chromium.googlesource.com/libyuv/libyuv/"
license=(custom)
depends=(gcc-libs libjpeg)
makedepends=(cmake git)
2022-05-06 18:07:29 +00:00
# Version required by libavif
2023-10-30 13:07:06 +00:00
_commit=464c51a0353c71f08fe45f683d6a97a638d47833
2021-10-21 23:27:59 +00:00
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() {
2022-05-06 18:07:29 +00:00
sed -i 's|yuvconvert ${JPEG_LIBRARY}|${ly_lib_shared} ${JPEG_LIBRARY}|' ${pkgname}/CMakeLists.txt
2021-10-21 23:27:59 +00:00
}
build() {
2022-05-06 19:00:01 +00:00
CXXFLAGS+=" -DLIBYUV_DISABLE_NEON"
2021-10-21 23:27:59 +00:00
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}/
}