makedeb


libjxl 0.6.1-1


JPEG XL image format reference implementation

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for libjxl.

# Maintainer: hiddeninthesand <hiddeninthesand at pm dot me>

pkgname='libjxl'
_gitname='libjxl'
pkgver='0.6.1'
pkgrel='1'
pkgdesc='JPEG XL image format reference implementation'
arch=('x86_64')
license=('BSD')
url='https://github.com/libjxl/libjxl'
makedepends=('cmake' 'pkg-config' 'libbrotli-dev' 'libgflags-dev')
depends=('libgif-dev' 'libjpeg-dev' 'libopenexr-dev' 'libpng-dev' 'libwebp-dev')
source=("git+${url}.git#tag=v${pkgver}")
conflicts=("${_gitname}-git" "${_gitname}-bin")
sha256sums=('SKIP')

prepare() {
    cd "${srcdir}/${_gitname}"
    git submodule update --init --recursive --depth 1 --recommend-shallow
    mkdir "build"
    cd "build"
    cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX:PATH='/usr' ..
}

build() {
    cd "${srcdir}/${_gitname}/build"
    cmake --build . --
}

package() {
    cd "${srcdir}/${_gitname}/build"
    make DESTDIR="${pkgdir}" install
}