Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # vim: syn=sh:
- #Packager: JRD <jrd@salixos.org>
- #deps: cabextract,imagemagick,lynx,lzma,python,wine,wxGTK,wxPython
- pkgname=playonlinux
- _pkgnamesrc='PlayOnLinux'
- pkgver=4.0.18
- pkgrel=1cp
- source=(http://repository.playonlinux.com/$_pkgnamesrc/$pkgver/${_pkgnamesrc}_$pkgver.tar.gz)
- sourcetemplate=http://enialis.net/~jrd/salix/$pkgname/$pkgver-\$arch-$pkgrel/
- docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "translators")
- url=http://www.playonlinux.com
- slackdesc=\
- (
- #|-----handy-ruler------------------------------------------------------|
- "$pkgname (Easily play Windows games under linux)"
- "PlayOnLinux is a piece of software which allows you to easily install"
- "and use numerous games and softwares designed to run with"
- "Microsoft's Windows using wine."
- )
- build() {
- cd $startdir/src/ || return 1
- DESTDIR=$startdir/pkg
- mkdir -p $DESTDIR/usr/share/icons/hicolor $DESTDIR/usr/share/applications $DESTDIR/usr/bin
- cp -r $pkgname $DESTDIR/usr/share
- # make icons
- for i in playonlinux/etc/playonlinux*.png; do echo
- ICONSIZE=$(identify -format '%G' $i)
- mkdir -p $DESTDIR/usr/share/icons/hicolor/$ICONSIZE/apps/
- cp $i $DESTDIR/usr/share/icons/hicolor/$ICONSIZE/apps/$pkgname.png
- done
- # make the .desktop file
- cat <<EOF > $DESTDIR/usr/share/applications/$pkgname.desktop
- [Desktop Entry]
- Type=Application
- Encoding=UTF-8
- Name=PlayOnLinux
- Comment=PlayOnLinux
- Exec=$pkgname
- Icon=$pkgname
- Terminal=false
- Categories=Game;
- EOF
- cat <<EOF > $DESTDIR/usr/bin/$pkgname
- #!/bin/sh
- /usr/share/$pkgname/$pkgname "\$@"
- EOF
- chmod +x $DESTDIR/usr/bin/$pkgname
- cat <<EOF > $DESTDIR/usr/bin/$pkgname-daemon
- #!/bin/sh
- /usr/share/$pkgname/$pkgname-daemon "\$@"
- EOF
- chmod +x $DESTDIR/usr/bin/$pkgname-daemon
- cat <<EOF > $DESTDIR/usr/bin/$pkgname-pkg
- #!/bin/sh
- /usr/share/$pkgname/$pkgname-pkg "\$@"
- EOF
- chmod +x $DESTDIR/usr/bin/$pkgname-pkg
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement