Advertisement
Guest User

PlayOnLinux SLKBUILD

a guest
May 2nd, 2012
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.90 KB | None | 0 0
  1. # vim: syn=sh:
  2. #Packager: JRD <jrd@salixos.org>
  3. #deps: cabextract,imagemagick,lynx,lzma,python,wine,wxGTK,wxPython
  4.  
  5. pkgname=playonlinux
  6. _pkgnamesrc='PlayOnLinux'
  7. pkgver=4.0.18
  8. pkgrel=1cp
  9. source=(http://repository.playonlinux.com/$_pkgnamesrc/$pkgver/${_pkgnamesrc}_$pkgver.tar.gz)
  10. sourcetemplate=http://enialis.net/~jrd/salix/$pkgname/$pkgver-\$arch-$pkgrel/
  11. docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "translators")
  12. url=http://www.playonlinux.com
  13.  
  14. slackdesc=\
  15. (
  16. #|-----handy-ruler------------------------------------------------------|
  17. "$pkgname (Easily play Windows games under linux)"
  18. "PlayOnLinux is a piece of software which allows you to easily install"
  19. "and use numerous games and softwares designed to run with"
  20. "Microsoft's Windows using wine."
  21. )
  22.  
  23.  
  24. build() {
  25.   cd $startdir/src/ || return 1
  26.   DESTDIR=$startdir/pkg
  27.   mkdir -p $DESTDIR/usr/share/icons/hicolor $DESTDIR/usr/share/applications $DESTDIR/usr/bin
  28.   cp -r $pkgname $DESTDIR/usr/share
  29.   # make icons
  30.   for i in playonlinux/etc/playonlinux*.png; do echo
  31.     ICONSIZE=$(identify -format '%G' $i)
  32.     mkdir -p $DESTDIR/usr/share/icons/hicolor/$ICONSIZE/apps/
  33.     cp $i $DESTDIR/usr/share/icons/hicolor/$ICONSIZE/apps/$pkgname.png
  34.   done
  35.   # make the .desktop file
  36.   cat <<EOF > $DESTDIR/usr/share/applications/$pkgname.desktop
  37. [Desktop Entry]
  38. Type=Application
  39. Encoding=UTF-8
  40. Name=PlayOnLinux
  41. Comment=PlayOnLinux
  42. Exec=$pkgname
  43. Icon=$pkgname
  44. Terminal=false
  45. Categories=Game;
  46. EOF
  47.   cat <<EOF > $DESTDIR/usr/bin/$pkgname
  48. #!/bin/sh
  49. /usr/share/$pkgname/$pkgname "\$@"
  50. EOF
  51.   chmod +x $DESTDIR/usr/bin/$pkgname
  52.   cat <<EOF > $DESTDIR/usr/bin/$pkgname-daemon
  53. #!/bin/sh
  54. /usr/share/$pkgname/$pkgname-daemon "\$@"
  55. EOF
  56.   chmod +x $DESTDIR/usr/bin/$pkgname-daemon
  57.   cat <<EOF > $DESTDIR/usr/bin/$pkgname-pkg
  58. #!/bin/sh
  59. /usr/share/$pkgname/$pkgname-pkg "\$@"
  60. EOF
  61.   chmod +x $DESTDIR/usr/bin/$pkgname-pkg
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement