View Single Post
Markkyboy's Avatar
Posts: 433 | Thanked: 727 times | Joined on Oct 2012 @ Costa Blanca, Espaņa
#1597
Originally Posted by Schturman View Post
Or if you still work with my instruction for creating packages, maybe this one will be more easy for you.
Code:
Name:          sailfishos-combo-show-dayofweek-startsunday
Version:       0.1
Release:       2
Summary:       Calendar combo patch
Group:         System/Tools
Vendor:        Schturman
Distribution:  SailfisfOS
Packager: Schturman <schturman@hotmail.com>
URL:           www.dhrider.co.cc
Requires: jolla-calendar >= 0.4.43-10.32.1, patchmanager

License:       GPL

%description
Calendar Start Week On Sunday and show day.

%files
/usr/share/patchmanager/patches/sailfishos-combo-show-dayofweek-startsunday/*

%pre
if [ $1 = 1 ]; then
    // Do stuff specific for first install
echo "It's first time install"
else
if [ $1 = 2 ]; then
    // Do stuff specific to upgrades
echo "It's just upgrade"
/usr/sbin/patchmanager -u sailfishos-combo-show-dayofweek-startsunday
fi
fi

%preun
if [ $1 = 0 ]; then
    // Do stuff specific to uninstalls
/usr/sbin/patchmanager -u sailfishos-combo-show-dayofweek-startsunday
else
if [ $1 = 1 ]; then
    // Do stuff specific to upgrades
echo "It's just upgrade"
fi
fi

%postun
if [ $1 = 0 ]; then
    // Do stuff specific to uninstalls
rm -rf /usr/share/patchmanager/patches/sailfishos-combo-show-dayofweek-startsunday
killall jolla-calendar
else
if [ $1 = 1 ]; then
    // Do stuff specific to upgrades
echo "It's just upgrade"
fi
fi

%changelog
* Fri Dec 26 2014 Builder <builder@...> 0.1
- Compatible with last system update (1.1.4.29).
Hey Schturman - did you get your Jolla back yet?

I tried creating a patch using your .spec file, with my adjustments of course, but I get a catalogue of errors and the build fails. Sorry, I didn't note the errors.
I need to clean out my system and start again, with new unified_diff.patch file and correct .spec file.

Regards,

hope to see you back on the forums again soon
__________________
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..