Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
2.4 KiB

  1. # Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com>
  2. # Contributor: Laurent Carlier <lordheavym@gmail.com>
  3. # Contributor: K. Hampf <khampf@users.sourceforge.net>
  4. # Contributor: Skunnyk <skunnyk@archlinux.fr>
  5. pkgname=playonlinux
  6. pkgver=4.2.10
  7. pkgrel=1
  8. pkgdesc="GUI for managing Windows programs under linux"
  9. url="http://www.playonlinux.com/"
  10. license=('GPL')
  11. depends=('lib32-libpcap' 'imagemagick' 'xterm' 'wxpython2.8' 'cabextract' 'unzip' 'mesa-demos' 'gnupg'
  12. 'icoutils' 'xdg-user-dirs' 'libxmu' 'netcat' 'wget' 'p7zip' 'lsb-release')
  13. arch=('any')
  14. source=(
  15. "http://www.playonlinux.com/script_files/PlayOnLinux/${pkgver/.0/}/PlayOnLinux_${pkgver/.0/}.tar.gz"
  16. '0001-remove-menuitems.patch'
  17. '0002-add-shortcutitems.patch'
  18. '0003-add-addremoveprograms.patch'
  19. '0006-disable-updatenotification.patch'
  20. '0007-disable-closingandwinemessage.patch'
  21. '0008-typofix.patch'
  22. '0009-patch_disable-crashdialogs.patch'
  23. )
  24. options=(!strip)
  25. md5sums=('9869697c13010e88cf68607cea334dbd'
  26. '7c133fe8a4561ad0c4e0f9a61624e891'
  27. '9d77df2099357504251e1e2dc2d2af97'
  28. 'b66fe7f5a15550b18486914b41b0a619'
  29. '894c83207ad7d8301708f30babb426fc'
  30. '2500bd31bcaf05249cd437b8da0b9402'
  31. 'eaf67372414a5144fa1da42688f24284'
  32. '85529e015070658c50510c515f098072')
  33. package() {
  34. cd "${srcdir}/${pkgname}"
  35. patch -Np1 -i "${srcdir}/0001-remove-menuitems.patch"
  36. patch -Np1 -i "${srcdir}/0002-add-shortcutitems.patch"
  37. patch -Np1 -i "${srcdir}/0003-add-addremoveprograms.patch"
  38. patch -Np1 -i "${srcdir}/0006-disable-updatenotification.patch"
  39. patch -Np1 -i "${srcdir}/0007-disable-closingandwinemessage.patch"
  40. patch -Np1 -i "${srcdir}/0008-typofix.patch"
  41. patch -Np1 -i "${srcdir}/0009-patch_disable-crashdialogs.patch"
  42. install -d ${pkgdir}/usr/share/${pkgname}
  43. install -d ${pkgdir}/usr/bin
  44. cp -r ${srcdir}/${pkgname}/ ${pkgdir}/usr/share/
  45. echo "#!/bin/bash" > ${pkgdir}/usr/bin/${pkgname}
  46. echo "/usr/share/${pkgname}/${pkgname} \"\$@\"" >> ${pkgdir}/usr/bin/${pkgname}
  47. chmod +x ${pkgdir}/usr/bin/${pkgname}
  48. chmod +x ${pkgdir}/usr/share/${pkgname}/bash/winexec
  49. # Needed for wxpython2.8 support, wxpython 3.0 is buggy with POL
  50. sed -i "s/wxversion.ensureMinimal/wxversion.select/g" ${pkgdir}/usr/share/${pkgname}/python/mainwindow.py
  51. install -D -m644 ${srcdir}/${pkgname}/etc/PlayOnLinux.desktop ${pkgdir}/usr/share/applications/playonlinux.desktop
  52. sed -i "s/ %F//g" ${pkgdir}/usr/share/applications/playonlinux.desktop
  53. }