pkgname=libjpeg-turbo pkgver=3.1.0 pkgrel=1 pkgdesc="JPEG image codec with accelerated baseline compression and decompression" arch=('x86_64') url="https://libjpeg-turbo.org/" license=('BSD-3-Clause' 'IJG') depends=('glibc') makedepends=('cmake' 'nasm') source=(https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz) sha256sums=(9564c72b1dfd1d6fe6274c5f95a8d989b59854575d4bbee44ade7bc17aa9bc93) build() { cd ${pkgname}-${pkgver} local cmake_args=( -B flarebird-build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE -DENABLE_STATIC=FALSE -DCMAKE_INSTALL_DEFAULT_LIBDIR=lib64 -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${pkgname}-${pkgver} -DCMAKE_INSTALL_LIBDIR=lib64 ) cmake ${cmake_args[@]} cmake --build flarebird-build } package() { cd ${pkgname}-${pkgver} DESTDIR=${pkgdir} cmake --install flarebird-build }