Advertisement
Guest User

hfsprogs PKGBUILD

a guest
Oct 14th, 2012
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. # Maintainer: Prashant Vaibhav <mercurysquad+arch@gmail.com>
  2. # Previous Maintainer: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
  3. # Contributor: Rubin Simons <rubin@xs4all.nl>
  4.  
  5. pkgname=hfsprogs
  6. pkgver=332.25
  7. pkgrel=5
  8. pkgdesc="HFS/HFS+ user space utils"
  9. arch=('i686' 'x86_64')
  10. depends=('libbsd')
  11. license=('custom:APSL')
  12. url="http://www.opensource.apple.com/"
  13. source=(http://ftp.de.debian.org/debian/pool/main/h/hfsprogs/hfsprogs_332.25.orig.tar.gz \
  14. http://ftp.de.debian.org/debian/pool/main/h/hfsprogs/hfsprogs_332.25-10.debian.tar.gz \
  15. license
  16. makefile.patch)
  17. md5sums=('261c3de5ec0dcf5244e3f60d79c1d6f1'
  18. 'f3d04a0380ecfbb7751abed53fb5525d'
  19. '771f0a6036a80d929c07df49f9a3d909'
  20. 'e2429944c0192d817c700b8f0dffce6e')
  21. build() {
  22. cd $srcdir/diskdev_cmds-${pkgver}
  23. patch -Np1 -i $srcdir/debian/patches/00-create_makefiles.patch
  24. patch -Np1 -i $srcdir/debian/patches/10-linux_specific_code.patch
  25. patch -Np1 -i $srcdir/debian/patches/20-apple_specific_files.patch
  26. patch -Np1 -i $srcdir/debian/patches/25-64-bit-fix.patch
  27. patch -Np1 -i $srcdir/debian/patches/30-formatting_strings.patch
  28. patch -Np1 -i $srcdir/debian/patches/40-printf_types.patch
  29. patch -Np1 -i $srcdir/debian/patches/50-typo-new_fs-manpage.diff
  30. patch -Np1 -i $srcdir/debian/patches/60-hfs-wrapper-boot-in-usr-share.diff
  31. patch -Np1 -i $srcdir/debian/patches/70-diskdev_cmds_system_check-332.14.patch
  32. patch -Np1 -i $srcdir/debian/patches/80-fix_manpages.patch
  33. patch -Np1 -i $srcdir/debian/patches/90-rename_dprintf.patch
  34. patch -Np1 -i $srcdir/debian/patches/91-remove-nils.patch
  35. patch -Np1 -i $srcdir/debian/patches/92-fix-types.patch
  36. patch -Np1 -i $srcdir/debian/patches/hfsplus-tools-332.14-fix-uuid.patch
  37. patch -Np0 -i "${srcdir}/makefile.patch" || return 1
  38. make -f Makefile.lnx
  39. }
  40.  
  41. package() {
  42. cd $srcdir/diskdev_cmds-${pkgver}
  43. install -d -m 755 "$pkgdir/usr/share/hfsprogs"
  44. install -m 644 newfs_hfs.tproj/hfsbootdata.img "$pkgdir/usr/share/hfsprogs/hfsbootdata"
  45. install -D -m755 newfs_hfs.tproj/newfs_hfs "$pkgdir/sbin/mkfs.hfsplus"
  46. install -D -m755 fsck_hfs.tproj/fsck_hfs "$pkgdir/sbin/fsck.hfsplus"
  47. install -D -m644 $startdir/license "$pkgdir/usr/share/licenses/hfsprogs/APSL"
  48. install -d -m 755 "$pkgdir/usr/share/man/man8/"
  49. install -m 644 newfs_hfs.tproj/newfs_hfs.8 "$pkgdir/usr/share/man/man8/mkfs.hfsplus.8"
  50. install -m 644 fsck_hfs.tproj/fsck_hfs.8 "$pkgdir/usr/share/man/man8/fsck.hfsplus.8"
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement