34 lines
1.6 KiB
Python
34 lines
1.6 KiB
Python
pkgname = "caelestia-shell"
|
|
pkgver = "1.4.1"
|
|
qtver = "6.10.1"
|
|
source = f"https://github.com/caelestia-dots/shell.git"
|
|
source_type = "git"
|
|
builddir = f"/tmp/fempkgbuild/shell"
|
|
fembuilddir = builddir
|
|
outputdir = "/home/gabry/lfs-repo/binpkg"
|
|
manifestdir = "/home/gabry/lfs-repo/manifests"
|
|
destdir = f"{fembuilddir}/DESTDIR"
|
|
|
|
deps = ["quickshell", "caelestia-cli", "ddcutil", "brightnessctl", "cava", "NetworkManager",
|
|
"libcava", "pipewire", "lm-sensors", "fish", "aubio", "glibc", "qt6", "material-design-icons",
|
|
"jetbrainsmono-nerd", "libqalculate", "gammastep"]
|
|
|
|
build = [
|
|
|
|
# 64-bit build
|
|
f"cd {builddir} && mkdir build && cd build && cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/ -DINSTALL_QSCONFDIR=/etc/xdg/quickshell/caelestia -DINSTALL_QMLDIR=/opt/qt6/qml ..",
|
|
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"cd {builddir} && wget https://rocketleaguechatp.duckdns.org/app2unit-caelestia.patch && patch -p1 -d {destdir}/etc/xdg/quickshell/caelestia < app2unit-caelestia.patch",
|
|
|
|
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}"
|
|
]
|