void-packages/srcpkgs/playonlinux/template

29 lines
1.0 KiB
Bash

# Template file for 'playonlinux'
pkgname=playonlinux
version=4.3.4
revision=2
wrksrc="${pkgname}"
# contains pre-compiled binaries linked against glibc
archs="i686 x86_64"
depends="icoutils netcat ImageMagick xterm wxPython cabextract unzip glxinfo
gnupg xdg-user-dirs libXmu wget p7zip curl jq"
short_desc="GUI for managing Windows programs under linux"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="GPL-2.0-or-later"
homepage="http://www.playonlinux.com"
distfiles="http://www.playonlinux.com/script_files/PlayOnLinux/${version/.0/}/PlayOnLinux_${version/.0/}.tar.gz"
checksum=17c3dfd27962ce5a7a0c014850b33188e203d008c9dc71faa230e35fcada2d05
do_install() {
vmkdir usr/share/$pkgname
vmkdir usr/bin
cp -r * $DESTDIR/usr/share/$pkgname
echo "#!/bin/bash" > $DESTDIR/usr/bin/$pkgname
echo "/usr/share/$pkgname/$pkgname \"\$@\"" >> $DESTDIR/usr/bin/$pkgname
chmod +x $DESTDIR/usr/bin/$pkgname
vinstall etc/PlayOnLinux.desktop 644 usr/share/applications playonlinux.desktop
sed -i "s/ %F//g" $DESTDIR/usr/share/applications/playonlinux.desktop
}