mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
distro-files: small rework
add files to /etc/skel and /home/astral, move DOOM1.WAD and id1 to /usr/share/games folders and create symlinks to them in the recipe
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
root::0:root
|
||||
sshd::100:sshd
|
||||
unknown::999:unknown
|
||||
astral::999:astral
|
||||
astral::1000:astral
|
||||
|
||||
@@ -12,3 +12,7 @@ mount /tmp tmpfs
|
||||
chmod 1777 /tmp
|
||||
|
||||
chmod 0755 /dev/pts
|
||||
|
||||
# required to be owned by root and sticky for rootless Xorg.
|
||||
mkdir -p /tmp/.X11-unix
|
||||
chmod 1777 /tmp/.X11-unix
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
xterm*background: black
|
||||
xterm*foreground: white
|
||||
@@ -0,0 +1 @@
|
||||
--ipv4
|
||||
@@ -0,0 +1,13 @@
|
||||
section .text
|
||||
global _start
|
||||
_start:
|
||||
mov rax, 7
|
||||
mov rdi, 1
|
||||
mov rsi, msg
|
||||
mov rdx, 14
|
||||
syscall
|
||||
mov rax, 13
|
||||
xor rdi, rdi
|
||||
syscall
|
||||
section .data
|
||||
msg: db "Hello, world!", 0xA
|
||||
@@ -0,0 +1,5 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(){
|
||||
printf("Hello, world!\n");
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
#include <iostream>
|
||||
|
||||
int main(){
|
||||
std::cout << "Hello, world!" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
echo Hello, World!
|
||||
@@ -0,0 +1,2 @@
|
||||
xterm*background: black
|
||||
xterm*foreground: white
|
||||
@@ -0,0 +1 @@
|
||||
--ipv4
|
||||
@@ -0,0 +1,13 @@
|
||||
section .text
|
||||
global _start
|
||||
_start:
|
||||
mov rax, 7
|
||||
mov rdi, 1
|
||||
mov rsi, msg
|
||||
mov rdx, 14
|
||||
syscall
|
||||
mov rax, 13
|
||||
xor rdi, rdi
|
||||
syscall
|
||||
section .data
|
||||
msg: db "Hello, world!", 0xA
|
||||
@@ -0,0 +1,5 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(){
|
||||
printf("Hello, world!\n");
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
#include <iostream>
|
||||
|
||||
int main(){
|
||||
std::cout << "Hello, world!" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
echo Hello, World!
|
||||
@@ -5,5 +5,21 @@ from_source=distro-files
|
||||
package() {
|
||||
cp -r ${source_dir}/* ${dest_dir}
|
||||
mkdir -p ${dest_dir}/root/.fvwm
|
||||
mkdir -p ${dest_dir}/home/astral/.fvwm
|
||||
mkdir -p ${dest_dir}/etc/skel/.fvwm
|
||||
|
||||
# fvwm background
|
||||
ln -fvs /usr/share/fvwm3/default-config/images/background/bg3.png ${dest_dir}/root/.fvwm/.BGdefault
|
||||
ln -fvs /usr/share/fvwm3/default-config/images/background/bg3.png ${dest_dir}/home/astral/.fvwm/.BGdefault
|
||||
ln -fvs /usr/share/fvwm3/default-config/images/background/bg3.png ${dest_dir}/etc/skel/.fvwm/.BGdefault
|
||||
|
||||
# quake files
|
||||
ln -fvs /usr/share/games/quake/id1 ${dest_dir}/root/id1
|
||||
ln -fvs /usr/share/games/quake/id1 ${dest_dir}/home/astral/id1
|
||||
ln -fvs /usr/share/games/quake/id1 ${dest_dir}/etc/skel
|
||||
|
||||
# doom files
|
||||
ln -fvs /usr/share/games/doom/DOOM1.WAD ${dest_dir}/root/DOOM1.WAD
|
||||
ln -fvs /usr/share/games/doom/DOOM1.WAD ${dest_dir}/home/astral/DOOM1.WAD
|
||||
ln -fvs /usr/share/games/doom/DOOM1.WAD ${dest_dir}/etc/skel/DOOM1.WAD
|
||||
}
|
||||
|
||||
@@ -8,7 +8,6 @@ deps="mlibc libxcvt pixman xorgproto xtrans xkbfile libxfont2 fontutil libgcrypt
|
||||
build() {
|
||||
${source_dir}/configure --prefix=${prefix} --host=x86_64-astral --disable-pciaccess --disable-libdrm --disable-glx --disable-int10-module --disable-glamor --disable-vgahw --disable-dri3 --disable-dri2 --disable-dri --disable-xephyr --disable-xwayland --disable-xnest --disable-dmx --with-fontrootdir=${prefix}/share/fonts/X11
|
||||
make -j${parallelism}
|
||||
|
||||
}
|
||||
|
||||
package() {
|
||||
|
||||
Reference in New Issue
Block a user