added extra/libheif

This commit is contained in:
Kevin Mihelich 2023-05-09 01:15:03 +00:00
parent 166b51aea3
commit 462a4b41bb

30
extra/libheif/PKGBUILD Normal file
View file

@ -0,0 +1,30 @@
# 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
pkgver=1.16.1
pkgrel=2
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)
sha256sums=('ac15b54b6d7c315710e156d119b8a1bfc89f29621e99222b2750b1f31c9c3558')
build() {
cmake -B build -S $pkgname-$pkgver\
-DCMAKE_INSTALL_PREFIX=/usr \
-DAOM_ENCODER=ON
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}