From 98211064625d33bbb2770e42e14a1deb1b09558b Mon Sep 17 00:00:00 2001 From: italoghost Date: Sat, 21 Feb 2026 21:41:25 -0300 Subject: [PATCH] Creating the package --- .SRCINFO | 39 +++++++++++++++++++++++++++++++++++++++ PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000000000..c223389910047 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,39 @@ +pkgbase = leshade-bin + pkgdesc = An unofficial Reshade Installer for Linux. + pkgver = 2.2 + pkgrel = 1 + url = https://github.com/Ishidawg/LeShade + arch = x86_64 + license = MIT + makedepends = chrpath + depends = libglvnd + depends = libxkbcommon + depends = libxcb + depends = xcb-util-image + depends = xcb-util-keysyms + depends = xcb-util-renderutil + depends = xcb-util-wm + depends = xcb-util-cursor + depends = openssl + depends = libpng + depends = libjpeg-turbo + depends = fontconfig + depends = fribidi + depends = dbus + depends = systemd-libs + depends = glib2 + depends = pcre2 + depends = gtk3 + depends = at-spi2-core + depends = cairo + depends = pango + provides = leshade + noextract = LeShade-x86_64.AppImage + options = !strip + options = !emptydirs + source = https://github.com/Ishidawg/LeShade/releases/download/2.2/LeShade-x86_64.AppImage + source = LICENSE::https://raw.githubusercontent.com/Ishidawg/LeShade/main/LICENSE + sha256sums = 634a1769bea1c13e87165a6e6e6cbe392716d57aa7eeb4eb63cfd89cc10a16af + sha256sums = a7b8f406ed4e1a5311d51a1967f91e569a6c0ce815c2bf74956d926613dd61a3 + +pkgname = leshade-bin diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000000000..6416b4c0dfc10 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer: italoghost +pkgname=leshade-bin +_pkgname=leshade +pkgver=2.2 +pkgrel=1 +pkgdesc="An unofficial Reshade Installer for Linux." +arch=('x86_64') +url="https://github.com/Ishidawg/LeShade" +license=("MIT") +provides=("$_pkgname") +depends=('libglvnd' 'libxkbcommon' 'libxcb' 'xcb-util-image' 'xcb-util-keysyms' + 'xcb-util-renderutil' 'xcb-util-wm' 'xcb-util-cursor' 'openssl' + 'libpng' 'libjpeg-turbo' 'fontconfig' 'fribidi' 'dbus' 'systemd-libs' + 'glib2' 'pcre2' 'gtk3' 'at-spi2-core' 'cairo' 'pango') +makedepends=('chrpath') +options=('!strip' '!emptydirs') +_appimage="LeShade-x86_64.AppImage" +noextract=("${_appimage}") +source=("https://github.com/Ishidawg/LeShade/releases/download/${pkgver}/${_appimage}" + "LICENSE::https://raw.githubusercontent.com/Ishidawg/LeShade/main/LICENSE") +sha256sums=('634a1769bea1c13e87165a6e6e6cbe392716d57aa7eeb4eb63cfd89cc10a16af' + 'a7b8f406ed4e1a5311d51a1967f91e569a6c0ce815c2bf74956d926613dd61a3') + +prepare() { + # Extract AppImage + cd "${srcdir}" + chmod +x "${_appimage}" + ./"${_appimage}" --appimage-extract + + cd "${srcdir}/squashfs-root/" + sed -i -e "s/Exec=LeShade/Exec=leshade/" "${_pkgname}.desktop" + + # Remove insecure RUNPATH + find . -type f $$ -name '*.so*' -o -name 'LeShade' $$ -exec chrpath -d {} \; 2>/dev/null || true +} + +package() { + # Create directory structure + install -dm755 "${pkgdir}/opt/${_pkgname}" + install -dm755 "${pkgdir}/usr/bin" + + # Move extracted content to /opt + cp -ar "${srcdir}/squashfs-root/." "${pkgdir}/opt/${_pkgname}/" + + # Install the .desktop file and the icon + install -Dm644 "${srcdir}/squashfs-root/${_pkgname}.png" "$pkgdir/usr/share/pixmaps/${_pkgname}.png" + install -Dm644 "${srcdir}/squashfs-root/${_pkgname}.desktop" "$pkgdir/usr/share/applications/${_pkgname}.desktop" + + # Create a symbolic link for the AppRun + ln -s "/opt/${_pkgname}/AppRun" "${pkgdir}/usr/bin/${_pkgname}" + + # License + install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +}