Initial version

This commit is contained in:
Knut Ahlers 2019-08-11 13:57:50 +02:00
commit 747e52911b
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
5 changed files with 190 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*.pkg.tar.xz

159
PKGBUILD Normal file
View file

@ -0,0 +1,159 @@
# Maintainer: Knut Ahlers <knut@ahlers.me>
pkgbase=luzifer
pkgname=(
luzifer-base
luzifer-devel
luzifer-gui
)
pkgver=0.1.0
pkgrel=1
pkgdesc='System configuration for @luzifer systems'
arch=(any)
url=https://github.com/luzifer-aur/luzifer
license=(Apache)
groups=(luzifer)
rootdir=${PWD}
package_luzifer-base() {
provides=(vim vi)
conflicts=(vim vi)
install=luzifer-base.install
# Build on Archlinux base group (pacman -Qgq base | xargs | fold -sw 72)
# Packages removed: vi
depends=(
bash bzip2 coreutils cryptsetup device-mapper dhcpcd diffutils
e2fsprogs file filesystem findutils gawk gcc-libs gettext glibc grep
gzip inetutils iproute2 iputils jfsutils less licenses linux
linux-firmware logrotate lvm2 man-db man-pages mdadm nano netctl pacman
pciutils pcmciautils perl procps-ng psmisc reiserfsprogs s-nail sed
shadow sysfsutils systemd-sysvcompat tar texinfo usbutils util-linux
which xfsprogs
)
# Add system utils
depends+=(
curl
ddrescue
dialog
dust
envrun
exa
expect
gocryptfs
jq
keybase
pacman-contrib
ripgrep
rsync
sudo
tmux
unzip
wget
)
# Add debugging utils
depends+=(
bind-tools
htop
iotop
lsof
mtr
nmap
socat
)
# Add network utils
depends+=(
openssh
)
# Add shell
depends+=(zsh)
# Add editor
depends+=(neovim python-neovim)
# Add script dependencies
depends+=(
python
python-requests
)
cp -a "$rootdir/base/"* "$pkgdir"
}
package_luzifer-devel() {
# Start with Archlinux base-devel group (pacman -Qgq base-devel | xargs | fold -sw 72)
depends=(
autoconf automake binutils bison fakeroot file findutils flex gawk gcc
gettext grep groff gzip libtool m4 make pacman patch pkgconf sed sudo
systemd texinfo util-linux which
)
# Apply my base package
depends+=(luzifer-base)
# Add dev specific tools
depends+=(
autopep8
aws-cli
docker
git
go
)
}
package_luzifer-gui() {
depends=(luzifer-base)
# Add fonts
depends+=(
adobe-base-14-fonts
nerd-fonts-dejavu-complete
noto-fonts-emoji
otf-ipafont
ttf-opensans
ttf-roboto
ttf-tahoma
ttf-windows
)
# Add login manager
depends+=(
lightdm
lightdm-gtk-greeter
)
# Add i3 (pacman -Qgq i3 | xargs | fold -sw 72)
depends+=(
i3-gaps i3blocks i3lock i3status
)
# Add GUI environment
depends+=(
dmenu
feh
maim
mupdf
redshift
termite
)
# Add Archlinux xorg group (pacman -Qgq xorg | xargs | fold -sw 72)
depends+=(
xf86-video-vesa xorg-bdftopcf xorg-docs xorg-font-util
xorg-fonts-100dpi xorg-fonts-75dpi xorg-fonts-encodings xorg-iceauth
xorg-luit xorg-mkfontscale xorg-server xorg-server-common
xorg-server-devel xorg-server-xdmx xorg-server-xephyr xorg-server-xnest
xorg-server-xvfb xorg-server-xwayland xorg-sessreg xorg-setxkbmap
xorg-smproxy xorg-x11perf xorg-xauth xorg-xcmsdb xorg-xcursorgen
xorg-xdpyinfo xorg-xdriinfo xorg-xev xorg-xgamma xorg-xhost xorg-xinput
xorg-xkbcomp xorg-xkbevd xorg-xkbutils xorg-xkill xorg-xlsatoms
xorg-xlsclients xorg-xmodmap xorg-xpr xorg-xprop xorg-xrandr xorg-xrdb
xorg-xrefresh xorg-xset xorg-xsetroot xorg-xvinfo xorg-xwd
xorg-xwininfo xorg-xwud
)
}

1
base/usr/bin/vi Symbolic link
View file

@ -0,0 +1 @@
/usr/bin/nvim

1
base/usr/bin/vim Symbolic link
View file

@ -0,0 +1 @@
/usr/bin/nvim

28
luzifer-base.install Normal file
View file

@ -0,0 +1,28 @@
post_install() {
post_upgrade
}
post_upgrade() {
# Enable timesync
systemctl enable --now systemd-timesyncd
# Set NTP servers
ntp_servers=(
ptbtime1.ptb.de
ptbtime2.ptb.de
ptbtime3.ptb.de
ntp1.lrz.de
ntp3.lrz.de
ntps1-0.cs.tu-berlin.de
ntps1-1.cs.tu-berlin.de
)
sed -E "s/^#?NTP=.*$/NTP=${ntp_servers[@]}/" /etc/systemd/timesyncd.conf
# Set local time
ln -sf /usr/share/zoneinfo/Europe/Berlin "/etc/localtime"
# Enable en_US locale
echo "LANG=en_US.UTF-8" >/etc/locale.conf
sed 's/#en_US/en_US/' -i /etc/locale.gen
locale-gen
}