Updated spec files for the new library version.
[doldaconnect.git] / autopackage / guishell.apspec.in
index 53cfcc0..0e04a1b 100644 (file)
@@ -12,25 +12,33 @@ License: GNU General Public License, Version 2 or later
 SoftwareVersion: @VERSION@
 Repository: http://www.dolda2000.com/~fredrik/doldaconnect/ap/doldaconnect-guishell.xml
 AutopackageTarget: 1.2
+PackageFileName: doldaconnect-guishell-@VERSION@.package
 
 [BuildPrepare]
+echo "apkg" >source
 prepareBuild --enable-dolconf --enable-guishell --disable-gtk2ui --disable-daemon
 
 [BuildUnprepare]
 unprepareBuild
 
 [Imports]
-echo bin share/locale | import
+echo bin share | import
 
 [Prepare]
 require @gtk.org/gtk 2.10
-require @dolda2000.com/fredrik/doldaconnect/dcuilib 1.1
+require @dolda2000.com/fredrik/doldaconnect/dcuilib 3.0
+requireAtLeast "@dolda2000.com/fredrik/doldaconnect/dolcon:@VERSION@"
+requireAtLeast "@dolda2000.com/fredrik/doldaconnect/doldacond:@VERSION@"
 
 [Install]
 installExe bin/dolconf
 installExe bin/dolcon-launch
 installExe bin/doldacond-shell
 installLocale share/locale
+installIcon share/icons/hicolor
+createBootstrapScript "$PREFIX/bin/dolcon-launch" "$PREFIX/bin/dolcon-launch.apkg"
+sed -i 's/\(Exec *= *dolcon-launch\)/\1.apkg/' share/applications/dolcon.desktop
+installMenuItem "Network/File sharing" share/applications/dolcon.desktop
 
 [Uninstall]
 # Usually just the following line is enough to uninstall everything