Advertisement
Guest User

Untitled

a guest
Nov 21st, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. # Maintainer: Muflone http://www.muflone.com/contacts/english/
  2. # Contributor: laloch <lalochcz@gmail.com>
  3. # Contributor: TDY <tdy@gmx.com>
  4. # Contributor: Ivan Shapovalov <intelfx100@gmail.com>
  5.  
  6. pkgname=vdfuse
  7. pkgver=82a
  8. pkgrel=10
  9. _headers=svn-47049
  10. pkgdesc="A FUSE module for mounting VirtualBox disk images (VDI/VMDK/VHD) on the host"
  11. arch=('i686' 'x86_64')
  12. url="http://forums.virtualbox.org/viewtopic.php?f=26&t=33355"
  13. license=('GPL3')
  14. depends=('fuse' 'virtualbox' 'virtualbox-sdk')
  15. makedepends=('pkgconfig')
  16. install="${pkgname}.install"
  17. source=("http://ftp.de.debian.org/debian/pool/main/v/virtualbox/virtualbox_4.1.18-dfsg-2+deb7u5.debian.tar.gz"
  18. "https://github.com/muflone/virtualbox-includes/archive/${_headers}.tar.gz"
  19. "vdautomount"::"http://forums.virtualbox.org/download/file.php?id=2865"
  20. "add-typedef-to-PARTITIONING_TYPE_vd.h.patch"
  21. "init-VDINTERFACEERROR_vdfuse.c.patch")
  22. sha256sums=('ce8603827ab2d9a6b3ea5be2a1c93a7420a187abb05db5af1c67627b84b442bc'
  23. '357d0cc778f33684d158e60acae9478b26256af39b31bed19556c0928f133001'
  24. '28b4ce0e0ca72721e0dbbdc776e5c3aa47b160afa8538064497be68da4713493'
  25. '98f3a12fd288b650879822655c8c2ead10a630aa9637a186c7289c1f2f015c31'
  26. 'c4ae283a2f94ac81615c3b3d5f6a3c93d1d03438ee9f1e2520f8e2043b9aa1c0')
  27.  
  28. prepare() {
  29. [ -d "${srcdir}/includes" ] && rm -rf "${srcdir}/includes" ]
  30. cp -r "virtualbox-includes-${_headers}" "${srcdir}/includes"
  31. msg2 "Patching sources..."
  32. sed -i '1s,python,&2,' "${srcdir}/vdautomount"
  33. patch -p1 -i "add-typedef-to-PARTITIONING_TYPE_vd.h.patch"
  34. patch -p1 -i "init-VDINTERFACEERROR_vdfuse.c.patch"
  35. }
  36.  
  37. build() {
  38. cd "debian/${pkgname}"
  39. gcc "${pkgname}.c" -o "${pkgname}" \
  40. $(pkg-config --cflags --libs fuse) \
  41. -I"${srcdir}/includes" \
  42. -Wl,-rpath,/usr/lib/virtualbox/ \
  43. /usr/lib/virtualbox/VBoxDD.so \
  44. /usr/lib/virtualbox/VBoxDDU.so \
  45. -Wall $CFLAGS
  46. }
  47.  
  48. package() {
  49. install -m 755 -d "${pkgdir}/usr/bin"
  50. install -m 755 -t "${pkgdir}/usr/bin" \
  51. "debian/${pkgname}/${pkgname}" "vdautomount"
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement