PKGBUILDs/extra/libheif/PKGBUILD

31 lines
928 B
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>
# - remove make/opt depends on svt-av1
pkgname=libheif
2023-06-03 18:25:03 +00:00
pkgver=1.16.2
pkgrel=1
2023-05-09 01:15:03 +00:00
pkgdesc='HEIF file format decoder and encoder'
arch=(x86_64)
url='https://github.com/strukturag/libheif'
license=(GPL3)
makedepends=(cmake libjpeg libpng gdk-pixbuf2 rav1e)
depends=(libde265 x265 aom dav1d)
optdepends=('libjpeg: for heif-convert and heif-enc' 'libpng: for heif-convert and heif-enc'
'rav1e: rav1e encoder')
source=(https://github.com/strukturag/libheif/releases/download/v$pkgver/libheif-$pkgver.tar.gz)
2023-06-03 18:25:03 +00:00
sha256sums=('7f97e4205c0bd9f9b8560536c8bd2e841d1c9a6d610401eb3eb87ed9cdfe78ea')
2023-05-09 01:15:03 +00:00
build() {
cmake -B build -S $pkgname-$pkgver\
-DCMAKE_INSTALL_PREFIX=/usr \
-DAOM_ENCODER=ON
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}