From d0b4841d3047b25c243c3e1b946a21cea4f40be7 Mon Sep 17 00:00:00 2001 From: stkhan Date: Mon, 14 Jun 2021 13:46:30 -0500 Subject: Testing PKGBUILD --- PKGBUILD | 27 +++++++++++++++++++++++++++ bin/fehbg | 2 +- bin/sarc_compile | 41 +++++++++++++++++++++++++++++++++++++++++ bin/sarc_install | 30 ++++++++++++++++++++++++++++++ bin/sarc_pkgbuild | 30 ++++++++++++++++++++++++++++++ bin/ss | 4 ++++ dwm-6.2/dwm | Bin 71928 -> 71928 bytes dwm-6.2/dwm.o | Bin 62608 -> 62608 bytes tools/sarc-tools-b1.tar.xz | Bin 0 -> 10240 bytes 9 files changed, 133 insertions(+), 1 deletion(-) create mode 100644 PKGBUILD create mode 100755 bin/sarc_compile create mode 100755 bin/sarc_install create mode 100755 bin/sarc_pkgbuild create mode 100755 bin/ss create mode 100644 tools/sarc-tools-b1.tar.xz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..2052485 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: SkywalkerSW5 +pkgname=sarc +pkgver=b1 +pkgrel=1 +pkgdesc="My suckless setup" +arch=('any') +url="https://github.com/SkywalkerSW5/sarc" +license=('MIT') +depends=('base-devel' 'adobe-source-code-pro-fonts' 'libnotify' 'dunst' 'picom' 'light' 'feh' 'xorg' 'sx' 'pulseaudio') +provides=('dwm' 'st' 'dmenu') +source=("$pkgname-$pkgver.tar.gz") +noextract=("$pkgname-tools-$pkgver.tar.xz") +md5sums=() + +build() { + + tar xvf $pkgname-tools-$pkgver.tar.xz +} + +package() { + + mv * $pkgdir + mkdir -p /usr/local/bin + mv bin/* /usr/local/bin/ + rm -r bin + +} diff --git a/bin/fehbg b/bin/fehbg index 0617cb5..71860f0 100755 --- a/bin/fehbg +++ b/bin/fehbg @@ -1,3 +1,3 @@ #!/bin/sh -feh --bg-fill ~/.config/wallpaper.jpg +feh --bg-fill /etc/wallpaper.jpg diff --git a/bin/sarc_compile b/bin/sarc_compile new file mode 100755 index 0000000..5c1a541 --- /dev/null +++ b/bin/sarc_compile @@ -0,0 +1,41 @@ +#!/bin/sh +# A script to compile sarc + +dwm="dwm-6.2" +st="st" +dmenu="dmenu-5.0" + +echo "Welcome to the sarc installation!" +echo + +echo "What theme do you want to use?" +echo +ls themes/ +echo +echo "Enter what theme you would like to use:" && read theme +echo +echo "Theme is $theme" +echo +echo $theme >> /tmp/theme +pwd + +cp themes/$theme theme.h + +cd $dwm +make clean +make -s + +cd ../dwmblocks +make -s + +cd ../$st +make clean +make -s + +cd ../$dmenu +make -s + +cd .. + +rm theme.h +echo "Compilation is complete! Run sarc_install to install it" diff --git a/bin/sarc_install b/bin/sarc_install new file mode 100755 index 0000000..07e1ec3 --- /dev/null +++ b/bin/sarc_install @@ -0,0 +1,30 @@ +#!/bin/sh +# A script that installs sarc. Run this as root + +dwm="dwm-6.2" +dmenu="dmenu-5.0" +st="st" + +echo "What theme did you choose?" +echo +ls themes/ && read theme +pwd +echo +echo $theme + +cd $dwm +make install + +cd ../$dmenu +make install + +cd ../$st +make install + +cd ../dwmblocks +make install + +cd .. +cp bin/* /usr/local/bin +cp etc/wallpaper/$theme.wallpaper.jpg /etc/wallpaper.jpg +rm /tmp/theme diff --git a/bin/sarc_pkgbuild b/bin/sarc_pkgbuild new file mode 100755 index 0000000..07e1ec3 --- /dev/null +++ b/bin/sarc_pkgbuild @@ -0,0 +1,30 @@ +#!/bin/sh +# A script that installs sarc. Run this as root + +dwm="dwm-6.2" +dmenu="dmenu-5.0" +st="st" + +echo "What theme did you choose?" +echo +ls themes/ && read theme +pwd +echo +echo $theme + +cd $dwm +make install + +cd ../$dmenu +make install + +cd ../$st +make install + +cd ../dwmblocks +make install + +cd .. +cp bin/* /usr/local/bin +cp etc/wallpaper/$theme.wallpaper.jpg /etc/wallpaper.jpg +rm /tmp/theme diff --git a/bin/ss b/bin/ss new file mode 100755 index 0000000..f8f1468 --- /dev/null +++ b/bin/ss @@ -0,0 +1,4 @@ +#!/bin/sh +# A script to start sarc +sx dwm +# That's it diff --git a/dwm-6.2/dwm b/dwm-6.2/dwm index d5fcebd..7299461 100755 Binary files a/dwm-6.2/dwm and b/dwm-6.2/dwm differ diff --git a/dwm-6.2/dwm.o b/dwm-6.2/dwm.o index 5297ba6..c72ab85 100644 Binary files a/dwm-6.2/dwm.o and b/dwm-6.2/dwm.o differ diff --git a/tools/sarc-tools-b1.tar.xz b/tools/sarc-tools-b1.tar.xz new file mode 100644 index 0000000..af32789 Binary files /dev/null and b/tools/sarc-tools-b1.tar.xz differ -- cgit v1.2.3