45 lines
1.4 KiB
Text
45 lines
1.4 KiB
Text
# Maintainer: afontenot <adam.m.fontenot@gmail.com>
|
|
# Contributor: Gaetan Bisson <bisson@archlinux.org>
|
|
# Contributor: Allan McRae <allan@archlinux.org>
|
|
# Contributor: Simone Sclavi 'Ito' <darkhado@gmail.com>
|
|
# Contributor: N30N <archlinux@alunamation.com>
|
|
|
|
pkgname="mozjpeg"
|
|
pkgver=4.0.0
|
|
pkgrel=0
|
|
pkgdesc="JPEG image codec with accelerated baseline decoding and superior encoding"
|
|
url="https://github.com/mozilla/mozjpeg"
|
|
license="BSD"
|
|
arch="i686 x86_64 armv7h"
|
|
depends="musl"
|
|
makedepends="nasm autoconf automake libtool cmake libpng-dev"
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::$url/archive/v${pkgver}.tar.gz"
|
|
|
|
provides="libjpeg libjpeg.so turbojpeg libjpeg-turbo"
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DENABLE_STATIC=FALSE -DPNG_SUPPORTED=TRUE -DWITH_JPEG8=TRUE .
|
|
make
|
|
}
|
|
|
|
# much too slow for default, can be enabled if desired
|
|
#check() {
|
|
# cd "${srcdir}/${pkgname}-${pkgver}"
|
|
# make test
|
|
#}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make \
|
|
DESTDIR="${pkgdir}" \
|
|
docdir="/usr/share/doc/${pkgname}" \
|
|
exampledir="/usr/share/doc/${pkgname}" \
|
|
install
|
|
|
|
install -D LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
install -m644 jpegint.h "${pkgdir}/usr/include"
|
|
}
|
|
|
|
sha512sums="1545c10e9e0f960e73db1a940ee7dc25c5ade3b848b3be74baf28aa11a3d9255f7f4442e769e31c7d71db087c2c187a469a9a59545a28e6b1ba3489a54b3716f mozjpeg-4.0.0.tar.gz"
|