forked from FemboyOS/fempkg_recipes
Femboyos 2 full rewrite full working CI
This commit is contained in:
67
xorg-server.recipe.py
Normal file
67
xorg-server.recipe.py
Normal file
@@ -0,0 +1,67 @@
|
||||
# ye uh this recipe was ai generated tho wtv i was lazy, eh # WHAT the genuine fuck is this.
|
||||
pkgname = "xorg-server"
|
||||
pkgver = "21.1.21" # BLFS one
|
||||
pkgdesc = "The core of the X Window system"
|
||||
url = "https://www.x.org"
|
||||
source = f"https://www.x.org/pub/individual/xserver/{pkgname}-{pkgver}.tar.xz"
|
||||
md5 = "43225ddc1fd8d7ae7671c25ab6d1f927"
|
||||
builddir = f"/tmp/fempkg/build/{pkgname}/{pkgname}-{pkgver}"
|
||||
fembuilddir = f"/tmp/fempkg/build/{pkgname}"
|
||||
outputdir = "/home/gabry/lfs-repo/binpkg"
|
||||
manifestdir = "/home/gabry/lfs-repo/manifests"
|
||||
destdir = f"{fembuilddir}/DESTDIR"
|
||||
|
||||
# Required + Recommended dependencies only
|
||||
deps = [
|
||||
"libxcvt", # required
|
||||
"pixman", # required
|
||||
"xorg-fonts", # required
|
||||
"xkeyboard-config", # runtime, required
|
||||
|
||||
# recommended:
|
||||
"dbus",
|
||||
"elogind",
|
||||
"libepoxy",
|
||||
"libtirpc",
|
||||
#"xorg-input-driver"
|
||||
]
|
||||
|
||||
build = [
|
||||
# Extract
|
||||
f"mkdir -p {fembuilddir} && cd {fembuilddir} && tar -xvf /var/lib/fempkg/pkgs/{pkgname}-{pkgver}.tar.xz",
|
||||
|
||||
# Build
|
||||
f"""cd {builddir} && mkdir build && cd build && \\
|
||||
meson setup .. \\
|
||||
--prefix=/usr \\
|
||||
--localstatedir=/var \\
|
||||
-D glamor=true \\
|
||||
-D systemd_logind=true \\
|
||||
-D xkb_output_dir=/var/lib/xkb && \\
|
||||
ninja""",
|
||||
|
||||
# Install
|
||||
f"cd {builddir}/build && DESTDIR={destdir} ninja install",
|
||||
|
||||
# Post-install: dirs required by Xorg
|
||||
f"mkdir -pv {destdir}/etc/X11/xorg.conf.d",
|
||||
|
||||
f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/",
|
||||
f"install -v -m644 {builddir}/COPYING {destdir}/usr/share/licenses/{pkgname}/LICENSE",
|
||||
|
||||
# Make tarball + manifests
|
||||
f"mkdir -p {outputdir} && cd {destdir} && tar --transform 's|^\\.||' -I zstd -cf {outputdir}/{pkgname}-{pkgver}.tar.zst .",
|
||||
f"mkdir -p {manifestdir} && tar -tf {outputdir}/{pkgname}-{pkgver}.tar.zst | grep -v '/$' > {manifestdir}/{pkgname}.txt",
|
||||
|
||||
# Cleanup
|
||||
f"rm -rf {builddir} {fembuilddir}"
|
||||
]
|
||||
|
||||
triggers = [
|
||||
f"""grep -Fxq "/tmp/.X11-unix dir 1777 root root" /etc/sysconfig/createfiles && grep -Fxq "/tmp/.ICE-unix dir 1777 root root" /etc/sysconfig/createfiles &&
|
||||
echo "createfiles already contains xorg configs" || \\
|
||||
cat >> /etc/sysconfig/createfiles << "EOF"
|
||||
/tmp/.ICE-unix dir 1777 root root
|
||||
/tmp/.X11-unix dir 1777 root root
|
||||
EOF"""
|
||||
]
|
||||
Reference in New Issue
Block a user