gtk/playonlinux/PKGBUILD
2016-06-08 14:36:31 +01:00

29 lines
1.0 KiB
Bash

pkgname=playonlinux
pkgver=4.2.10
pkgrel=2
pkgdesc="GUI for managing Windows programs under linux"
url="http://www.playonlinux.com/"
license=('GPL')
depends=('wine' 'imagemagick' 'xterm' 'wxpython' 'cabextract' 'unzip' 'mesa-demos'
'xdg-user-dirs' 'gnu-netcat' 'gnupg' 'icoutils' 'libxmu' 'wget' 'p7zip')
arch=('any')
source=(http://www.playonlinux.com/script_files/PlayOnLinux/${pkgver/.0/}/PlayOnLinux_${pkgver/.0/}.tar.gz)
options=(!strip)
md5sums=('9869697c13010e88cf68607cea334dbd')
screenshot=('http://i.imgur.com/77mGY.png')
package() {
cd "$srcdir/$pkgname"
install -d $pkgdir/usr/share/$pkgname
install -d $pkgdir/usr/bin
cp -r $srcdir/$pkgname/ $pkgdir/usr/share/
echo "#!/bin/bash" > $pkgdir/usr/bin/$pkgname
echo "/usr/share/$pkgname/$pkgname \"\$@\"" >> $pkgdir/usr/bin/$pkgname
chmod +x $pkgdir/usr/bin/$pkgname
install -D -m644 $srcdir/$pkgname/etc/PlayOnLinux.desktop $pkgdir/usr/share/applications/playonlinux.desktop
sed -i "s/ %F//g" $pkgdir/usr/share/applications/playonlinux.desktop
}