Last active
July 27, 2016 18:45
-
-
Save kimmoli/fd6730079bdc5fbcccbcd2bce542f4a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fold=sfdroid-0.0.0 | |
rm -rf $fold | |
mkdir $fold | |
mkdir -p $fold/system/bin | |
mkdir -p $fold/system/framework | |
mkdir -p $fold/system/lib | |
mkdir -p $fold/system/lib/hw | |
mkdir -p $fold/system/priv-app | |
cp ./out/target/product/${DEVICE}/system/framework/am.jar $fold/system/framework/ | |
cp ./out/target/product/${DEVICE}/system/framework/ext.jar $fold/system/framework/ | |
cp ./out/target/product/${DEVICE}/system/framework/ethernet-service.jar $fold/system/framework/ | |
cp ./out/target/product/${DEVICE}/system/framework/framework.jar $fold/system/framework/ | |
cp ./out/target/product/${DEVICE}/system/framework/services.jar $fold/system/framework/ | |
cp ./out/target/product/${DEVICE}/system/framework/wifi-service.jar $fold/system/framework/ | |
cp ./out/target/product/${DEVICE}/system/lib/libandroid_runtime.so $fold/system/lib/ | |
cp ./out/target/product/${DEVICE}/system/lib/libandroid_servers.so $fold/system/lib/ | |
cp ./out/target/product/${DEVICE}/system/lib/libdbus.so $fold/system/lib/ | |
cp ./out/target/product/${DEVICE}/system/lib/libhardware.so $fold/system/lib/ | |
cp ./out/target/product/${DEVICE}/system/lib/libinputflinger.so $fold/system/lib/ | |
cp ./out/target/product/${DEVICE}/system/lib/libsurfaceflinger.so $fold/system/lib/ | |
cp ./out/target/product/${DEVICE}/system/lib/libsensorservice.so $fold/system/lib/ | |
cp ./out/target/product/${DEVICE}/system/lib/hw/sfdroid_sensors.default.so $fold/system/lib/hw/ | |
cp ./out/target/product/${DEVICE}/system/lib/hw/sharebuffer.default.so $fold/system/lib/hw/ | |
cp ./out/target/product/${DEVICE}/system/priv-app/Settings/Settings.apk $fold/system/priv-app/ | |
cp ./out/target/product/${DEVICE}/system/priv-app/SystemUI/SystemUI.apk $fold/system/priv-app/ | |
cp ./out/target/product/${DEVICE}/system/bin/netd $fold/system/bin/ | |
cp ./out/target/product/${DEVICE}/system/bin/mediaserver $fold/system/bin/ | |
tar -cjvf ${fold}.tgz $fold | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: sfdroid | |
Summary: Android support for Sailfish | |
Version: 0.0.0 | |
Release: 1 | |
Group: System/Libraries | |
License: TBD | |
Source0: %{name}-%{version}.tgz | |
AutoReqProv: no | |
%description | |
%{summary} | |
%prep | |
%setup | |
%build | |
tar -xvf %name-%version.tgz | |
%install | |
mkdir -p $RPM_BUILD_ROOT/%{_libexecdir}/sfdroid/system/bin/ | |
mkdir -p $RPM_BUILD_ROOT/%{_libexecdir}/sfdroid/system/framework/ | |
mkdir -p $RPM_BUILD_ROOT/%{_libexecdir}/sfdroid/system/lib/hw/ | |
mkdir -p $RPM_BUILD_ROOT/%{_libexecdir}/sfdroid/system/priv-app/ | |
cp -r %name-%version/system/* $RPM_BUILD_ROOT/%{_libexecdir}/sfdroid/system/ | |
%files | |
%defattr(-,root,root,-) | |
%{_libexecdir}/sfdroid/system/bin/* | |
%{_libexecdir}/sfdroid/system/framework/* | |
%{_libexecdir}/sfdroid/system/lib/* | |
%{_libexecdir}/sfdroid/system/priv-app/* | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment