Reply
Thread Tools
pichlo's Avatar
Posts: 6,453 | Thanked: 20,983 times | Joined on Sep 2012 @ UK
#1421
Originally Posted by Markkyboy View Post
I'm very interested in the idea of making a patch for use with Patchmanager.

I have my JSON and diff patch file, I have Sailfish SDK installed - now what?, is the patch created in the same way as a normal app? (I guess it is), but what data goes where?, I could do with a few pointers to get me started.......or can this be done on the device itself?, any info appreciated.
As others said, check out other similar patches to see what goes where.
The next step after that is making an RPM:

http://talk.maemo.org/showthread.php?t=92963
 

The Following User Says Thank You to pichlo For This Useful Post:
Posts: 90 | Thanked: 163 times | Joined on Jan 2012
#1422
Originally Posted by pichlo View Post
As others said, check out other similar patches to see what goes where.
The next step after that is making an RPM:

http://talk.maemo.org/showthread.php?t=92963
I've been using rpmbuild on my phone to make my patches.
 

The Following User Says Thank You to anig For This Useful Post:
Markkyboy's Avatar
Posts: 433 | Thanked: 727 times | Joined on Oct 2012 @ Costa Blanca, España
#1423
@pichlo @anig

EDIT* - I've now got a .spec file from anig's github page. I can now see similarities between that and my .spec file for ambience creation. It also helps me to know that anig builds his patches on the device thanks anig

Thanks guys, would some care to share a .spec file for one of their (device created) patches?, just so I can see the contents and then tailor to my needs. I'm already familiar with Schturman's guide for rpm packaging and have used it for ambience rpm package, successfully, but only after seeing a relevant .spec file.

__________________
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..

Last edited by Markkyboy; 2015-08-31 at 12:29.
 

The Following User Says Thank You to Markkyboy For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#1424
Code:
pkcon install rpm-build meego-rpm-config
simple spec file:
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-remove
in your folder put patch stuff in patch folder, spec in rpm folder. to build execute following:
Code:
rpmbuild --define "workdir $PWD" -ba rpm/sailfishos-eventsview-swipe-remove.spec
done
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 3 Users Say Thank You to coderus For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#1425
Originally Posted by Markkyboy View Post
@pichlo @anig

EDIT* - I've now got a .spec file from anig's github page. I can now see similarities between that and my .spec file for ambience creation. It also helps me to know that anig builds his patches on the device thanks anig

Thanks guys, would some care to share a .spec file for one of their (device created) patches?, just so I can see the contents and then tailor to my needs. I'm already familiar with Schturman's guide for rpm packaging and have used it for ambience rpm package, successfully, but only after seeing a relevant .spec file.

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).
 

The Following 2 Users Say Thank You to Schturman For This Useful Post:
Ancelad's Avatar
Posts: 1,552 | Thanked: 3,108 times | Joined on Jun 2012 @ Russia, 96
#1426
 

The Following 5 Users Say Thank You to Ancelad For This Useful Post:
Posts: 193 | Thanked: 348 times | Joined on Dec 2009
#1427
Does anyone know if the mazelock patch works on 1.7.28? I am scared to install it as another patch caused a bootloop and in openrepos it doesn't says it supports it?
 
Posts: 86 | Thanked: 115 times | Joined on Feb 2014 @ Spain
#1428
Originally Posted by wormdrummer View Post
Does anyone know if the mazelock patch works on 1.7.28? I am scared to install it as another patch caused a bootloop and in openrepos it doesn't says it supports it?
Yes, I'm using it and works fine
 
Posts: 211 | Thanked: 62 times | Joined on Oct 2014 @ Finland
#1429
Originally Posted by carmenluci View Post
Yes, I'm using it and works fine
Me too. Mazelock works on newest updates
 

The Following User Says Thank You to R1v3r For This Useful Post:
Posts: 602 | Thanked: 735 times | Joined on Mar 2011 @ Nantes, France
#1430
Originally Posted by anig View Post
1. Fixed in next version, with option to show nothing or have a message indicating no events.

2. I positioned it using anchors so not sure why this happens. Does the same happen for meecast?
For the 2nd issue, yes, it's a total mess I've read somewhere SFOS 2.0 should bring pixel independant resolution, this should fix such issues.

 
Reply

Tags
patchmanager, sailfish os


 
Forum Jump


All times are GMT. The time now is 20:51.