Update debian/rules

This commit is contained in:
ferreo 2024-11-09 15:37:41 +01:00
parent 91bf294590
commit eb159cb628

32
debian/rules vendored
View File

@ -18,27 +18,17 @@ endif
override_dh_auto_install: override_dh_auto_install:
/root/.cargo/bin/cargo fetch /root/.cargo/bin/cargo fetch
/root/.cargo/bin/cargo build --release --workspace /root/.cargo/bin/cargo build -p lact --release
override_dh_install: override_dh_install:
dh_install dh_install
mkdir -p debian/nushell/usr/bin/ mkdir -p debian/lact/usr/bin/
ls target/release mkdir -p debian/lact/usr/share/applications/
cp -vf target/release/nu debian/nushell/usr/bin/ mkdir -p debian/lact/usr/share/pixmaps/
chmod 755 debian/nushell/usr/bin/nu mkdir -p debian/lact/usr/share/icons/hicolor/scalable/apps/
chmod +x debian/nushell/usr/bin/nu mkdir -p debian/lact/usr/lib/systemd/system/
cp -vf target/release/nu_plugin_formats debian/nushell/usr/bin/ install -Dm644 res/lactd.service debian/lact/usr/lib/systemd/system/lactd.service
chmod 755 debian/nushell/usr/bin/nu_plugin_formats install -Dm644 res/io.github.lact-linux.desktop debian/lact/usr/share/applications/io.github.lact-linux.desktop
chmod +x debian/nushell/usr/bin/nu_plugin_formats install -Dm644 res/io.github.lact-linux.png debian/lact/usr/share/pixmaps/io.github.lact-linux.png
cp -vf target/release/nu_plugin_gstat debian/nushell/usr/bin/ install -Dm644 res/io.github.lact-linux.svg debian/lact/usr/share/icons/hicolor/scalable/apps/io.github.lact-linux.svg
chmod 755 debian/nushell/usr/bin/nu_plugin_gstat install -Dm755 target/release/lact debian/lact/usr/bin/lact
chmod +x debian/nushell/usr/bin/nu_plugin_gstat
cp -vf target/release/nu_plugin_inc debian/nushell/usr/bin/
chmod 755 debian/nushell/usr/bin/nu_plugin_inc
chmod +x debian/nushell/usr/bin/nu_plugin_inc
cp -vf target/release/nu_plugin_polars debian/nushell/usr/bin/
chmod 755 debian/nushell/usr/bin/nu_plugin_polars
chmod +x debian/nushell/usr/bin/nu_plugin_polars
cp -vf target/release/nu_plugin_query debian/nushell/usr/bin/
chmod 755 debian/nushell/usr/bin/nu_plugin_query
chmod +x debian/nushell/usr/bin/nu_plugin_query