libjpeg-turbo 3.0.1-1

This commit is contained in:
xhaa123 2024-04-17 09:52:00 +08:00
commit f2c7cc73bb

36
PKGBUILD Normal file
View File

@ -0,0 +1,36 @@
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Future Linux Team <future_linux@163.com>
pkgname=libjpeg-turbo
pkgver=3.0.1
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' 'ninja' 'nasm')
source=(https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz)
sha256sums=(22429507714ae147b3acacd299e82099fce5d9f456882fc28e252e4579ba2a75)
build() {
cd ${pkgname}-${pkgver}
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RELEASE \
-DENABLE_STATIC=FALSE \
-DCMAKE_INSTALL_DEFAULT_LIBDIR=lib64 \
-DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${pkgname}-${pkgver} \
-B build
cmake --build build
}
package() {
cd ${pkgname}-${pkgver}
DESTDIR=${pkgdir} cmake --install build
}