[arch-commits] Commit in playonlinux/trunk (PKGBUILD PlayOnLinuxUrlHandler.desktop)

Laurent Carlier lcarlier at archlinux.org
Thu Jul 5 11:59:12 UTC 2018


    Date: Thursday, July 5, 2018 @ 11:59:12
  Author: lcarlier
Revision: 352701

upgpkg: playonlinux 4.2.12-2

fix FS#51810

Added:
  playonlinux/trunk/PlayOnLinuxUrlHandler.desktop
Modified:
  playonlinux/trunk/PKGBUILD

-------------------------------+
 PKGBUILD                      |   30 ++++++++++++++++++------------
 PlayOnLinuxUrlHandler.desktop |   10 ++++++++++
 2 files changed, 28 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-05 11:04:17 UTC (rev 352700)
+++ PKGBUILD	2018-07-05 11:59:12 UTC (rev 352701)
@@ -4,28 +4,34 @@
 
 pkgname=playonlinux
 pkgver=4.2.12
-pkgrel=1
+pkgrel=2
 pkgdesc="GUI for managing Windows programs under linux"
 url="http://www.playonlinux.com/"
 license=('GPL')
 depends=('wine' 'imagemagick' 'xterm' 'wxpython' 'cabextract' 'unzip' 'mesa-demos' 'gnupg'
          'icoutils' 'xdg-user-dirs' 'libxmu' 'netcat' 'wget' 'p7zip')
-arch=('any')
-source=(http://www.playonlinux.com/script_files/PlayOnLinux/${pkgver/.0/}/PlayOnLinux_${pkgver/.0/}.tar.gz)
+arch=('x86_64')
+source=(http://www.playonlinux.com/script_files/PlayOnLinux/${pkgver/.0/}/PlayOnLinux_${pkgver/.0/}.tar.gz
+        PlayOnLinuxUrlHandler.desktop)
 options=(!strip)
-md5sums=('c4407d9e558a1eb6424cd024c91bd96f')
+sha256sums=('38cbdc85cca83b72ed0e54ee3a768f939fefe29d3670fc5d76b0303b5bda680e'
+            '304d8e998d271383c44acdf386c4664cd65463d5f7f5e3c1c7563fbd8f71a6a8')
 
 package() {
   cd "$srcdir/$pkgname"
 
-  install -d $pkgdir/usr/share/$pkgname
-  install -d $pkgdir/usr/bin 
-  cp -r $srcdir/$pkgname/ $pkgdir/usr/share/
+  sed -i "s/libexec/bin/g" Makefile
 
-  echo "#!/bin/bash" > $pkgdir/usr/bin/$pkgname 
-  echo "/usr/share/$pkgname/$pkgname \"\$@\"" >> $pkgdir/usr/bin/$pkgname
-  chmod +x  $pkgdir/usr/bin/$pkgname
+  make PREFIX=/usr
+  make DESTDIR="${pkgdir}" install
 
-  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 ${pkgdir}/usr/share/playonlinux/lang
+  mv -v ${pkgdir}/usr/share/locale ${pkgdir}/usr/share/playonlinux/lang/locale
+  chmod 755 ${pkgdir}/usr/share/playonlinux/lang
+
+  install -m755 ${srcdir}/PlayOnLinuxUrlHandler.desktop ${pkgdir}/usr/share/applications/PlayOnLinuxUrlHandler.desktop
+  install -m755 playonlinux-url_handler ${pkgdir}/usr/bin/playonlinux-url_handler
+  sed -i "s/python /python2 /g" $pkgdir/usr/{bin,share/playonlinux}/playonlinux-url_handler
+
+#  sed -i "s/ %F//g" $pkgdir/usr/share/applications/playonlinux.desktop
 }

Added: PlayOnLinuxUrlHandler.desktop
===================================================================
--- PlayOnLinuxUrlHandler.desktop	                        (rev 0)
+++ PlayOnLinuxUrlHandler.desktop	2018-07-05 11:59:12 UTC (rev 352701)
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Name=PlayOnLinux URL handler
+Comment=PlayOnLinux URL handler
+Type=Application
+Exec=/usr/share/playonlinux/playonlinux-url_handler %U
+Icon=playonlinux
+NoDisplay=true
+MimeType=x-scheme-handler/playonlinux;x-scheme-handler/playonmac



More information about the arch-commits mailing list