Advertisement
Guest User

Untitled

a guest
Dec 8th, 2021
398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. ## sasquatch PKGBUILD customization to make it work again.
  2.  
  3. # $Id$
  4. # Maintainer: Timo Sarawinski <timo@muhviehstarr.de>
  5. # Original TU: Jeff Mickey <j@codemac.net>
  6. # Contributor: Patch by devttys0 https://github.com/devttys0/sasquatch
  7.  
  8. pkgname=sasquatch
  9. _origpkgname=squashfs-tools
  10. pkgver=4.3
  11. pkgrel=7
  12. pkgdesc="Tools for squashfs, a highly compressed read-only filesystem for Linux."
  13. url="https://github.com/devttys0/sasquatch"
  14. license=("GPL")
  15. arch=('i686' 'x86_64')
  16. depends=('gzip' 'zlib' 'lzo' 'xz' 'lz4')
  17. #####
  18. source=('git+https://github.com/devttys0/sasquatch'
  19. 'read_fragment_table_n_stack_overflow-fix.patch'
  20. 'http://raw.githubusercontent.com/devttys0/sasquatch/30a116d3f72785c62481ccc24b41506beca6b718/build.sh'
  21. 'http://raw.githubusercontent.com/devttys0/sasquatch/30a116d3f72785c62481ccc24b41506beca6b718/patches/patch1.txt'
  22. )
  23.  
  24. sha256sums=('SKIP'
  25. '120c2d208085129235bf998b1c22abee19db26120a98174b9beb5edd7b9c84e9'
  26. 'SKIP'
  27. 'SKIP')
  28. #####
  29.  
  30. build() {
  31. cd ${srcdir}/sasquatch/
  32. ##### next two lines seems unnecessary since the patches are
  33. ##### applied outside the build.sh file
  34. mv ../build.sh .
  35. chmod +x build.sh
  36. #####
  37. wget https://downloads.sourceforge.net/project/squashfs/squashfs/squashfs4.3/squashfs4.3.tar.gz
  38. tar -zxvf squashfs4.3.tar.gz
  39. cd squashfs4.3
  40. #####
  41. mv ../../../src/patch1.txt ../patches/
  42. #####
  43.  
  44. patch -p0 < ../patches/patch0.txt
  45.  
  46. #####
  47. patch -p0 < ../patches/patch1.txt
  48. #####
  49.  
  50. cd squashfs-tools
  51.  
  52. #####
  53. sed -i '/CFLAGS += -DGZIP_SUPPORT/a CFLAGS += -Wno-error=misleading-indentation' Makefile
  54. #####
  55.  
  56. patch -p0 -i "${srcdir}/read_fragment_table_n_stack_overflow-fix.patch"
  57. make
  58. }
  59.  
  60. package() {
  61. cd ${srcdir}/sasquatch/squashfs4.3/squashfs-tools
  62. make INSTALL_DIR="${pkgdir}"/usr/bin install
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement