summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Shvelidze2015-11-13 15:07:35 +0400
committerNick Shvelidze2015-11-13 15:07:35 +0400
commite30ee2e3ae8a784f9e545d323a4819390cb0a443 (patch)
tree7035ee1b691a42b45fc4a0f5aa7c4b0895572ad5
parentb84288aeeb861d47ba21419d64bc6602e1c285fd (diff)
downloadaur-e30ee2e3ae8a784f9e545d323a4819390cb0a443.tar.gz
PlayOnLinux 5
-rw-r--r--.SRCINFO30
-rw-r--r--PKGBUILD50
-rw-r--r--PlayOnLinux.desktop9
3 files changed, 50 insertions, 39 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0dbd3c04d77..addeaf9e675 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,30 +1,22 @@
-pkgbase = playonlinux-git
+pkgbase = playonlinux5-git
pkgdesc = GUI for managing Windows programs under linux
- pkgver = 4.2.9.r1.g1157b14
+ pkgver = 5.0.0.g4440f79
pkgrel = 1
epoch = 1
url = http://www.playonlinux.com/
arch = any
license = GPL
depends = wine
- depends = imagemagick
- depends = xterm
- depends = wxpython2.8
- depends = cabextract
- depends = unzip
- depends = mesa-demos
- depends = gnupg
- depends = icoutils
- depends = xdg-user-dirs
- depends = libxmu
- depends = netcat
- depends = wget
- depends = p7zip
- provides = playonlinux
- conflicts = playonlinux
+ depends = maven
+ depends = jdk8-openjdk
+ depends = java-openjfx
+ depends = gradle
+ depends = java-gnome
+ provides = playonlinux5
+ conflicts = playonlinux5
options = !strip
- source = playonlinux::git://github.com/PlayOnLinux/POL-POM-4.git
+ source = playonlinux5::git://github.com/PlayOnLinux/POL-POM-5.git
md5sums = SKIP
-pkgname = playonlinux-git
+pkgname = playonlinux5-git
diff --git a/PKGBUILD b/PKGBUILD
index 3966b0ce5f2..b715a4e5b08 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,45 +1,55 @@
-# Maintainer: Justin Dray <justin@dray.be>
+# Maintainer: Nick Shvelidze <captain@pirrate.me>
+# Contributor: Justin Dray <justin@dray.be>
# Contributor: Laurent Carlier <lordheavym@gmail.com>
# Contributor: K. Hampf <khampf@users.sourceforge.net>
# Contributor: Skunnyk <skunnyk@archlinux.fr>
-_pkgname=playonlinux
+_pkgname=playonlinux5
pkgname=$_pkgname-git
-pkgver=4.2.9.r1.g1157b14
+pkgver=5.0.0.g4440f79
pkgrel=1
epoch=1
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' 'gnupg'
- 'icoutils' 'xdg-user-dirs' 'libxmu' 'netcat' 'wget' 'p7zip')
+depends=('wine' 'maven' 'jdk8-openjdk' 'java-openjfx' 'gradle' 'java-gnome')
arch=('any')
-provides='playonlinux'
-conflicts='playonlinux'
-source=("$_pkgname::git://github.com/PlayOnLinux/POL-POM-4.git")
+provides='playonlinux5'
+conflicts='playonlinux5'
+source=("$_pkgname::git://github.com/PlayOnLinux/POL-POM-5.git")
options=(!strip)
md5sums=('SKIP')
-pkgver() {
- cd "$_pkgname"
- git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
-}
+basedir=$(pwd)
+
+# No releases available yet
+# pkgver() {
+# cd "$_pkgname"
+# git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+# }
package() {
cd "$srcdir/$_pkgname"
- install -d "$pkgdir/usr/share/$_pkgname"
+ mkdir -p $pkgdir/.m2
+ export MVN_REPO=$pkgdir/.m2
+ export PATH=$PATH:$M2_HOME/bin
+ export JAVA_HOME="/usr/lib/jvm/java-8-openjdk"
+ mvn="mvn -Dmaven.repo.local=$MVN_REPO"
+
+ $mvn clean
+ $mvn assembly:assembly
+
+ install -d "$pkgdir/opt/$_pkgname"
install -d "$pkgdir/usr/bin"
- cp -r "$srcdir/$_pkgname/" "$pkgdir/usr/share/"
+ cp "$srcdir/$_pkgname/target/playonlinux-5.0-SNAPSHOT-jar-with-dependencies.jar" "$pkgdir/opt/$_pkgname/$_pkgname.jar"
rm -rf "$pkgdir/usr/share/$_pkgname/.git"
echo '#!/bin/bash' > "$pkgdir/usr/bin/$_pkgname"
- echo "/usr/share/$_pkgname/$_pkgname \"\$@\"" >> "$pkgdir/usr/bin/$_pkgname"
+ echo "java -jar /opt/$_pkgname/$_pkgname.jar \"\$@\"" >> "$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/PlayOnLinux.desktop" "$pkgdir/usr/share/applications/playonlinux.desktop"
- sed -i 's/ %F//g' "$pkgdir/usr/share/applications/playonlinux.desktop"
+ install -D "$basedir/logo256.png" "$pkgdir/usr/share/icons/playonlinux5.png"
+ install -D -m644 "$basedir/PlayOnLinux.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop"
+ sed -i 's/ %F//g' "$pkgdir/usr/share/applications/$_pkgname.desktop"
}
diff --git a/PlayOnLinux.desktop b/PlayOnLinux.desktop
new file mode 100644
index 00000000000..bb6f4d4b956
--- /dev/null
+++ b/PlayOnLinux.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Name=PlayOnLinux 5
+Comment=GUI for managing Windows programs under linux
+Type=Application
+Exec=playonlinux5
+Icon=playonlinux5
+Categories=Application;Game