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

Balló György bgyorgy at archlinux.org
Sat Feb 11 02:06:04 UTC 2017


    Date: Saturday, February 11, 2017 @ 02:06:03
  Author: bgyorgy
Revision: 211829

upgpkg: docky 2.2.1.1-3

Fix build, fix some docklets, disable broken docklets and services

Modified:
  docky/trunk/PKGBUILD

----------+
 PKGBUILD |   34 +++++++++++++++++++++++++++++++---
 1 file changed, 31 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-02-11 01:52:06 UTC (rev 211828)
+++ PKGBUILD	2017-02-11 02:06:03 UTC (rev 211829)
@@ -6,7 +6,7 @@
 
 pkgname=docky
 pkgver=2.2.1.1
-pkgrel=2
+pkgrel=3
 pkgdesc="Full fledged dock application that makes opening common applications and managing windows easier and quicker"
 url="http://wiki.go-docky.com/"
 arch=('any')
@@ -15,11 +15,39 @@
 makedepends=('intltool' 'gio-sharp')
 source=("https://launchpad.net/$pkgname/2.2/$pkgver/+download/$pkgname-$pkgver.tar.xz"{,.asc})
 validpgpkeys=('E4884AEEDE4CC02043C3D8045DECDBA89270E723') # Rico Tzschichholz
-md5sums=('adc261e5fe64d0be6edaf635cd9ce09e'
-         'SKIP')
+sha256sums=('3759c052a375dea4ab462669896d92acc6eb497197dd5a73ff30527d668dfbc6'
+            'SKIP')
 
+prepare() {
+  cd $pkgname-$pkgver
+
+  # Fix build
+  sed -i 's/dmcs/mcs/' m4/shamrock/mono.m4
+
+  # Fix weather docklet
+  sed -i 's|http://xoap.weather.com/|http://wxdata.weather.com/|
+          s|http://www.weather.com/outlook/travel/businesstraveler/wxdetail/|https://weather.com/weather/today/l/|
+          s|"http://www.weather.com/outlook/travel/businesstraveler/map/" + location|"https://weather.com/weather/radar/interactive/l/" + WeatherController.EncodedCurrentLocation|' \
+    StandardPlugins/Weather/src/Sources/WeatherChannelWeatherSource.cs
+  sed -i '/GoogleWeatherSource/d' StandardPlugins/Weather/src/WeatherController.cs
+
+  # Fix trash docklet
+  sed -i -e '/"Restore Files"/d' -e 's/, (o, a) => RestoreFile (f)//' StandardPlugins/Trash/src/TrashDockItem.cs
+
+  # Fix bookmarks docklet
+  sed -i 's|".gtk-bookmarks"|".config/gtk-3.0/bookmarks"|' StandardPlugins/Bookmarks/src/BookmarksItemProvider.cs
+
+  # Disable broken docklets and services
+  sed -i -e '/BatteryMonitor/d' -e '/NetworkManager/d' -e '/NetworkMonitor/d' -e '/SessionManager/d' StandardPlugins/Makefile.am
+  sed -i '/System.Initialize/d' Docky.Services/Docky.Services/DockServices.cs
+  sed -i 's/NetworkConnected { get; private set; }/NetworkConnected = true;/' Docky.Services/Docky.Services/SystemService.cs
+
+  autoreconf -fi
+}
+
 build() {
   cd $pkgname-$pkgver
+  sed -i 's/dmcs/mcs/' m4/shamrock/mono.m4
   ./configure --prefix=/usr --sysconfdir=/etc \
               --disable-schemas-install \
               --with-gconf-schema-file-dir=/usr/share/gconf/schemas



More information about the arch-commits mailing list