Thread
:
[WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
View Single Post
Markkyboy
2015-09-22 , 15:55
Posts: 433 | Thanked: 727 times | Joined on Oct 2012 @ Costa Blanca, Espaņa
#
1593
Originally Posted by
coderus
if you buliding it yourself show spec file then
Taken from Schturman's post, somewhere on this thread and modified a little.
Name: sailfishos-remove-overlay-colour-camera-settings
Version: 0.1
Release: 1
Summary: Removes the ambient colour from the overlay in camera settings.
Group: System/Tools
Vendor: Markkyboy
Distribution: SailfishOS
Packager: Markkyboy
URL:
https://www.facebook.com/JollaUK
Requires: jolla-camera >= 0.2.12.2-10.45.1, patchmanager
License: GPL
%description
Jolla-camera - removes ambient colour from camera settings overlay.
%files
/usr/share/patchmanager/patches/sailfishos-remove-overlay-colour-camera-settings/*
%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-remove-overlay-colour-camera-settings
fi
fi
%post
if [ $1 = 1 ]; then
// Do stuff specific for first install
echo "It's first time install"
fc-cache -f
killall jolla-camera
else
if [ $1 = 2 ]; then
// Do stuff specific to upgrades
killall jolla-camera
fi
fi
%postun
if [ $1 = 0 ]; then
// Do stuff specific to uninstalls
rm -rf /usr/share/patchmanager/patches/sailfishos-remove-overlay-colour-camera-settings
killall jolla-camera
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.9.28).
Thanks,
__________________
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..
Quote & Reply
|
Markkyboy
View Public Profile
Send a private message to Markkyboy
Find all posts by Markkyboy