[arch-commits] Commit in unison/trunk (PKGBUILD desktop)

2020-08-04 Thread Gaëtan Bisson via arch-commits
Date: Tuesday, August 4, 2020 @ 22:19:54
  Author: bisson
Revision: 393153

implement FS#67478

Modified:
  unison/trunk/PKGBUILD
  unison/trunk/desktop

--+
 PKGBUILD |   14 --
 desktop  |2 +-
 2 files changed, 9 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-08-04 19:27:11 UTC (rev 393152)
+++ PKGBUILD2020-08-04 22:19:54 UTC (rev 393153)
@@ -3,7 +3,7 @@
 
 pkgname=unison
 pkgver=2.51.2
-pkgrel=8
+pkgrel=9
 pkgdesc='File-synchronization tool'
 #url='https://github.com/bcpierce00/unison/'
 url='https://www.cis.upenn.edu/~bcpierce/unison/'
@@ -17,8 +17,8 @@
 'desktop')
 sha256sums=('a2efcbeab651be6df69cc9b253011a07955ecb91fb407a219719451197849d5e'
 '2a971cf17e0a7303e99a793829e2b7b03533d17041e3b2ebba53555a5bd62284'
-   '7c97ac4a13d6865dad0b447d519566dba3adaa777d2c2aa2014d4e5d7d8c0c13'
-'b497b1c23cceb8967e9c3f9a39720e3029d370304ae410795121224f96c234a3')
+'7c97ac4a13d6865dad0b447d519566dba3adaa777d2c2aa2014d4e5d7d8c0c13'
+'2dc5c53386cc065706e6c901d1a1a205808e449dc9676320d1de7a5dd673e174')
 
 options=('!makeflags')
 
@@ -49,7 +49,9 @@
install -m755 unison-* "${pkgdir}"/usr/bin
ln -s unison-text "${pkgdir}"/usr/bin/unison
 
-   install -d "${pkgdir}"/usr/share/{pixmaps,applications}
-   install -m644 icons/U.32x32x16m.png 
"${pkgdir}/usr/share/pixmaps/${pkgname}.png"
-   install -m644 ../desktop 
"${pkgdir}/usr/share/applications/${pkgname}.desktop"
+   install -Dm644 ../desktop 
"${pkgdir}/usr/share/applications/${pkgname}.desktop"
+   install -Dm644 icons/U.svg 
"${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg"
+   for i in 16 24 32 48 256; do
+   install -Dm644 icons/U.${i}x${i}x16m.png 
"${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/${pkgname}.png"
+   done
 }

Modified: desktop
===
--- desktop 2020-08-04 19:27:11 UTC (rev 393152)
+++ desktop 2020-08-04 22:19:54 UTC (rev 393153)
@@ -7,5 +7,5 @@
 Terminal=false
 Type=Application
 Categories=GTK;Application;Network;
-Icon=unison.png
+Icon=unison
 StartupNotify=true


[arch-commits] Commit in unison/trunk (PKGBUILD desktop)

2018-02-07 Thread Gaëtan Bisson via arch-commits
Date: Thursday, February 8, 2018 @ 05:12:12
  Author: bisson
Revision: 316179

fix desktop file

Modified:
  unison/trunk/PKGBUILD
  unison/trunk/desktop

--+
 PKGBUILD |4 ++--
 desktop  |4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-02-07 23:44:30 UTC (rev 316178)
+++ PKGBUILD2018-02-08 05:12:12 UTC (rev 316179)
@@ -5,7 +5,7 @@
 pkgname=unison
 _pkgver=2.48.15v4
 pkgver=${_pkgver%v*}
-pkgrel=2
+pkgrel=3
 pkgdesc='File-synchronization tool'
 #url='https://github.com/bcpierce00/unison/'
 url='https://www.cis.upenn.edu/~bcpierce/unison/'
@@ -18,7 +18,7 @@
 'desktop')
 sha256sums=('f8c7e982634bbe1ed6510fe5b36b6c5c55c06caefddafdd9edc08812305fdeec'
 '2a971cf17e0a7303e99a793829e2b7b03533d17041e3b2ebba53555a5bd62284'
-'e9ef4e8b845453e21abafa8c9d153080375024d2465e3bf65f0e5a2ca1f5ea4a')
+'b497b1c23cceb8967e9c3f9a39720e3029d370304ae410795121224f96c234a3')
 
 options=('!makeflags')
 

Modified: desktop
===
--- desktop 2018-02-07 23:44:30 UTC (rev 316178)
+++ desktop 2018-02-08 05:12:12 UTC (rev 316179)
@@ -2,8 +2,8 @@
 Encoding=UTF-8
 Name=unison
 Comment=File synchronisation tool for X11
-TryExec=unison-x11
-Exec=unison-x11
+TryExec=unison-gtk2
+Exec=unison-gtk2
 Terminal=false
 Type=Application
 Categories=GTK;Application;Network;


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

2015-02-03 Thread Gaetan Bisson
Date: Tuesday, February 3, 2015 @ 22:17:21
  Author: bisson
Revision: 230409

update versioned symlink, modernize PKGBUILD

Added:
  unison/trunk/desktop
(from rev 230408, unison/trunk/unison.desktop)
Modified:
  unison/trunk/PKGBUILD
Deleted:
  unison/trunk/unison.desktop

+
 PKGBUILD   |   73 ---
 desktop|   11 
 unison.desktop |   13 -
 3 files changed, 44 insertions(+), 53 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-02-03 20:38:31 UTC (rev 230408)
+++ PKGBUILD2015-02-03 21:17:21 UTC (rev 230409)
@@ -1,54 +1,47 @@
 # $Id$
-#Maintainer: Tobias Powalowski 
+#Maintainer: Gaetan Bisson 
+#Contributor: Tobias Powalowski 
 
 pkgname=unison
 pkgver=2.48.3
-pkgrel=1
-pkgdesc="Unison is a file-synchronization tool"
-arch=(i686 x86_64)
+pkgrel=2
+pkgdesc='File-synchronization tool'
+url='http://www.cis.upenn.edu/~bcpierce/unison/'
+arch=('i686' 'x86_64')
 license=('GPL2')
-url="http://www.cis.upenn.edu/~bcpierce/unison";
-depends=('glibc')
+optdepends=('gtk2: for gtk2 support')
 makedepends=('ocaml' 'lablgtk2' 'imagemagick')
-optdepends=('gtk2: for gtk2 support')
-source=(http://www.cis.upenn.edu/~bcpierce/unison/download/releases/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz
-$pkgname.desktop)
+source=("http://www.cis.upenn.edu/~bcpierce/unison/download/releases/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz";
+'desktop')
 sha1sums=('74f1c087ee49dc1db4680ad779280f7333d5c968'
-  'a5181e97d954925c8b14be8f73cd473ca5bd21ba')
+  '9dad1737dd8d90e7ee2744a96cf71bd9f802a12a')
 
-options=(!makeflags)
+options=('!makeflags')
 
 build() {
-  cd "$srcdir/$pkgname-$pkgver"
-  CFLAGS=""
-  make clean
-  make mkProjectInfo 
-  make UISTYLE=text DEBUGGING=false THREADS=true 
-  mv unison unison-text
- 
- # clean the builddir and rebuild with gtk support
-  # broken at the moment!
-  # make clean
-  # make mkProjectInfo
-  # make UISTYLE=gtk DEBUGGING=false THREADS=true
-  # install -Dm755 unison "$pkgdir"/usr/bin/unison-gtk
- # clean the builddir and rebuild with gtk2 support
-  make clean
-  make mkProjectInfo
-  make UISTYLE=gtk2 DEBUGGING=false THREADS=true
+   cd "${srcdir}/${pkgname}-${pkgver}"
+   CFLAGS=""
+
+   for ui in text gtk2; do
+   make clean
+   make mkProjectInfo 
+   make UISTYLE=$ui DEBUGGING=false THREADS=true
+   mv unison unison-$ui
+   done
 }
 
 package() {
-  cd "$srcdir/$pkgname-$pkgver"
-  install -Dm755 unison-text "$pkgdir"/usr/bin/unison
-  install -Dm755 unison "$pkgdir"/usr/bin/unison-gtk2
- # install a .desktop file; create a compliant icon from ico file and install 
the png
-  install -Dm644 ../$pkgname.desktop 
"$pkgdir"/usr/share/applications/$pkgname.desktop
-  convert win32rc/U.ico unison.png
-  install -Dm644 ${pkgname}-1.png  "$pkgdir"/usr/share/pixmaps/$pkgname.png
- # make symlink for .desktop file
-  cd "$pkgdir"/usr/bin
-  ln -s unison-gtk2 unison-x11
- # make versioned symlink #29827
-  ln -s unison unison-2.40
+   cd "${srcdir}/${pkgname}-${pkgver}"
+
+   install -d "${pkgdir}"/usr/bin
+   install -m755 unison-* "${pkgdir}"/usr/bin
+
+   install -d "${pkgdir}"/usr/share/{pixmaps,applications}
+   convert win32rc/U.ico[1] "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+   install -m644 ../desktop 
"${pkgdir}/usr/share/applications/${pkgname}.desktop"
+
+   cd "${pkgdir}"/usr/bin
+   ln -s unison-text unison
+   ln -s unison-gtk2 unison-x11
+   ln -s unison unison-${pkgver%.*}
 }

Copied: unison/trunk/desktop (from rev 230408, unison/trunk/unison.desktop)
===
--- desktop (rev 0)
+++ desktop 2015-02-03 21:17:21 UTC (rev 230409)
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=unison
+Comment=File synchronisation tool for X11
+TryExec=unison-x11
+Exec=unison-x11
+Terminal=false
+Type=Application
+Categories=GTK;Application;Network;
+Icon=unison.png
+StartupNotify=true

Deleted: unison.desktop
===
--- unison.desktop  2015-02-03 20:38:31 UTC (rev 230408)
+++ unison.desktop  2015-02-03 21:17:21 UTC (rev 230409)
@@ -1,13 +0,0 @@
-[Desktop Entry]
-Encoding=UTF-8
-Name=unison
-Name[de]=unison
-Comment=File synchronisation tool for X11
-Comment[de]=Datei Abgleicher und Synchronisierer
-TryExec=unison-x11
-Exec=unison-x11
-Terminal=false
-Type=Application
-Categories=GTK;Application;Network;
-Icon=unison.png
-StartupNotify=true