diff options
author | samoht9277 | 2023-09-06 12:09:15 -0300 |
---|---|---|
committer | samoht9277 | 2023-09-06 12:09:15 -0300 |
commit | cc334c5c392bbacb4847a9826222ee3e7d3b00ed (patch) | |
tree | 9018ba88f9e7d69933975a6978f7e3d6cf276568 | |
parent | 5d35e6fe060cf9d328cea3e7cf2355988406e0ae (diff) | |
download | aur-cc334c5c392bbacb4847a9826222ee3e7d3b00ed.tar.gz |
Fixed corelib location in export.
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -24,18 +24,18 @@ package() { mkdir -p $pkgdir/usr/bin/ $pkgdir/usr/lib/ mv cairo-$pkgver$release/corelib/ $pkgdir/usr/lib/ - + pkgs=("cairo-run" "cairo-compile" "cairo-format" "cairo-language-server" "cairo-test" "sierra-compile" "starknet-compile" "starknet-sierra-compile") - + for pkg in ${pkgs[@]}; do mv cairo-$pkgver$release/target/release/$pkg $pkgdir/usr/bin/ done - + add_to_config } add_to_config() { - declare -A shells=( ["bash"]=".bashrc" ["fish"]=".config/fish/config.fish" ["zsh"]=".zshrc") + declare -A shells=(["bash"]=".bashrc" ["fish"]=".config/fish/config.fish" ["zsh"]=".zshrc") - echo "export CARGO_MANIFEST_DIR=\"/usr/bin/corelib/\"" >> /home/$USER/${shells[$(basename $(echo $SHELL))]} + echo "export CARGO_MANIFEST_DIR=\"/usr/lib/corelib/\"" >>/home/$USER/${shells[$(basename $(echo $SHELL))]} } |