From a6f891a5fbfa70a7ab1c609d4db4d9f224984b15 Mon Sep 17 00:00:00 2001 From: zstg Date: Tue, 24 Dec 2024 11:11:55 +0530 Subject: [PATCH] Added scripts package and modified starship build --- PKGBUILDS/stratos-bin/PKGBUILD | 25 ++++++++++++++++++++++ PKGBUILDS/stratos-starship-config/PKGBUILD | 16 ++++++++------ 2 files changed, 34 insertions(+), 7 deletions(-) create mode 100644 PKGBUILDS/stratos-bin/PKGBUILD diff --git a/PKGBUILDS/stratos-bin/PKGBUILD b/PKGBUILDS/stratos-bin/PKGBUILD new file mode 100644 index 0000000..2dc8792 --- /dev/null +++ b/PKGBUILDS/stratos-bin/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: ZeStig +pkgname=stratos-bin +pkgver=1.0 +pkgrel=0 +pkgdesc="StratOS scripts" +arch=('x86_64') +url="https://github.com/StratOS-Linux/StratOS-bin" +license=('GPL') +depends=('bash') + +build() { + git clone $url + echo $srcdir +} + +package() { + mkdir -p "$pkgdir/usr/local/bin/" + cp -r "$srcdir/StratOS-bin/*" "$pkgdir/usr/local/bin/" + echo "The scripts have been installed in /usr/local/bin." +} + +pkgpostrm() { + rm -rf /usr/local/bin/StratOS* + rm -rf /usr/local/bin/{enable-display-manager, choose-mirror, install-bedrock-x86_64.sh, install-using-flatpak, install-using-pacman, install-using-yay, livecd-sound, maneki-logo, skeleton} +} diff --git a/PKGBUILDS/stratos-starship-config/PKGBUILD b/PKGBUILDS/stratos-starship-config/PKGBUILD index 4f42de8..5ee23b7 100644 --- a/PKGBUILDS/stratos-starship-config/PKGBUILD +++ b/PKGBUILDS/stratos-starship-config/PKGBUILD @@ -27,22 +27,24 @@ package() { done if [ "$config_exists" = true ]; then - cp -r "$srcdir/StratOS-fish-config"/* "$pkgdir/etc/skel/.config/fish/" - echo "The configuration files have been installed in /etc/skel/.config/fish." - echo "You may copy the files manually if you wish to overwrite your current fish configuration." + cp -r "$srcdir/StratOS-starship-config" "$pkgdir/etc/skel/.config/starship/" + cp "$srcdir/StratOS-starship-config/starship.toml" "$pkgdir/etc/skel/.config/starship.toml" + echo "The configuration files have been installed in /etc/skel/.config/starship." + echo "You may copy the files manually if you wish to overwrite your current starship configuration." else read -p "No fish configuration files found. Do you want to install the StratOS fish configuration in .config/fish? (y/n): " user_input if [[ "$user_input" =~ ^[Yy]$ ]]; then mkdir -p "$HOME/.config/fish" cp -r "$srcdir/StratOS-fish-config"/* "$HOME/.config/fish/" else - cp -r "$srcdir/StratOS-fish-config"/* "$pkgdir/etc/skel/.config/fish/" - echo "The configuration files have been installed in /etc/skel/.config/fish." - echo "You may copy the files manually if you wish to overwrite your current fish configuration." + cp -r "$srcdir/StratOS-starship-config" "$pkgdir/etc/skel/.config/starship/" + cp "$srcdir/StratOS-starship-config/starship.toml" "$pkgdir/etc/skel/.config/starship.toml" + echo "The configuration files have been installed in /etc/skel/.config/starship." + echo "You may copy the files manually if you wish to overwrite your current starship configuration." fi fi } pkgpostrm() { - rm -rf "/etc/skel/.config/fish" + rm -rf "/etc/skel/.config/starship*" }