summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..62d75742c471
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: 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=$_pkgname-git
+pkgver=4.2.5.r1.g9183700
+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')
+arch=('any')
+provides='playonlinux'
+conflicts='playonlinux'
+source=("$_pkgname::git://github.com/PlayOnLinux/POL-POM-4.git")
+options=(!strip)
+md5sums=('SKIP')
+
+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"
+ install -d "$pkgdir/usr/bin"
+ cp -r "$srcdir/$_pkgname/" "$pkgdir/usr/share/"
+ rm -rf "$pkgdir/usr/share/$_pkgname/.git"
+
+ 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/PlayOnLinux.desktop" "$pkgdir/usr/share/applications/playonlinux.desktop"
+ sed -i 's/ %F//g' "$pkgdir/usr/share/applications/playonlinux.desktop"
+}