echo bin/dolcon share | import
[Prepare]
-require @gtk.org/gtk 2.0
+require @gtk.org/gtk 2.4
require @dolda2000.com/fredrik/doldaconnect/dcuilib 1.1
[Install]
--- /dev/null
+# -*-shell-script-*-
+
+[Meta]
+RootName: @dolda2000.com/fredrik/doldaconnect/guishell:$SOFTWAREVERSION
+DisplayName: Dolda Connect GUI
+ShortName: doldaconnect-guishell
+Maintainer: Fredrik Tolf <fredrik@dolda2000.com>
+Packager: Fredrik Tolf <fredrik@dolda2000.com>
+Summary: A friendly GUI for Dolda Connect
+URL: http://www.dolda2000.com/~fredrik/doldaconnect/
+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
+
+[BuildPrepare]
+prepareBuild --enable-dolconf --enable-guishell --disable-gtk2ui --disable-daemon
+
+[BuildUnprepare]
+unprepareBuild
+
+[Imports]
+echo bin share/locale | import
+
+[Prepare]
+require @gtk.org/gtk 2.10
+require @dolda2000.com/fredrik/doldaconnect/dcuilib 1.1
+
+[Install]
+installExe bin/dolconf
+installExe bin/dolcon-launch
+installExe bin/doldacond-shell
+installLocale share/locale
+
+[Uninstall]
+# Usually just the following line is enough to uninstall everything
+uninstallFromLog
{
int i;
double b;
- char *sd;
static char ret[64];
+ static char pfx[] = {'k', 'M', 'G', 'T'};
b = bytes;
- for(i = 0; (b >= 1024) && (i < 4); i++)
+ for(i = 0; (b >= 1024) && (i < sizeof(pfx)); i++)
b /= 1024;
if(i == 0)
- sd = "B";
- else if(i == 1)
- sd = "kiB";
- else if(i == 2)
- sd = "MiB";
- else if(i == 3)
- sd = "GiB";
+ snprintf(ret, 64, "%.1f B", b);
else
- sd = "TiB";
- snprintf(ret, 64, "%.1f %s", b, sd);
+ snprintf(ret, 64, "%.1f %ciB", b, pfx[i - 1]);
return(ret);
}
autopackage/dolcon.apspec
autopackage/dcuilib.apspec
autopackage/dcguile.apspec
+autopackage/guishell.apspec
])
echo