cruxports/libheif/Pkgfile

23 lines
600 B
Plaintext
Raw Normal View History

2022-02-26 19:04:55 +00:00
# Description: library for fast image processing
# URL: https://github.com/strukturag/libheif/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: libde265
2023-02-10 14:19:19 +00:00
# Nice to have: x265 dav1d
2022-02-26 19:04:55 +00:00
name=libheif
2023-02-17 14:35:05 +00:00
version=1.15.1
2022-02-26 19:04:55 +00:00
release=1
source=(https://github.com/strukturag/$name/releases/download/v$version/$name-$version.tar.gz)
build() {
2023-02-10 14:19:19 +00:00
mkdir build && cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_C_FLAGS="$CFLAGS" \
../$name-$version
2022-11-27 12:32:26 +00:00
2023-02-10 14:19:19 +00:00
ninja -j ${JOBS:-1}
DESTDIR=$PKG ninja install
2022-02-26 19:04:55 +00:00
}