Skip to content
Snippets Groups Projects
Commit 0618174a authored by Ribbon's avatar Ribbon :speech_balloon:
Browse files

Migrate some WIP recipes to /usr

parent 5dd3e43a
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ rev = "4a77bca5d95ae755ab5ac129c2db2025feab217b" ...@@ -5,7 +5,7 @@ rev = "4a77bca5d95ae755ab5ac129c2db2025feab217b"
[build] [build]
template = "custom" template = "custom"
script = """ script = """
mkdir -pv "${COOKBOOK_STAGE}"/bin mkdir -pv "${COOKBOOK_STAGE}"/usr/bin
cp "${COOKBOOK_SOURCE}"/ani-cli "${COOKBOOK_STAGE}"/bin/ani-cli cp "${COOKBOOK_SOURCE}"/ani-cli "${COOKBOOK_STAGE}"/usr/bin/ani-cli
chmod a+x "${COOKBOOK_STAGE}"/bin/ani-cli chmod a+x "${COOKBOOK_STAGE}"/usr/bin/ani-cli
""" """
...@@ -4,9 +4,9 @@ git = "https://github.com/synacktraa/ani-skip" ...@@ -4,9 +4,9 @@ git = "https://github.com/synacktraa/ani-skip"
[build] [build]
template = "custom" template = "custom"
script = """ script = """
mkdir -pv "${COOKBOOK_STAGE}"/bin mkdir -pv "${COOKBOOK_STAGE}"/usr/bin
mkdir -pv "${COOKBOOK_STAGE}"/home/user/.config/mpv/scripts mkdir -pv "${COOKBOOK_STAGE}"/home/user/.config/mpv/scripts
cp "${COOKBOOK_SOURCE}"/ani-skip "${COOKBOOK_STAGE}"/bin/ani-skip cp "${COOKBOOK_SOURCE}"/ani-skip "${COOKBOOK_STAGE}"/usr/bin/ani-skip
cp "${COOKBOOK_SOURCE}"/skip.lua "${COOKBOOK_STAGE}"/home/user/.config/mpv/scripts cp "${COOKBOOK_SOURCE}"/skip.lua "${COOKBOOK_STAGE}"/home/user/.config/mpv/scripts
chmod a+x "${COOKBOOK_STAGE}"/bin/ani-skip chmod a+x "${COOKBOOK_STAGE}"/usr/bin/ani-skip
""" """
...@@ -4,7 +4,7 @@ git = "https://github.com/CoolnsX/dra-cla" ...@@ -4,7 +4,7 @@ git = "https://github.com/CoolnsX/dra-cla"
[build] [build]
template = "custom" template = "custom"
script = """ script = """
mkdir -pv "${COOKBOOK_STAGE}"/bin mkdir -pv "${COOKBOOK_STAGE}"/usr/bin
cp "${COOKBOOK_SOURCE}"/dra-cla "${COOKBOOK_STAGE}"/bin/dra-cla cp "${COOKBOOK_SOURCE}"/dra-cla "${COOKBOOK_STAGE}"/usr/bin/dra-cla
chmod a+x "${COOKBOOK_STAGE}"/bin/dra-cla chmod a+x "${COOKBOOK_STAGE}"/usr/bin/dra-cla
""" """
...@@ -14,8 +14,8 @@ binary=hickory-dns ...@@ -14,8 +14,8 @@ binary=hickory-dns
--bin "${binary}" \ --bin "${binary}" \
--release --release
--all-features --all-features
mkdir -pv "${COOKBOOK_STAGE}/bin" mkdir -pv "${COOKBOOK_STAGE}/usr/bin"
cp -v \ cp -v \
"target/${TARGET}/release/${binary}" \ "target/${TARGET}/release/${binary}" \
"${COOKBOOK_STAGE}/bin/${binary}" "${COOKBOOK_STAGE}/usr/bin/${binary}"
""" """
#TODO wrong script #TODO not compiled or tested
[source] [source]
git = "https://github.com/w-henderson/Humphrey" git = "https://github.com/w-henderson/Humphrey"
[build] [build]
template = "custom" template = "custom"
script = """ script = """
package="humphrey_server" binary=humphrey_server
"${COOKBOOK_CARGO}" build \ "${COOKBOOK_CARGO}" build \
--manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \ --manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
--package "${package}" \ --bin "${binary}" \
--release --release
--all-features --all-features
mkdir -pv "${COOKBOOK_STAGE}/bin" mkdir -pv "${COOKBOOK_STAGE}/usr/bin"
cp -v \ cp -v \
"target/${TARGET}/release/${package}" \ "target/${TARGET}/release/${binary}" \
"${COOKBOOK_STAGE}/bin/${package}" "${COOKBOOK_STAGE}/usr/bin/${binary}"
""" """
...@@ -5,5 +5,5 @@ git = "https://github.com/casey/intermodal" ...@@ -5,5 +5,5 @@ git = "https://github.com/casey/intermodal"
template = "custom" template = "custom"
script = """ script = """
cookbook_cargo cookbook_cargo
mv "${COOKBOOK_STAGE}/bin/imdl" "${COOKBOOK_STAGE}/bin/intermodal" mv "${COOKBOOK_STAGE}/usr/bin/imdl" "${COOKBOOK_STAGE}/usr/bin/intermodal"
""" """
...@@ -4,7 +4,7 @@ git = "https://github.com/justchokingaround/jerry" ...@@ -4,7 +4,7 @@ git = "https://github.com/justchokingaround/jerry"
[build] [build]
template = "custom" template = "custom"
script = """ script = """
mkdir -pv "${COOKBOOK_STAGE}"/bin mkdir -pv "${COOKBOOK_STAGE}"/usr/bin
cp "${COOKBOOK_SOURCE}"/jerry.sh "${COOKBOOK_STAGE}"/bin/jerry cp "${COOKBOOK_SOURCE}"/jerry.sh "${COOKBOOK_STAGE}"/usr/bin/jerry
chmod a+x "${COOKBOOK_STAGE}"/bin/jerry chmod a+x "${COOKBOOK_STAGE}"/usr/bin/jerry
""" """
...@@ -4,7 +4,7 @@ git = "https://github.com/justchokingaround/lobster" ...@@ -4,7 +4,7 @@ git = "https://github.com/justchokingaround/lobster"
[build] [build]
template = "custom" template = "custom"
script = """ script = """
mkdir -pv "${COOKBOOK_STAGE}"/bin mkdir -pv "${COOKBOOK_STAGE}"/usr/bin
cp "${COOKBOOK_SOURCE}"/lobster.sh "${COOKBOOK_STAGE}"/bin/lobster cp "${COOKBOOK_SOURCE}"/lobster.sh "${COOKBOOK_STAGE}"/usr/bin/lobster
chmod a+x "${COOKBOOK_STAGE}"/bin/lobster chmod a+x "${COOKBOOK_STAGE}"/usr/bin/lobster
""" """
...@@ -4,11 +4,7 @@ git = "https://github.com/hackerb9/lsix" ...@@ -4,11 +4,7 @@ git = "https://github.com/hackerb9/lsix"
[build] [build]
template = "custom" template = "custom"
script = """ script = """
mkdir -pv "${COOKBOOK_STAGE}"/bin mkdir -pv "${COOKBOOK_STAGE}"/usr/bin
cp "${COOKBOOK_SOURCE}"/lsix "${COOKBOOK_STAGE}"/bin/lsix cp "${COOKBOOK_SOURCE}"/lsix "${COOKBOOK_STAGE}"/usr/bin/lsix
chmod a+x "${COOKBOOK_STAGE}"/bin/lsix chmod a+x "${COOKBOOK_STAGE}"/usr/bin/lsix
""" """
[package]
dependencies = [
"imagemagick7",
]
...@@ -5,7 +5,7 @@ rev = "60d07dee6b76769d8c487a40639fb7b5a1a7bc85" ...@@ -5,7 +5,7 @@ rev = "60d07dee6b76769d8c487a40639fb7b5a1a7bc85"
[build] [build]
template = "custom" template = "custom"
script = """ script = """
mkdir -pv "${COOKBOOK_STAGE}"/bin mkdir -pv "${COOKBOOK_STAGE}"/usr/bin
cp "${COOKBOOK_SOURCE}"/neofetch "${COOKBOOK_STAGE}"/bin/neofetch cp "${COOKBOOK_SOURCE}"/neofetch "${COOKBOOK_STAGE}"/usr/bin/neofetch
chmod a+x "${COOKBOOK_STAGE}"/bin/neofetch chmod a+x "${COOKBOOK_STAGE}"/usr/bin/neofetch
""" """
...@@ -8,10 +8,10 @@ dependencies = [ ...@@ -8,10 +8,10 @@ dependencies = [
"libwayland", "libwayland",
] ]
script = """ script = """
mkdir -pv "${COOKBOOK_STAGE}"/bin mkdir -pv "${COOKBOOK_STAGE}"/usr/bin
mkdir -pv "${COOKBOOK_STAGE}"/home/user/.local/share/wayland-sessions mkdir -pv "${COOKBOOK_STAGE}"/home/user/.local/share/wayland-sessions
mkdir -pv "${COOKBOOK_STAGE}"/home/user/.local/share/xdg-desktop-portal mkdir -pv "${COOKBOOK_STAGE}"/home/user/.local/share/xdg-desktop-portal
cp -rv "${COOKBOOK_SOURCE}"/resources/niri-session "${COOKBOOK_STAGE}"/bin cp -rv "${COOKBOOK_SOURCE}"/resources/niri-session "${COOKBOOK_STAGE}"/usr/bin
cp -rv "${COOKBOOK_SOURCE}"/resources/niri.desktop "${COOKBOOK_STAGE}"/home/user/.local/share/wayland-sessions cp -rv "${COOKBOOK_SOURCE}"/resources/niri.desktop "${COOKBOOK_STAGE}"/home/user/.local/share/wayland-sessions
cp -rv "${COOKBOOK_SOURCE}"/resources/niri-portals.conf "${COOKBOOK_STAGE}"/home/user/.local/share/xdg-desktop-portal cp -rv "${COOKBOOK_SOURCE}"/resources/niri-portals.conf "${COOKBOOK_STAGE}"/home/user/.local/share/xdg-desktop-portal
cookbook_cargo cookbook_cargo
......
...@@ -6,5 +6,5 @@ git = "https://github.com/pdeljanov/Symphonia" ...@@ -6,5 +6,5 @@ git = "https://github.com/pdeljanov/Symphonia"
template = "custom" template = "custom"
script = """ script = """
cookbook_cargo_packages symphonia-play cookbook_cargo_packages symphonia-play
mv "${COOKBOOK_STAGE}/bin/symphonia-play_symphonia-play" "${COOKBOOK_STAGE}/bin/symphonia-play" mv "${COOKBOOK_STAGE}/usr/bin/symphonia-play_symphonia-play" "${COOKBOOK_STAGE}/usr/bin/symphonia-play"
""" """
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment