30 lines
1.3 KiB
Python
30 lines
1.3 KiB
Python
pkgname = "qt6ct"
|
|
pkgver = "0.11"
|
|
qtver = "6.10.1"
|
|
source = f"https://www.opencode.net/trialuser/qt6ct"
|
|
builddir = f"/tmp/fempkgbuild/{pkgname}"
|
|
source_type = "git"
|
|
fembuilddir = builddir
|
|
outputdir = "/home/gabry/lfs-repo/binpkg"
|
|
manifestdir = "/home/gabry/lfs-repo/manifests"
|
|
destdir = f"{fembuilddir}/DESTDIR"
|
|
|
|
deps = [] # qt6 i guess, well bob
|
|
|
|
build = [
|
|
|
|
# 64-bit build
|
|
f"cd {builddir} && git checkout 0.11 && wget https://rocketleaguechatp.duckdns.org/qt6ct-shenanigans.patch -O qt6ct-shenanigans.patch && patch -p1 < ./qt6ct-shenanigans.patch && mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/usr ..",
|
|
f"cd {builddir}/build && make -j$(nproc)",
|
|
f"mkdir -p {destdir}/opt/qt-{qtver} && ln -sf qt-{qtver} {destdir}/opt/qt6",
|
|
f"cd {builddir}/build && make DESTDIR={destdir} install && install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/ && "
|
|
f"install -Dm644 ../COPYING {destdir}/usr/share/licenses/qt6ct/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}"
|
|
]
|