diff options
author | Justin Dray | 2015-05-28 13:07:38 +1000 |
---|---|---|
committer | Justin Dray | 2015-05-28 13:07:38 +1000 |
commit | 55ffdbea69f5c8655531b7238cf2585d014dc566 (patch) | |
tree | b2bd38afc90f4ebeafed59c2a7e8e3d7e2d4fa54 /PKGBUILD | |
download | aur-55ffdbea69f5c8655531b7238cf2585d014dc566.tar.gz |
Cleaned up organization for arch packages in prep for aur4
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 45 |
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" +} |