diff --git a/index.txt b/index.txt index 66204d7..89d0614 100755 --- a/index.txt +++ b/index.txt @@ -402,6 +402,7 @@ qemu.recipe.py qpdf.recipe.py qt6ct.recipe.py qt6.recipe.py +qtengine.recipe.py qtkeychain.recipe.py quickshell.recipe.py re2.recipe.py diff --git a/qtengine.recipe.py b/qtengine.recipe.py new file mode 100644 index 0000000..6d1ec7d --- /dev/null +++ b/qtengine.recipe.py @@ -0,0 +1,30 @@ +pkgname = "qtengine" +pkgver = "0.2.1" +qtver = "6.11.1" +source = f"https://github.com/kossLAN/qtengine.git" +source_type = "git" +builddir = f"/tmp/fempkgbuild/{pkgname}" +fembuilddir = builddir +outputdir = "/home/gabry/lfs-repo/binpkg" +manifestdir = "/home/gabry/lfs-repo/manifests" +destdir = f"{fembuilddir}/DESTDIR" + +deps = ["extra-cmake-modules", "qt6", "kf6"] + +build = [ + + # 64-bit build + f"cd {builddir} && mkdir build && cd build && cmake -G Ninja -D QT6_PLUGINDIR=/opt/qt6/plugins -DCMAKE_BUILD_TYPE=Release -D BUILD_QT5=OFF -DCMAKE_INSTALL_PREFIX=/usr ..", + f"cd {builddir}/build && ninja", + f"mkdir -p {destdir}/opt/qt-{qtver} && ln -sf qt-{qtver} {destdir}/opt/qt6", + f"cd {builddir}/build && DESTDIR={destdir} ninja install", + + f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/", + f"install -v -m644 {builddir}/LICENSE {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", + + f"rm -rf {builddir}" +]