diff --git a/Makefile b/Makefile new file mode 100644 --- /dev/null +++ b/Makefile @@ -0,0 +1 @@ +include ../Makefile.common diff --git a/abi_used_libs b/abi_used_libs new file mode 100644 --- /dev/null +++ b/abi_used_libs @@ -0,0 +1,43 @@ +ld-linux-x86-64.so.2 +libX11-xcb.so.1 +libX11.so.6 +libXcomposite.so.1 +libXcursor.so.1 +libXdamage.so.1 +libXext.so.6 +libXfixes.so.3 +libXi.so.6 +libXrandr.so.2 +libXrender.so.1 +libXss.so.1 +libXtst.so.6 +libasound.so.2 +libatk-1.0.so.0 +libc.so.6 +libcairo.so.2 +libcups.so.2 +libdbus-1.so.3 +libdl.so.2 +libexpat.so.1 +libfontconfig.so.1 +libfreetype.so.6 +libgcc_s.so.1 +libgconf-2.so.4 +libgdk-x11-2.0.so.0 +libgdk_pixbuf-2.0.so.0 +libgio-2.0.so.0 +libglib-2.0.so.0 +libgmodule-2.0.so.0 +libgobject-2.0.so.0 +libgtk-x11-2.0.so.0 +libm.so.6 +libnspr4.so +libnss3.so +libnssutil3.so +libpango-1.0.so.0 +libpangocairo-1.0.so.0 +libpthread.so.0 +librt.so.1 +libsmime3.so +libstdc++.so.6 +libxcb.so.1 diff --git a/files/0001-linux-not-build-deb.patch b/files/0001-linux-not-build-deb.patch new file mode 100644 --- /dev/null +++ b/files/0001-linux-not-build-deb.patch @@ -0,0 +1,16 @@ +diff -Naur cerebro-0.3.2/package.json cerebro-0.3.2.patch/package.json +--- cerebro-0.3.2/package.json 2017-12-05 02:31:58.000000000 -0500 ++++ cerebro-0.3.2.patch/package.json 2017-12-18 18:29:43.563321387 -0500 +@@ -39,12 +39,6 @@ + "linux": { + "target": [ + { +- "target": "deb", +- "arch": [ +- "x64" +- ] +- }, +- { + "target": "AppImage", + "arch": [ + "x64" diff --git a/files/cerebro.desktop b/files/cerebro.desktop new file mode 100644 --- /dev/null +++ b/files/cerebro.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Cerebro +Comment=Extendable electron-based open-source Spotlight and Alfred analogue +Exec=cerebro +Terminal=false +Type=Application +Icon=cerebro +Categories=Utility; diff --git a/package.yml b/package.yml new file mode 100644 --- /dev/null +++ b/package.yml @@ -0,0 +1,39 @@ +name : cerebro +version : 0.3.2 +release : 1 +source : + - https://github.com/KELiON/cerebro/archive/v0.3.2.tar.gz : c727beb2b80210c5fca990dd6693d4bc81915ae31c6739977ca5f8e8f60405a4 +license : MIT +component : system.utils +summary : Open-source productivity booster with a brain +description: | + Open-source productivity booster with a brain +networking : yes +builddeps : + - pkgconfig(alsa) + - pkgconfig(gconf-2.0) + - pkgconfig(gtk+-2.0) + - pkgconfig(xscrnsaver) + - pkgconfig(xtst) + - yarn +setup : | + %patch -p1 < $pkgfiles/0001-linux-not-build-deb.patch +build : | + yarn + pushd app + yarn + popd + yarn run package +install : | + install -dm00644 $installdir/usr/share/cerebro + cp -R $workdir/release/linux-unpacked/* $installdir/usr/share/cerebro + + install -dm00755 $installdir/usr/bin + ln -sv /usr/share/cerebro/cerebro $installdir/usr/bin/cerebro + install -Dm00644 $pkgfiles/cerebro.desktop $installdir/usr/share/applications/cerebro.desktop + + # Install icons + for size in 16 32 48 128 256 512 1024; do + install -Dm00644 $workdir/build/icons/${size}x${size}.png \ + $installdir/usr/share/icons/hicolor/${size}x${size}/apps/cerebro.png + done diff --git a/pspec_x86_64.xml b/pspec_x86_64.xml new file mode 100644 --- /dev/null +++ b/pspec_x86_64.xml @@ -0,0 +1,43 @@ + + + cerebro + + Longwu Ou + oulongwu@mit.edu + + MIT + system.utils + Open-source productivity booster with a brain + Open-source productivity booster with a brain + + https://solus-project.com/sources/README.Solus + + + cerebro + Open-source productivity booster with a brain + Open-source productivity booster with a brain + + system.utils + + /usr/bin + /usr/share/applications/cerebro.desktop + /usr/share/cerebro + /usr/share/icons/hicolor/1024x1024/apps/cerebro.png + /usr/share/icons/hicolor/128x128/apps/cerebro.png + /usr/share/icons/hicolor/16x16/apps/cerebro.png + /usr/share/icons/hicolor/256x256/apps/cerebro.png + /usr/share/icons/hicolor/32x32/apps/cerebro.png + /usr/share/icons/hicolor/48x48/apps/cerebro.png + /usr/share/icons/hicolor/512x512/apps/cerebro.png + + + + + 2018-03-03 + 0.3.2 + Packaging update + Longwu Ou + oulongwu@mit.edu + + + \ No newline at end of file