2023-05-09 01:15:03 +00:00
|
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
|
|
# Contributor: Adam Fontenot <fontenot@ucla.edu>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2023-10-17 12:51:20 +00:00
|
|
|
# - remove make/opt depends on svt-av1, -DWITH_SvtEnc=OFF
|
2023-05-09 01:15:03 +00:00
|
|
|
|
|
|
|
pkgname=libheif
|
2023-11-03 17:43:58 +00:00
|
|
|
pkgver=1.17.3
|
2023-10-17 12:51:20 +00:00
|
|
|
pkgrel=1
|
2023-10-06 17:52:38 +00:00
|
|
|
pkgdesc='An HEIF and AVIF file format decoder and encoder'
|
2023-05-09 01:15:03 +00:00
|
|
|
arch=(x86_64)
|
|
|
|
url='https://github.com/strukturag/libheif'
|
|
|
|
license=(GPL3)
|
2023-10-06 17:52:38 +00:00
|
|
|
makedepends=(cmake
|
2023-10-17 12:51:20 +00:00
|
|
|
dav1d
|
2023-10-06 17:52:38 +00:00
|
|
|
gdk-pixbuf2
|
|
|
|
libjpeg
|
|
|
|
libpng
|
|
|
|
rav1e)
|
|
|
|
depends=(aom
|
|
|
|
gcc-libs
|
|
|
|
glibc
|
|
|
|
libde265
|
2023-10-17 12:51:20 +00:00
|
|
|
libwebp
|
2023-10-06 17:52:38 +00:00
|
|
|
x265)
|
|
|
|
optdepends=('libjpeg: for heif-convert and heif-enc'
|
|
|
|
'libpng: for heif-convert and heif-enc'
|
2023-10-17 12:51:20 +00:00
|
|
|
'dav1d: dav1d encoder'
|
2023-05-09 01:15:03 +00:00
|
|
|
'rav1e: rav1e encoder')
|
|
|
|
source=(https://github.com/strukturag/libheif/releases/download/v$pkgver/libheif-$pkgver.tar.gz)
|
2023-11-03 17:43:58 +00:00
|
|
|
sha256sums=('8d5b6292e7931324f81f871f250ecbb9f874aa3c66b4f6f35ceb0bf3163b53ea')
|
2023-05-09 01:15:03 +00:00
|
|
|
|
|
|
|
build() {
|
2023-10-17 12:51:20 +00:00
|
|
|
cmake -B build -S $pkgname-$pkgver \
|
2023-05-09 01:15:03 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2023-10-17 12:51:20 +00:00
|
|
|
-DWITH_DAV1D=ON \
|
|
|
|
-DWITH_RAV1E=ON \
|
|
|
|
-DWITH_SvtEnc=OFF
|
2023-05-09 01:15:03 +00:00
|
|
|
cmake --build build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
|
}
|