mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
# Contributor: Adam Fontenot <fontenot@ucla.edu>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - remove make/opt depends on svt-av1, -DWITH_SvtEnc=OFF
|
|
|
|
pkgname=libheif
|
|
pkgver=1.17.3
|
|
pkgrel=1
|
|
pkgdesc='An HEIF and AVIF file format decoder and encoder'
|
|
arch=(x86_64)
|
|
url='https://github.com/strukturag/libheif'
|
|
license=(GPL3)
|
|
makedepends=(cmake
|
|
dav1d
|
|
gdk-pixbuf2
|
|
libjpeg
|
|
libpng
|
|
rav1e)
|
|
depends=(aom
|
|
gcc-libs
|
|
glibc
|
|
libde265
|
|
libwebp
|
|
x265)
|
|
optdepends=('libjpeg: for heif-convert and heif-enc'
|
|
'libpng: for heif-convert and heif-enc'
|
|
'dav1d: dav1d encoder'
|
|
'rav1e: rav1e encoder')
|
|
source=(https://github.com/strukturag/libheif/releases/download/v$pkgver/libheif-$pkgver.tar.gz)
|
|
sha256sums=('8d5b6292e7931324f81f871f250ecbb9f874aa3c66b4f6f35ceb0bf3163b53ea')
|
|
|
|
build() {
|
|
cmake -B build -S $pkgname-$pkgver \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DWITH_DAV1D=ON \
|
|
-DWITH_RAV1E=ON \
|
|
-DWITH_SvtEnc=OFF
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|