talimat 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Description: Library that can create and read several streaming archive formats.
  2. # URL: http://people.freebsd.org/~kientzle/libarchive
  3. # Maintainer: kientzle at acm dot org
  4. # Packager: tnuttens at gmail dot com
  5. name=libarchive
  6. version=3.1.2
  7. release=1
  8. source=(http://www.libarchive.org/downloads/libarchive-$version.tar.gz
  9. http://downloads.nutyx.org/files/patchs/$name/$name-$version-mtree-fix-line-filename-length-calculation-01.patch
  10. http://downloads.nutyx.org/files/patchs/$name/$name-$version-limit-write-requests-to-at-most-INT_MAX-01.patch
  11. http://downloads.nutyx.org/files/patchs/$name/$name-$version-acl-01.patch
  12. http://downloads.nutyx.org/files/patchs/$name/$name-$version-sparce-mtree-01.patch
  13. )
  14. build() {
  15. cd $name-$version
  16. patch -Np1 -i ../$name-$version-mtree-fix-line-filename-length-calculation-01.patch
  17. patch -Np1 -i ../$name-$version-limit-write-requests-to-at-most-INT_MAX-01.patch
  18. patch -Np1 -i ../$name-$version-acl-01.patch
  19. patch -Np1 -i ../$name-$version-sparce-mtree-01.patch
  20. ./configure --prefix=/usr \
  21. --mandir=/usr/share/man \
  22. --bindir=/bin \
  23. --without-xml2 \
  24. --infodir=/usr/share/info
  25. make
  26. make DESTDIR=$PKG install
  27. mkdir $PKG/lib
  28. mv $PKG/usr/lib/libarchive.so.13.1.2 \
  29. $PKG/lib/
  30. for LIB in libarchive.so{,.13}
  31. do
  32. ln -sv libarchive.so.13.1.2 $PKG/lib/$LIB
  33. rm $PKG/usr/lib/$LIB
  34. ln -sv ../../lib/libarchive.so.13.1.2 \
  35. $PKG/usr/lib/$LIB
  36. done
  37. ln -sv ../../lib/libarchive.so.13.1.2 \
  38. $PKG/usr/lib/libarchive.so.13.1.2
  39. }