From a715a8e6956b20fc030eec8d50e9a7d89d097323 Mon Sep 17 00:00:00 2001 From: Coelacanthus Date: Mon, 25 Oct 2021 20:04:38 +0800 Subject: feat: add pkg mozjpeg and wget2 (#6) * feat: add pkg mozjpeg * feat: add pkg wget2 Signed-off-by: Coelacanthus --- repo/mozjpeg/PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 repo/mozjpeg/PKGBUILD (limited to 'repo/mozjpeg/PKGBUILD') diff --git a/repo/mozjpeg/PKGBUILD b/repo/mozjpeg/PKGBUILD new file mode 100644 index 0000000..270e19e --- /dev/null +++ b/repo/mozjpeg/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: afontenot +# Contributor: Gaetan Bisson +# Contributor: Allan McRae +# Contributor: Simone Sclavi 'Ito' +# Contributor: N30N + +pkgname="mozjpeg" +pkgver=4.0.3 +pkgrel=1 +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=("glibc" "libpng") +makedepends=("nasm" "cmake") +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") +sha1sums=('8e9272a8ec1429638febd6897664c575bdd50ecb') + +provides=("libjpeg" "libjpeg.so" "turbojpeg" "libjpeg-turbo") +conflicts=("libjpeg" "mozjpeg-git" "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" +} -- cgit v1.3.1