From 0618174ab98be2ab4496b692b9d160ebd8bec456 Mon Sep 17 00:00:00 2001 From: Ribbon <ribbon_45@proton.me> Date: Wed, 10 Jan 2024 18:20:46 +0000 Subject: [PATCH] Migrate some WIP recipes to /usr --- recipes/wip/ani-cli/recipe.toml | 6 +++--- recipes/wip/ani-skip/recipe.toml | 6 +++--- recipes/wip/dra-cla/recipe.toml | 6 +++--- recipes/wip/hickory-dns/recipe.toml | 4 ++-- recipes/wip/humphrey/recipe.toml | 14 +++++++------- recipes/wip/intermodal/recipe.toml | 2 +- recipes/wip/jerry/recipe.toml | 6 +++--- recipes/wip/lobster/recipe.toml | 6 +++--- recipes/wip/lsix/recipe.toml | 10 +++------- recipes/wip/neofetch/recipe.toml | 6 +++--- recipes/wip/niri/recipe.toml | 4 ++-- recipes/wip/symphonia-play/recipe.toml | 2 +- 12 files changed, 34 insertions(+), 38 deletions(-) diff --git a/recipes/wip/ani-cli/recipe.toml b/recipes/wip/ani-cli/recipe.toml index 8fd8bbf19..bac9aae43 100644 --- a/recipes/wip/ani-cli/recipe.toml +++ b/recipes/wip/ani-cli/recipe.toml @@ -5,7 +5,7 @@ rev = "4a77bca5d95ae755ab5ac129c2db2025feab217b" [build] template = "custom" script = """ -mkdir -pv "${COOKBOOK_STAGE}"/bin -cp "${COOKBOOK_SOURCE}"/ani-cli "${COOKBOOK_STAGE}"/bin/ani-cli -chmod a+x "${COOKBOOK_STAGE}"/bin/ani-cli +mkdir -pv "${COOKBOOK_STAGE}"/usr/bin +cp "${COOKBOOK_SOURCE}"/ani-cli "${COOKBOOK_STAGE}"/usr/bin/ani-cli +chmod a+x "${COOKBOOK_STAGE}"/usr/bin/ani-cli """ diff --git a/recipes/wip/ani-skip/recipe.toml b/recipes/wip/ani-skip/recipe.toml index 454b15dff..7af44b1f1 100644 --- a/recipes/wip/ani-skip/recipe.toml +++ b/recipes/wip/ani-skip/recipe.toml @@ -4,9 +4,9 @@ git = "https://github.com/synacktraa/ani-skip" [build] template = "custom" script = """ -mkdir -pv "${COOKBOOK_STAGE}"/bin +mkdir -pv "${COOKBOOK_STAGE}"/usr/bin 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 -chmod a+x "${COOKBOOK_STAGE}"/bin/ani-skip +chmod a+x "${COOKBOOK_STAGE}"/usr/bin/ani-skip """ diff --git a/recipes/wip/dra-cla/recipe.toml b/recipes/wip/dra-cla/recipe.toml index 04370b488..c201a2d13 100644 --- a/recipes/wip/dra-cla/recipe.toml +++ b/recipes/wip/dra-cla/recipe.toml @@ -4,7 +4,7 @@ git = "https://github.com/CoolnsX/dra-cla" [build] template = "custom" script = """ -mkdir -pv "${COOKBOOK_STAGE}"/bin -cp "${COOKBOOK_SOURCE}"/dra-cla "${COOKBOOK_STAGE}"/bin/dra-cla -chmod a+x "${COOKBOOK_STAGE}"/bin/dra-cla +mkdir -pv "${COOKBOOK_STAGE}"/usr/bin +cp "${COOKBOOK_SOURCE}"/dra-cla "${COOKBOOK_STAGE}"/usr/bin/dra-cla +chmod a+x "${COOKBOOK_STAGE}"/usr/bin/dra-cla """ diff --git a/recipes/wip/hickory-dns/recipe.toml b/recipes/wip/hickory-dns/recipe.toml index 5d3bb1a0f..399ad9fc8 100644 --- a/recipes/wip/hickory-dns/recipe.toml +++ b/recipes/wip/hickory-dns/recipe.toml @@ -14,8 +14,8 @@ binary=hickory-dns --bin "${binary}" \ --release --all-features - mkdir -pv "${COOKBOOK_STAGE}/bin" + mkdir -pv "${COOKBOOK_STAGE}/usr/bin" cp -v \ "target/${TARGET}/release/${binary}" \ - "${COOKBOOK_STAGE}/bin/${binary}" + "${COOKBOOK_STAGE}/usr/bin/${binary}" """ diff --git a/recipes/wip/humphrey/recipe.toml b/recipes/wip/humphrey/recipe.toml index a3dadf1d2..19c4e4389 100644 --- a/recipes/wip/humphrey/recipe.toml +++ b/recipes/wip/humphrey/recipe.toml @@ -1,17 +1,17 @@ -#TODO wrong script +#TODO not compiled or tested [source] git = "https://github.com/w-henderson/Humphrey" [build] template = "custom" script = """ -package="humphrey_server" +binary=humphrey_server "${COOKBOOK_CARGO}" build \ --manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \ - --package "${package}" \ + --bin "${binary}" \ --release - --all-features - mkdir -pv "${COOKBOOK_STAGE}/bin" + --all-features + mkdir -pv "${COOKBOOK_STAGE}/usr/bin" cp -v \ - "target/${TARGET}/release/${package}" \ - "${COOKBOOK_STAGE}/bin/${package}" + "target/${TARGET}/release/${binary}" \ + "${COOKBOOK_STAGE}/usr/bin/${binary}" """ diff --git a/recipes/wip/intermodal/recipe.toml b/recipes/wip/intermodal/recipe.toml index 2efca300b..493823ff0 100644 --- a/recipes/wip/intermodal/recipe.toml +++ b/recipes/wip/intermodal/recipe.toml @@ -5,5 +5,5 @@ git = "https://github.com/casey/intermodal" template = "custom" script = """ cookbook_cargo -mv "${COOKBOOK_STAGE}/bin/imdl" "${COOKBOOK_STAGE}/bin/intermodal" +mv "${COOKBOOK_STAGE}/usr/bin/imdl" "${COOKBOOK_STAGE}/usr/bin/intermodal" """ diff --git a/recipes/wip/jerry/recipe.toml b/recipes/wip/jerry/recipe.toml index 7d5c1f1b8..5e32f69e8 100644 --- a/recipes/wip/jerry/recipe.toml +++ b/recipes/wip/jerry/recipe.toml @@ -4,7 +4,7 @@ git = "https://github.com/justchokingaround/jerry" [build] template = "custom" script = """ -mkdir -pv "${COOKBOOK_STAGE}"/bin -cp "${COOKBOOK_SOURCE}"/jerry.sh "${COOKBOOK_STAGE}"/bin/jerry -chmod a+x "${COOKBOOK_STAGE}"/bin/jerry +mkdir -pv "${COOKBOOK_STAGE}"/usr/bin +cp "${COOKBOOK_SOURCE}"/jerry.sh "${COOKBOOK_STAGE}"/usr/bin/jerry +chmod a+x "${COOKBOOK_STAGE}"/usr/bin/jerry """ diff --git a/recipes/wip/lobster/recipe.toml b/recipes/wip/lobster/recipe.toml index 04a277f75..0c32de9f1 100644 --- a/recipes/wip/lobster/recipe.toml +++ b/recipes/wip/lobster/recipe.toml @@ -4,7 +4,7 @@ git = "https://github.com/justchokingaround/lobster" [build] template = "custom" script = """ -mkdir -pv "${COOKBOOK_STAGE}"/bin -cp "${COOKBOOK_SOURCE}"/lobster.sh "${COOKBOOK_STAGE}"/bin/lobster -chmod a+x "${COOKBOOK_STAGE}"/bin/lobster +mkdir -pv "${COOKBOOK_STAGE}"/usr/bin +cp "${COOKBOOK_SOURCE}"/lobster.sh "${COOKBOOK_STAGE}"/usr/bin/lobster +chmod a+x "${COOKBOOK_STAGE}"/usr/bin/lobster """ diff --git a/recipes/wip/lsix/recipe.toml b/recipes/wip/lsix/recipe.toml index 7a42e18da..0e48e66ac 100644 --- a/recipes/wip/lsix/recipe.toml +++ b/recipes/wip/lsix/recipe.toml @@ -4,11 +4,7 @@ git = "https://github.com/hackerb9/lsix" [build] template = "custom" script = """ -mkdir -pv "${COOKBOOK_STAGE}"/bin -cp "${COOKBOOK_SOURCE}"/lsix "${COOKBOOK_STAGE}"/bin/lsix -chmod a+x "${COOKBOOK_STAGE}"/bin/lsix +mkdir -pv "${COOKBOOK_STAGE}"/usr/bin +cp "${COOKBOOK_SOURCE}"/lsix "${COOKBOOK_STAGE}"/usr/bin/lsix +chmod a+x "${COOKBOOK_STAGE}"/usr/bin/lsix """ -[package] -dependencies = [ - "imagemagick7", -] diff --git a/recipes/wip/neofetch/recipe.toml b/recipes/wip/neofetch/recipe.toml index d53772fee..f1438fbd2 100644 --- a/recipes/wip/neofetch/recipe.toml +++ b/recipes/wip/neofetch/recipe.toml @@ -5,7 +5,7 @@ rev = "60d07dee6b76769d8c487a40639fb7b5a1a7bc85" [build] template = "custom" script = """ -mkdir -pv "${COOKBOOK_STAGE}"/bin -cp "${COOKBOOK_SOURCE}"/neofetch "${COOKBOOK_STAGE}"/bin/neofetch -chmod a+x "${COOKBOOK_STAGE}"/bin/neofetch +mkdir -pv "${COOKBOOK_STAGE}"/usr/bin +cp "${COOKBOOK_SOURCE}"/neofetch "${COOKBOOK_STAGE}"/usr/bin/neofetch +chmod a+x "${COOKBOOK_STAGE}"/usr/bin/neofetch """ diff --git a/recipes/wip/niri/recipe.toml b/recipes/wip/niri/recipe.toml index 76763e59e..582004fe0 100644 --- a/recipes/wip/niri/recipe.toml +++ b/recipes/wip/niri/recipe.toml @@ -8,10 +8,10 @@ dependencies = [ "libwayland", ] 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/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-portals.conf "${COOKBOOK_STAGE}"/home/user/.local/share/xdg-desktop-portal cookbook_cargo diff --git a/recipes/wip/symphonia-play/recipe.toml b/recipes/wip/symphonia-play/recipe.toml index b6f2a4095..09f2292b8 100644 --- a/recipes/wip/symphonia-play/recipe.toml +++ b/recipes/wip/symphonia-play/recipe.toml @@ -6,5 +6,5 @@ git = "https://github.com/pdeljanov/Symphonia" template = "custom" script = """ 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" """ -- GitLab