mirror of
https://gitdl.cn/https://github.com/chakralinux/gtk.git
synced 2025-02-19 14:15:34 +08:00
playonlinux: rebuild against new imagemagick
This commit is contained in:
parent
04b7e76e0f
commit
3528d6abb1
41
playonlinux/PKGBUILD
Normal file
41
playonlinux/PKGBUILD
Normal file
@ -0,0 +1,41 @@
|
||||
# Maintainer: Jeff Haung <s8321414[at]gmail[dot]com>
|
||||
# Original maintainer on CCR: Giuseppe Calà <jiveaxe@gmail.com>
|
||||
|
||||
pkgname=playonlinux
|
||||
pkgver=4.2.5
|
||||
pkgrel=4
|
||||
pkgdesc="GUI for managing Windows programs under linux"
|
||||
url="http://www.playonlinux.com/"
|
||||
license=('GPL')
|
||||
depends=('wine' 'imagemagick' 'xterm' 'wxpython2.8' '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
|
||||
PlayOnLinux.desktop
|
||||
use-python2.patch)
|
||||
options=(!strip)
|
||||
md5sums=('35e3a7f88da2f6b1cbc890d219fe5f71'
|
||||
'ad300503f8937ca93eae9180687d4e88'
|
||||
'613ac5b3efefd2ea769e1b66a7c7b804')
|
||||
screenshot=('http://i.imgur.com/77mGY.png')
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname"
|
||||
|
||||
patch -Np1 -i ../use-python2.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
|
||||
|
||||
# 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/playonlinux32.png $pkgdir/usr/share/pixmaps/playonlinux32.png
|
||||
install -D -m644 $srcdir/PlayOnLinux.desktop $pkgdir/usr/share/applications/playonlinux.desktop
|
||||
}
|
||||
|
12
playonlinux/PlayOnLinux.desktop
Normal file
12
playonlinux/PlayOnLinux.desktop
Normal file
@ -0,0 +1,12 @@
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Encoding=UTF-8
|
||||
Name=PlayOnLinux
|
||||
GenericName=PlayOnLinux
|
||||
Comment=PlayOnLinux
|
||||
Type=Application
|
||||
Exec=playonlinux
|
||||
Icon=playonlinux32
|
||||
Categories=PlayOnLinux;
|
||||
Name[fr_FR]=PlayOnLinux
|
||||
Categories=Application;Game;
|
24
playonlinux/use-python2.patch
Normal file
24
playonlinux/use-python2.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff -Naur playonlinux-orig/playonlinux-pkg playonlinux/playonlinux-pkg
|
||||
--- playonlinux-orig/playonlinux-pkg 2013-12-31 11:05:37.000000000 +0100
|
||||
+++ playonlinux/playonlinux-pkg 2013-12-31 17:03:00.388368229 +0100
|
||||
@@ -29,7 +29,7 @@
|
||||
CURDIR="$(pwd)"
|
||||
export MACHTYPE
|
||||
cd "$WorkingDirectory"
|
||||
- python "$CURDIR/python/wrapper.py" "$CURDIR/bash/$(basename "$0")" "$@"
|
||||
+ python2 "$CURDIR/python/wrapper.py" "$CURDIR/bash/$(basename "$0")" "$@"
|
||||
else
|
||||
bash "$PLAYONLINUX/bash/$(basename "$0")" "$@"
|
||||
fi
|
||||
diff -Naur playonlinux-orig/playonlinux-url_handler playonlinux/playonlinux-url_handler
|
||||
--- playonlinux-orig/playonlinux-url_handler 2013-12-31 11:05:37.000000000 +0100
|
||||
+++ playonlinux/playonlinux-url_handler 2013-12-31 17:03:15.719362367 +0100
|
||||
@@ -29,7 +29,7 @@
|
||||
CURDIR="$(pwd)"
|
||||
export MACHTYPE
|
||||
cd "$WorkingDirectory"
|
||||
- python "$CURDIR/python/wrapper.py" "$CURDIR/bash/$(basename "$0")" "$@"
|
||||
+ python2 "$CURDIR/python/wrapper.py" "$CURDIR/bash/$(basename "$0")" "$@"
|
||||
else
|
||||
bash "$PLAYONLINUX/bash/$(basename "$0")" "$@"
|
||||
fi
|
Loading…
Reference in New Issue
Block a user