PKGBUILDs/extra/libheif/PKGBUILD

52 lines
1.3 KiB
Bash
Raw Normal View History

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
2024-11-12 12:25:04 +00:00
pkgver=1.19.3
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)
2024-07-11 12:41:34 +00:00
provides=('libheif.so')
2023-10-06 17:52:38 +00:00
makedepends=(cmake
2023-10-17 12:51:20 +00:00
dav1d
2023-11-23 15:59:18 +00:00
ffmpeg
2023-10-06 17:52:38 +00:00
gdk-pixbuf2
2024-10-31 23:16:49 +00:00
git
2024-09-17 13:13:21 +00:00
libjpeg-turbo
2023-10-06 17:52:38 +00:00
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)
2024-09-17 13:13:21 +00:00
optdepends=('libjpeg-turbo: for heif-convert and heif-enc'
2023-10-06 17:52:38 +00:00
'libpng: for heif-convert and heif-enc'
2023-10-17 12:51:20 +00:00
'dav1d: dav1d encoder'
2023-11-23 15:59:18 +00:00
'ffmpeg: hardware decode'
2023-05-09 01:15:03 +00:00
'rav1e: rav1e encoder')
2024-10-31 23:16:49 +00:00
source=(git+https://github.com/strukturag/libheif#tag=v$pkgver)
2024-11-12 12:25:04 +00:00
sha256sums=('0a521942091745f8a3377a94205b91bd2e4e51bf299ec86ff1e13897aacd46d5')
2023-05-09 01:15:03 +00:00
build() {
2024-11-07 01:12:18 +00:00
CXXFLAGS+=" -Wno-error=stringop-overflow"
2024-10-31 23:16:49 +00:00
cmake -B build -S $pkgname \
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 \
2023-11-23 15:59:18 +00:00
-DWITH_FFMPEG_DECODER=ON \
-DWITH_FFMPEG_DECODER_PLUGIN=ON \
2023-10-17 12:51:20 +00:00
-DWITH_SvtEnc=OFF
2023-05-09 01:15:03 +00:00
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}