Browse Source

PlayOnLinux: Add PKGBUILD + Typofix patch

master
Fincer 7 years ago
parent
commit
262737789a
2 changed files with 79 additions and 0 deletions
  1. +25
    -0
      playonlinux/0008-typofix.patch
  2. +54
    -0
      playonlinux/PKGBUILD

+ 25
- 0
playonlinux/0008-typofix.patch View File

@ -0,0 +1,25 @@
--- a/lib/playonlinux.lib
+++ b/lib/playonlinux.lib
@@ -42,7 +42,7 @@
mkdir -p "$POL_USER_ROOT/configurations/reports/"
mkdir -p "$POL_USER_ROOT/tmp"
mkdir -p "$POL_USER_ROOT/logs"
- mkdir -p "$POL_USER_ROOT/ressources"
+ mkdir -p "$POL_USER_ROOT/resources"
mkdir -p "$POL_USER_ROOT/icones/full_size"
mkdir -p "$POL_USER_ROOT/icones/32"
if [ "$POL_OS" == "Linux" ]; then
--- a/lib/scripts.lib
+++ b/lib/scripts.lib
@@ -568,8 +568,8 @@
local ATTEMPT
[ "$4" ] && ATTEMPT="$4" || ATTEMPT=1
local FILE="${URL##*/}"
- mkdir -p "$POL_USER_ROOT/ressources/$SUBFOLDER"
- cd "$POL_USER_ROOT/ressources/$SUBFOLDER" || POL_Debug_Fatal "Resource subfolder $SUBFOLDER does not exist"
+ mkdir -p "$POL_USER_ROOT/resources/$SUBFOLDER"
+ cd "$POL_USER_ROOT/resources/$SUBFOLDER" || POL_Debug_Fatal "Resource subfolder $SUBFOLDER does not exist"
if [ -e "$FILE" ] && [ "$(POL_MD5_file "$FILE")" = "$SERVER_MD5" ]
then
POL_Debug_Message "Resource already present"

+ 54
- 0
playonlinux/PKGBUILD View File

@ -0,0 +1,54 @@
# Maintainer: Laurent Carlier <lordheavym@gmail.com>
# Contributor: K. Hampf <khampf@users.sourceforge.net>
# Contributor: Skunnyk <skunnyk@archlinux.fr>
pkgname=playonlinux
pkgver=4.2.10
pkgrel=1
pkgdesc="GUI for managing Windows programs under linux"
url="http://www.playonlinux.com/"
license=('GPL')
depends=('lib32-libpcap' 'imagemagick' 'xterm' 'wxpython2.8' 'cabextract' 'unzip' 'mesa-demos' 'gnupg'
'icoutils' 'xdg-user-dirs' 'libxmu' 'netcat' 'wget' 'p7zip' )
arch=('any')
source=(http://www.playonlinux.com/script_files/PlayOnLinux/${pkgver/.0/}/PlayOnLinux_${pkgver/.0/}.tar.gz
0001-remove-menuitems.patch
0002-add-shortcutitems.patch
0003-add-addremoveprograms.patch
0006-disable-updatenotification.patch
0007-disable-closingandwinemessage.patch
0008-typofix.patch)
options=(!strip)
md5sums=('9869697c13010e88cf68607cea334dbd'
'7c133fe8a4561ad0c4e0f9a61624e891'
'9d77df2099357504251e1e2dc2d2af97'
'b66fe7f5a15550b18486914b41b0a619'
'894c83207ad7d8301708f30babb426fc'
'2500bd31bcaf05249cd437b8da0b9402'
'eaf67372414a5144fa1da42688f24284')
package() {
cd "$srcdir/$pkgname"
patch -Np1 -i "$srcdir/0001-remove-menuitems.patch"
patch -Np1 -i "$srcdir/0002-add-shortcutitems.patch"
patch -Np1 -i "$srcdir/0003-add-addremoveprograms.patch"
patch -Np1 -i "$srcdir/0006-disable-updatenotification.patch"
patch -Np1 -i "$srcdir/0007-disable-closingandwinemessage.patch"
patch -Np1 -i "$srcdir/0008-typofix.patch"
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
chmod +x $pkgdir/usr/share/$pkgname/bash/winexec
# Needed for wxpython2.8 support, wxpython 3.0 is buggy with POL
sed -i "s/wxversion.ensureMinimal/wxversion.select/g" $pkgdir/usr/share/$pkgname/python/mainwindow.py
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
}

Loading…
Cancel
Save