extra/libheif to 1.17.6-5

This commit is contained in:
Kevin Mihelich 2024-03-21 23:35:08 +00:00
parent bd03ca86b4
commit d88c14e542
3 changed files with 20 additions and 4 deletions

View file

@ -1,7 +1,7 @@
pkgbase = libheif
pkgdesc = An HEIF and AVIF file format decoder and encoder
pkgver = 1.17.6
pkgrel = 3
pkgrel = 5
url = https://github.com/strukturag/libheif
arch = x86_64
license = GPL3
@ -26,6 +26,8 @@ pkgbase = libheif
optdepends = rav1e: rav1e encoder
optdepends = svt-av1: svt-av1 encoder
source = https://github.com/strukturag/libheif/releases/download/v1.17.6/libheif-1.17.6.tar.gz
source = https://github.com/strukturag/libheif/commit/a911b26a902c5f89fee2dc20ac4dfaafcb8144ec.patch
sha256sums = 8390baf4913eda0a183e132cec62b875fb2ef507ced5ddddc98dfd2f17780aee
sha256sums = 53a7eeb0f0f1c9fb076a6f56c6753abf8e30cf625355c54e720cc028ae9c1ce9
pkgname = libheif

View file

@ -0,0 +1,5 @@
[libheif]
source = 'github'
github = 'strukturag/libheif'
use_max_tag = true
prefix = 'v'

View file

@ -6,7 +6,7 @@
pkgname=libheif
pkgver=1.17.6
pkgrel=3
pkgrel=5
pkgdesc='An HEIF and AVIF file format decoder and encoder'
arch=(x86_64)
url='https://github.com/strukturag/libheif'
@ -29,8 +29,17 @@ optdepends=('libjpeg: for heif-convert and heif-enc'
'dav1d: dav1d encoder'
'ffmpeg: hardware decode'
'rav1e: rav1e encoder')
source=(https://github.com/strukturag/libheif/releases/download/v$pkgver/libheif-$pkgver.tar.gz)
sha256sums=('8390baf4913eda0a183e132cec62b875fb2ef507ced5ddddc98dfd2f17780aee')
source=(
https://github.com/strukturag/libheif/releases/download/v$pkgver/libheif-$pkgver.tar.gz
https://github.com/strukturag/libheif/commit/a911b26a902c5f89fee2dc20ac4dfaafcb8144ec.patch
)
sha256sums=('8390baf4913eda0a183e132cec62b875fb2ef507ced5ddddc98dfd2f17780aee'
'53a7eeb0f0f1c9fb076a6f56c6753abf8e30cf625355c54e720cc028ae9c1ce9')
prepare() {
cd $pkgname-$pkgver
patch -Np1 -i ../a911b26a902c5f89fee2dc20ac4dfaafcb8144ec.patch # fix build against svt-av1 2.0.0
}
build() {
cmake -B build -S $pkgname-$pkgver \