36 lines
865 B
Bash
36 lines
865 B
Bash
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
|
|
|
|
pkgname=libultrahdr
|
|
pkgver=1.2.0
|
|
pkgrel=1
|
|
pkgdesc='The reference codec for the Ultra HDR format'
|
|
arch=(x86_64 riscv64)
|
|
url='https://github.com/google/libultrahdr'
|
|
license=(Apache-2.0)
|
|
depends=(gcc-libs
|
|
glibc
|
|
libglvnd
|
|
libjpeg-turbo)
|
|
makedepends=(cmake
|
|
git)
|
|
source=(git+https://github.com/google/libultrahdr#tag=v$pkgver)
|
|
sha256sums=('da991e3f02ef9b9dc7a269c7a29aa2932f45d4f8e1284d96f9a100ab209fd93a')
|
|
|
|
build() {
|
|
cmake -B build -S $pkgname \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DUHDR_BUILD_TESTS=ON \
|
|
-Wno-dev
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
ctest --test-dir build --output-on-failure
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|