Femboyos 2 full rewrite full working CI
This commit is contained in:
42
xorg-apps.recipe.py
Normal file
42
xorg-apps.recipe.py
Normal file
@@ -0,0 +1,42 @@
|
||||
pkgname = "xorg-apps"
|
||||
pkgver = "1.0"
|
||||
source = f"https://www.x.org/archive/individual/app/appres-1.0.0.tar.bz2"
|
||||
builddir = f"/tmp/fempkg/build/{pkgname}/appres-1.0.0"
|
||||
fembuilddir = f"/tmp/fempkg/build/{pkgname}"
|
||||
outputdir = "/home/gabry/lfs-repo/binpkg"
|
||||
manifestdir = "/home/gabry/lfs-repo/manifests"
|
||||
destdir = f"{fembuilddir}/DESTDIR"
|
||||
deps = ["libpng", "mesa", "xbitmaps", "xcb-util"]
|
||||
|
||||
build = [
|
||||
# Extract
|
||||
f"mkdir /tmp/fempkg/build {fembuilddir} || true && cd {fembuilddir} && tar -xvf /var/lib/fempkg/pkgs/appres-1.0.0.tar.bz2",
|
||||
|
||||
# 64-bit build
|
||||
f"cd {builddir} && wget https://rocketleaguechatp.duckdns.org/app-7.md5",
|
||||
f"cd {builddir} && mkdir app && cd app",
|
||||
f"cd {builddir}/app && grep -v '^#' ../app-7.md5 | awk '{{print $2}}' | wget -i- -c -B https://www.x.org/pub/individual/app/",
|
||||
f"""cd {builddir}/app &&
|
||||
for package in $(grep -v '^#' ../app-7.md5 | awk '{{print $2}}')
|
||||
do
|
||||
packagedir=${{package%.tar.?z*}}
|
||||
pkg="${{packagedir%%-*}}"
|
||||
tar -xf $package
|
||||
pushd $packagedir
|
||||
./configure $XORG_CONFIG
|
||||
make
|
||||
make DESTDIR={destdir} install
|
||||
install -v -d -m755 {destdir}/usr/share/licenses/$pkg/
|
||||
install -v -m644 {builddir}/COPYING {destdir}/usr/share/licenses/$pkg/LICENSE
|
||||
popd
|
||||
rm -rf $packagedir
|
||||
done""",
|
||||
f"cd {builddir}/app && rm -f {destdir}$XORG_PREFIX/bin/xkeystone",
|
||||
|
||||
# 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}"
|
||||
]
|
||||
Reference in New Issue
Block a user