Guest User

sasquatch-git

a guest
Aug 13th, 2020
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.04 KB | None | 0 0
  1. pkgname=sasquatch-git
  2. pkgrel=4
  3. pkgver=r58.3e0cc40
  4. pkgdesc='Patched unsquashfs utility with support for vendor-specific SquashFS implementations'
  5. arch=('x86_64')
  6. url='https://github.com/devttys0/sasquatch'
  7. license=('unknown')
  8. depends=('lzo' 'xz' 'zlib')
  9. makedepends=('git')
  10. provides=('sasquatch')
  11. conflicts=('sasquatch')
  12. source=("${pkgname}::git+${url}.git"
  13.         'https://downloads.sourceforge.net/project/squashfs/squashfs/squashfs4.3/squashfs4.3.tar.gz')
  14. sha512sums=('SKIP'
  15.             '854ed7acc99920f24ecf11e0da807e5a2a162eeda55db971aba63a03f0da2c13b20ec0564a906c4b0e415bd8258b273a10208c7abc0704f2ceea773aa6148a79')
  16.  
  17. prepare() {
  18.     cd "${srcdir}/squashfs4.3"
  19.     patch -p0 < "${srcdir}/${pkgname}/patches/patch0.txt"
  20. }
  21.  
  22. pkgver() {
  23.     cd "${srcdir}/${pkgname}"
  24.     printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  25. }
  26.  
  27. build() {
  28.     cd "${srcdir}/squashfs4.3/squashfs-tools"
  29.     make EXTRA_CFLAGS=-fcommon
  30. }
  31.  
  32. package() {
  33.     cd "${srcdir}/squashfs4.3/squashfs-tools"
  34.     make INSTALL_DIR="${pkgdir}/usr/bin" install
  35. }
  36.  
Add Comment
Please, Sign In to add comment