template 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Template file for 'mozjpeg'
  2. pkgname=mozjpeg
  3. version=3.3.1
  4. revision=1
  5. #wrksrc=
  6. #create_wrksrc=yes
  7. #archs="i686 x86_64"
  8. #build_style=gnu-configure
  9. #configure_args=""
  10. #make_build_args=""
  11. #make_install_args=""
  12. #conf_files=""
  13. #make_dirs="/var/log/dir 0755 root root"
  14. hostmakedepends="gcc autoconf gettext automake libtool pkg-config nasm"
  15. makedepends=""
  16. depends="glibc"
  17. short_desc="Improved JPEG encoder from Mozilla"
  18. maintainer="reback00 <reback00@protonmail.com>"
  19. license="custom:libjpeg-turbo, BSD-3-Clause-Clear, Zlib"
  20. homepage="https://github.com/mozilla/mozjpeg"
  21. distfiles="https://github.com/mozilla/mozjpeg/archive/v${version}.tar.gz"
  22. checksum=aebbea60ea038a84a2d1ed3de38fdbca34027e2e54ee2b7d08a97578be72599d
  23. conflicts="libjpeg-turbo"
  24. do_build() {
  25. autoreconf -fiv
  26. ./configure --prefix=/usr --with-jpeg8 --mandir=/usr/share/man
  27. make
  28. }
  29. do_install() {
  30. make \
  31. DESTDIR="${DESTDIR}" \
  32. docdir="/usr/share/doc/${pkgname}" \
  33. exampledir="/usr/share/doc/${pkgname}" \
  34. install
  35. #install -D LICENSE.md "${DESTDIR}/usr/share/licenses/${pkgname}/LICENSE"
  36. vlicense LICENSE.md
  37. install -m644 jpegint.h "${DESTDIR}/usr/include"
  38. }