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.

54 lines
2.1 KiB

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