template 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Template file for 'p7zip'
  2. pkgname=p7zip
  3. version=16.02
  4. revision=5
  5. wrksrc="${pkgname}_${version}"
  6. hostmakedepends="yasm nasm"
  7. short_desc="Command-line version of the 7zip compressed file archive"
  8. maintainer="Orphaned <orphan@voidlinux.org>"
  9. license="LGPL-2.1-or-later"
  10. homepage="http://p7zip.sourceforge.net/"
  11. distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}_${version}_src_all.tar.bz2"
  12. checksum=5eb20ac0e2944f6cb9c2d51dd6c4518941c185347d4089ea89087ffdd6e2341f
  13. do_configure() {
  14. case "$XBPS_TARGET_MACHINE" in
  15. i686*) cp makefile.linux_x86_asm_gcc_4.X makefile.machine;;
  16. x86_64*) cp makefile.linux_amd64_asm makefile.machine;;
  17. *) cp makefile.linux_any_cpu_gcc_4.X makefile.machine;;
  18. esac
  19. sed -e "s,g++,${CXX}," -i makefile.machine
  20. sed -e "s,gcc,${CC}," -i makefile.machine
  21. }
  22. do_build() {
  23. make all3 OPTFLAGS="$CXXFLAGS" ${makejobs}
  24. }
  25. do_install() {
  26. make install DEST_DIR="${DESTDIR}" DEST_HOME="/usr" \
  27. DEST_MAN="/usr/share/man" \
  28. DEST_SHARE_DOC="/usr/share/doc/${pkgname}"
  29. find ${DESTDIR}/usr/share/doc/$pkgname -type d -exec chmod 755 {} \;
  30. mkdir -p ${DESTDIR}/usr/share/licenses/p7zip/
  31. mv ${DESTDIR}/usr/share/doc/p7zip/DOC/copying.txt \
  32. ${DESTDIR}/usr/share/licenses/p7zip/LICENSE
  33. }