summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Dray2015-05-28 13:07:38 +1000
committerJustin Dray2015-05-28 13:07:38 +1000
commit55ffdbea69f5c8655531b7238cf2585d014dc566 (patch)
treeb2bd38afc90f4ebeafed59c2a7e8e3d7e2d4fa54
downloadaur-55ffdbea69f5c8655531b7238cf2585d014dc566.tar.gz
Cleaned up organization for arch packages in prep for aur4
-rw-r--r--.SRCINFO30
-rw-r--r--PKGBUILD45
2 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b473a8d1c03
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,30 @@
+pkgbase = playonlinux-git
+ pkgdesc = GUI for managing Windows programs under linux
+ pkgver = 4.2.5.r1.g9183700
+ 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
+ options = !strip
+ source = playonlinux::git://github.com/PlayOnLinux/POL-POM-4.git
+ md5sums = SKIP
+
+pkgname = playonlinux-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..62d75742c47
--- /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"
+}