![]() |
2015-09-22
, 15:55
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, Espaņa
|
#1593
|
![]() |
2015-09-22
, 16:32
|
|
Posts: 6,453 |
Thanked: 20,983 times |
Joined on Sep 2012
@ UK
|
#1594
|
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
![]() |
2015-09-22
, 16:42
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, Espaņa
|
#1595
|
![]() |
2015-09-22
, 20:13
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, Espaņa
|
#1596
|
simple spec file:Code:pkcon install rpm-build meego-rpm-configin your folder put patch stuff in patch folder, spec in rpm folder. to build execute following:Code:Name: sailfishos-eventsview-swipe-remove Summary: Eventsview notifications remove swipe Version: 0.0.1 Release: 1 Group: Qt/Qt License: TODO Requires: patchmanager Requires: lipstick-jolla-home-qt5 = 0.24.41.4-10.75.1.jolla %description Eventsview patch adding swipe right to remove notification action. %install rm -rf %{buildroot} mkdir -p %{buildroot}/usr/share/patchmanager/patches/sailfishos-eventsview-swipe-remove cp -r %{workdir}/patch/* %{buildroot}/usr/share/patchmanager/patches/sailfishos-eventsview-swipe-remove %pre if [ -f /usr/sbin/patchmanager ]; then /usr/sbin/patchmanager -u sailfishos-eventsview-swipe-remove || true fi %preun if [ -f /usr/sbin/patchmanager ]; then /usr/sbin/patchmanager -u sailfishos-eventsview-swipe-remove || true fi %files %defattr(-,root,root,-) %{_datadir}/patchmanager/patches/sailfishos-eventsview-swipe-removedoneCode:rpmbuild --define "workdir $PWD" -ba rpm/sailfishos-eventsview-swipe-remove.spec
![]() |
2015-09-22
, 20:19
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, Espaņa
|
#1597
|
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).
![]() |
2015-09-22
, 20:32
|
Posts: 90 |
Thanked: 163 times |
Joined on Jan 2012
|
#1598
|
The Following User Says Thank You to anig For This Useful Post: | ||
![]() |
2015-09-22
, 20:45
|
|
Posts: 6,453 |
Thanked: 20,983 times |
Joined on Sep 2012
@ UK
|
#1599
|
![]() |
2015-09-23
, 02:42
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#1600
|
![]() |
Tags |
patchmanager, sailfish os |
|
https://www.dropbox.com/s/9vmqghxlpt...mv7hl.rpm?dl=0
Regards,
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..