Skip to content

Commit

Permalink
Added scripts package and modified starship build
Browse files Browse the repository at this point in the history
  • Loading branch information
zstg committed Dec 24, 2024
1 parent 25e48c7 commit a6f891a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 7 deletions.
25 changes: 25 additions & 0 deletions PKGBUILDS/stratos-bin/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Maintainer: ZeStig <zestig@duck.com>
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}
}
16 changes: 9 additions & 7 deletions PKGBUILDS/stratos-starship-config/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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*"
}

0 comments on commit a6f891a

Please sign in to comment.