51 lines
1.2 KiB
Bash
51 lines
1.2 KiB
Bash
# Template file for 'libjpeg-turbo'
|
|
pkgname=libjpeg-turbo
|
|
version=2.0.1
|
|
revision=2
|
|
build_style=cmake
|
|
configure_args="-DWITH_JPEG8=1 -DCMAKE_INSTALL_LIBDIR=/usr/lib"
|
|
hostmakedepends="yasm"
|
|
short_desc="Derivative of libjpeg which uses SIMD instructions"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="IJG, BSD-3-Clause, Zlib"
|
|
homepage="https://libjpeg-turbo.org/"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=e5f86cec31df1d39596e0cca619ab1b01f99025a27dafdfc97a30f3a12f866ff
|
|
|
|
provides="jpeg-8_1"
|
|
replaces="jpeg>=0"
|
|
|
|
post_install() {
|
|
vlicense LICENSE.md
|
|
|
|
vinstall jpegint.h 644 usr/include
|
|
|
|
rm -r ${DESTDIR}/usr/share/doc
|
|
rm -f ${DESTDIR}/usr/bin/tjbench
|
|
rm -f ${DESTDIR}/usr/bin/jpegut
|
|
rm -f ${DESTDIR}/usr/bin/jpgtest
|
|
}
|
|
|
|
libjpeg-turbo-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
provides="jpeg-devel-8_1"
|
|
replaces="jpeg-devel>=0"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|
|
|
|
libjpeg-turbo-tools_package() {
|
|
provides="jpeg-tools-8_1"
|
|
replaces="jpeg-tools>=0"
|
|
short_desc+=" - bundled tools"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/share/man
|
|
}
|
|
}
|