View Single Post
Markkyboy's Avatar
Posts: 433 | Thanked: 727 times | Joined on Oct 2012 @ Costa Blanca, Espaņa
#1596
Originally Posted by coderus View Post
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
I am building on the device, not on SDK. So your instructions make little sense when applied on the device.
Am I right in assuming these instructions are for building on SailfishSDK?
__________________
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..