shfmt
This commit is contained in:
parent
39046fe1f2
commit
4f45d2d875
@ -5,7 +5,7 @@ desc='Discord (popular voice + video app) using the system provided electron for
|
||||
homepage='https://discord.com/'
|
||||
maintainer="Евгений Храмов <xpamych@yandex.ru>"
|
||||
architectures=('amd64')
|
||||
license=('custom')provides=('discord')
|
||||
license=('custom') provides=('discord')
|
||||
conflicts=('discord')
|
||||
|
||||
deps=('gconf-service' 'gconf2-common' 'libc++1' 'libxtst6' 'libxss1' 'libstdc++6' 'libnss3' 'libnspr4' 'libnotify4' 'libgconf-2-4' 'libatomic1' 'libasound2' 'libc6' 'libappindicator1')
|
||||
@ -14,7 +14,6 @@ deps_opensuse=('libatomic1' 'glibc' 'alsa' 'gconf2' 'libnotify' 'mozilla-nspr' '
|
||||
deps_arch=('libnotify' 'libxss' 'nspr' 'nss' 'gtk3' 'libpulse' 'libappindicator-gtk3' 'xdg-utils')
|
||||
deps_rosa=('libatomic' 'glibc' 'alsa-lib' 'GConf2' 'libnotify' 'nspr' 'nss' 'libstdc++' 'libX11' 'libXtst' 'libappindicator1' 'libXScrnSaver')
|
||||
|
||||
|
||||
sources=("https://dl.discordapp.net/apps/linux/${version}/discord-${version}.tar.gz")
|
||||
checksums=('SKIP')
|
||||
|
||||
|
@ -10,21 +10,21 @@ provides=('libndi')
|
||||
conflicts=('libndi-git' 'ndi-sdk')
|
||||
|
||||
sources=("https://github.com/obs-ndi/obs-ndi/releases/download/4.11.1/libndi5-dev_${version}-1_amd64.deb"
|
||||
"https://github.com/obs-ndi/obs-ndi/releases/download/4.11.1/libndi5_${version}-1_amd64.deb")
|
||||
"https://github.com/obs-ndi/obs-ndi/releases/download/4.11.1/libndi5_${version}-1_amd64.deb")
|
||||
checksums=('SKIP'
|
||||
'SKIP')
|
||||
'SKIP')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}"
|
||||
mkdir a b
|
||||
bsdtar -xf libndi5_5.5.3-1_amd64.deb -C a data.tar.zst
|
||||
bsdtar -xf libndi5-dev_5.5.3-1_amd64.deb -C b data.tar.zst
|
||||
tar -xf ./a/data.tar.zst -C "${pkgdir}"
|
||||
tar -xf ./b/data.tar.zst -C "${pkgdir}"
|
||||
ln -frs "${pkgdir}/usr/lib/libndi.so.${pkgver}" "${pkgdir}/usr/lib/libndi.so.${version%%.*}"
|
||||
ln -frs "${pkgdir}/usr/lib/libndi.so.${pkgver}" "${pkgdir}/usr/lib/libndi.so"
|
||||
cd "${srcdir}"
|
||||
mkdir a b
|
||||
bsdtar -xf libndi5_5.5.3-1_amd64.deb -C a data.tar.zst
|
||||
bsdtar -xf libndi5-dev_5.5.3-1_amd64.deb -C b data.tar.zst
|
||||
tar -xf ./a/data.tar.zst -C "${pkgdir}"
|
||||
tar -xf ./b/data.tar.zst -C "${pkgdir}"
|
||||
ln -frs "${pkgdir}/usr/lib/libndi.so.${pkgver}" "${pkgdir}/usr/lib/libndi.so.${version%%.*}"
|
||||
ln -frs "${pkgdir}/usr/lib/libndi.so.${pkgver}" "${pkgdir}/usr/lib/libndi.so"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${pkgdir}"
|
||||
}
|
||||
cd "${pkgdir}"
|
||||
}
|
||||
|
@ -13,7 +13,6 @@ build_deps_rosa=('cmake' 'git')
|
||||
sources=("git+https://github.com/nlohmann/json.git#tag=v${version}")
|
||||
checksums=('SKIP')
|
||||
|
||||
|
||||
build() {
|
||||
cd "${srcdir}"
|
||||
mkdir build
|
||||
@ -22,7 +21,6 @@ build() {
|
||||
make -j$(nproc)
|
||||
}
|
||||
|
||||
|
||||
check() {
|
||||
cd "${srcdir}/build"
|
||||
cmake ../json -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=ON
|
||||
@ -30,7 +28,6 @@ check() {
|
||||
ctest --output-on-failure
|
||||
}
|
||||
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/build"
|
||||
make "DESTDIR=${pkgdir}" install
|
||||
|
@ -15,12 +15,12 @@ checksums=('SKIP')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}"
|
||||
bsdtar -xf d87ddf09-14be-4284-89a1-4b4385e1ebbb
|
||||
tar -xf data.tar.gz
|
||||
bsdtar -xf d87ddf09-14be-4284-89a1-4b4385e1ebbb
|
||||
tar -xf data.tar.gz
|
||||
}
|
||||
|
||||
package() {
|
||||
install -d ${pkgdir}/usr/share/obs/obs-plugins/obs-ndi/locale
|
||||
install -Dm755 "${srcdir}/usr/lib/x86_64-linux-gnu/obs-plugins/obs-ndi.so" "${pkgdir}/usr/lib64/obs-plugins/obs-ndi.so"
|
||||
cp -a ${srcdir}/usr/share/obs/obs-plugins/obs-ndi/locale/* "${pkgdir}/usr/share/obs/obs-plugins/obs-ndi/locale/"
|
||||
install -d ${pkgdir}/usr/share/obs/obs-plugins/obs-ndi/locale
|
||||
install -Dm755 "${srcdir}/usr/lib/x86_64-linux-gnu/obs-plugins/obs-ndi.so" "${pkgdir}/usr/lib64/obs-plugins/obs-ndi.so"
|
||||
cp -a ${srcdir}/usr/share/obs/obs-plugins/obs-ndi/locale/* "${pkgdir}/usr/share/obs/obs-plugins/obs-ndi/locale/"
|
||||
}
|
||||
|
@ -11,23 +11,22 @@ conflicts=('obs-ndi-git' 'obs-ndi-bin')
|
||||
deps=('avahi' 'libndi' 'obs-studio' 'sndio')
|
||||
build_deps=('cmake' 'obs-studio-libs(x86-32)')
|
||||
|
||||
|
||||
sources=("https://github.com/Palakis/obs-ndi/archive/${version}.tar.gz")
|
||||
checksums=('SKIP')
|
||||
|
||||
build() {
|
||||
cd ${srcdir}/obs-ndi-${version}
|
||||
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr
|
||||
cmake --build build
|
||||
cd ${srcdir}/obs-ndi-${version}
|
||||
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
install -Dm755 build/obs-ndi.so ${pkgdir}/usr/lib/obs-plugins/obs-ndi.so
|
||||
install -Dm755 build/obs-ndi.so ${pkgdir}/usr/lib/obs-plugins/obs-ndi.so
|
||||
|
||||
install -d ${pkgdir}/usr/share/obs/obs-plugins/obs-ndi/locale
|
||||
cp -a data/locale/* ${pkgdir}/usr/share/obs/obs-plugins/obs-ndi/locale
|
||||
install -d ${pkgdir}/usr/share/obs/obs-plugins/obs-ndi/locale
|
||||
cp -a data/locale/* ${pkgdir}/usr/share/obs/obs-plugins/obs-ndi/locale
|
||||
|
||||
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
||||
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
||||
}
|
||||
|
@ -9,71 +9,71 @@ license=('GPL-2.0 license')
|
||||
provides=('obs-studio')
|
||||
conflicts=('obs-studio')
|
||||
deps=()
|
||||
build_deps_rosa=('lib64alsa-oss-devel.x86_64' \
|
||||
'lib64boost_asio-devel' \
|
||||
'cmake' \
|
||||
'lib64ffmpeg-devel' \
|
||||
'fontconfig-devel' \
|
||||
'freetype-devel' \
|
||||
'gcc' \
|
||||
'gcc-c++' \
|
||||
'gcc-objc' \
|
||||
'git' \
|
||||
'glib2-devel' \
|
||||
'jansson-devel' \
|
||||
'nlohmann-json' \
|
||||
'lib64avcodec58' \
|
||||
'lib64avdevice58' \
|
||||
'lib64rist-devel' \
|
||||
'lib64curl-devel' \
|
||||
'lib64drm-devel' \
|
||||
'lib64glvnd-devel' \
|
||||
'lib64uuid-devel' \
|
||||
'lib64va-devel' \
|
||||
'lib64v4l-devel' \
|
||||
'lib64x11-devel' \
|
||||
'lib64xcomposite1' \
|
||||
'lib64xdamage1' \
|
||||
'lib64xinerama-devel' \
|
||||
'lib64xkbcommon-devel' \
|
||||
'luajit-devel' \
|
||||
'make' \
|
||||
'mbedtls-devel' \
|
||||
'pciutils-devel' \
|
||||
'pipewire-devel' \
|
||||
'lib64pulseaudio-devel' \
|
||||
'python3-devel' \
|
||||
'qt5-devel' \
|
||||
'lib64qt5svg-devel' \
|
||||
'openssl-devel' \
|
||||
'speexdsp-devel' \
|
||||
'swig' \
|
||||
'lib64systemd-devel' \
|
||||
'vlc-devel' \
|
||||
'wayland-devel' \
|
||||
'websocketpp-devel' \
|
||||
'x264-devel')
|
||||
build_deps_redos=('alsa-plugins-oss' \
|
||||
'cmake'
|
||||
build_deps_rosa=('lib64alsa-oss-devel.x86_64'
|
||||
'lib64boost_asio-devel'
|
||||
'cmake'
|
||||
'lib64ffmpeg-devel'
|
||||
'fontconfig-devel'
|
||||
'freetype-devel'
|
||||
'gcc'
|
||||
'gcc-c++'
|
||||
'gcc-objc'
|
||||
'git'
|
||||
'glib2-devel'
|
||||
'jansson-devel'
|
||||
'nlohmann-json'
|
||||
'lib64avcodec58'
|
||||
'lib64avdevice58'
|
||||
'lib64rist-devel'
|
||||
'lib64curl-devel'
|
||||
'lib64drm-devel'
|
||||
'lib64glvnd-devel'
|
||||
'lib64uuid-devel'
|
||||
'lib64va-devel'
|
||||
'lib64v4l-devel'
|
||||
'lib64x11-devel'
|
||||
'lib64xcomposite1'
|
||||
'lib64xdamage1'
|
||||
'lib64xinerama-devel'
|
||||
'lib64xkbcommon-devel'
|
||||
'luajit-devel'
|
||||
'make'
|
||||
'mbedtls-devel'
|
||||
'pciutils-devel'
|
||||
'pipewire-devel'
|
||||
'lib64pulseaudio-devel'
|
||||
'python3-devel'
|
||||
'qt5-devel'
|
||||
'lib64qt5svg-devel'
|
||||
'openssl-devel'
|
||||
'speexdsp-devel'
|
||||
'swig'
|
||||
'lib64systemd-devel'
|
||||
'vlc-devel'
|
||||
'wayland-devel'
|
||||
'websocketpp-devel'
|
||||
'x264-devel')
|
||||
build_deps_redos=('alsa-plugins-oss'
|
||||
'cmake'
|
||||
)
|
||||
|
||||
sources=("https://cdn-fastly.obsproject.com/downloads/cef_binary_5060_linux64.tar.bz2"
|
||||
"git+https://github.com/obsproject/obs-studio.git"
|
||||
"git+https://github.com/obsproject/obs-studio.git"
|
||||
)
|
||||
checksums=('SKIP'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
)
|
||||
|
||||
build() {
|
||||
cd ${srcdir}/obs-studio
|
||||
git submodule update --init --recursive
|
||||
mkdir build
|
||||
cd ./build
|
||||
cmake -DENABLE_BROWSER=ON -DCEF_ROOT_DIR="../../cef_binary_5060_linux64" -DENABLE_AJA=OFF -DENABLE_NEW_MPEGTS_OUTPUT=OFF ..
|
||||
make -j$(nproc)
|
||||
sudo make install
|
||||
cd ${srcdir}/obs-studio
|
||||
git submodule update --init --recursive
|
||||
mkdir build
|
||||
cd ./build
|
||||
cmake -DENABLE_BROWSER=ON -DCEF_ROOT_DIR="../../cef_binary_5060_linux64" -DENABLE_AJA=OFF -DENABLE_NEW_MPEGTS_OUTPUT=OFF ..
|
||||
make -j$(nproc)
|
||||
sudo make install
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
}
|
||||
cd ${pkgname}-${pkgver}
|
||||
}
|
||||
|
@ -23,10 +23,10 @@ prepare() {
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/obs-vkcapture/build"
|
||||
cd "${srcdir}/obs-vkcapture/build"
|
||||
cmake -DCMAKE_INSTALL_PREFIX=${pkgdir}/usr ..
|
||||
make
|
||||
make install
|
||||
}
|
||||
}
|
||||
package() {
|
||||
}
|
||||
|
@ -10,7 +10,6 @@ provides=('pass-expire-notify')
|
||||
conflicts=('pass-expire-notify')
|
||||
deps=('samba-client')
|
||||
|
||||
|
||||
sources=("git+https://gitflic.ru/project/xpamych/pass-expire-notify.git")
|
||||
checksums=('SKIP')
|
||||
|
||||
|
@ -10,44 +10,44 @@ provides=('portproton')
|
||||
conflicts=('portproton')
|
||||
|
||||
deps_arch=('bash' 'icoutils' 'yad' 'bubblewrap' 'zstd' 'cabextract' 'gzip'
|
||||
'tar' 'openssl' 'desktop-file-utils' 'curl' 'dbus' 'freetype2'
|
||||
'xdg-utils' 'gdk-pixbuf2' 'ttf-font' 'nss' 'xorg-xrandr' 'lsof'
|
||||
'mesa-utils' 'vulkan-driver' 'vulkan-icd-loader' 'lib32-libgl'
|
||||
'lib32-gcc-libs' 'vulkan-tools' 'lib32-libx11' 'lib32-libxss'
|
||||
'lib32-alsa-plugins' 'lib32-libgpg-error' 'lib32-gnutls' 'lib32-freetype2'
|
||||
'lib32-nss' 'lib32-vulkan-driver' 'lib32-vulkan-icd-loader'
|
||||
'lib32-openssl' 'lib32-mesa-utils' 'python-pillow')
|
||||
'tar' 'openssl' 'desktop-file-utils' 'curl' 'dbus' 'freetype2'
|
||||
'xdg-utils' 'gdk-pixbuf2' 'ttf-font' 'nss' 'xorg-xrandr' 'lsof'
|
||||
'mesa-utils' 'vulkan-driver' 'vulkan-icd-loader' 'lib32-libgl'
|
||||
'lib32-gcc-libs' 'vulkan-tools' 'lib32-libx11' 'lib32-libxss'
|
||||
'lib32-alsa-plugins' 'lib32-libgpg-error' 'lib32-gnutls' 'lib32-freetype2'
|
||||
'lib32-nss' 'lib32-vulkan-driver' 'lib32-vulkan-icd-loader'
|
||||
'lib32-openssl' 'lib32-mesa-utils' 'python-pillow')
|
||||
deps_debian=('apt (>= 1.6)' 'apt-transport-https' 'ca-certificates' 'coreutils (>= 8.23-1)'
|
||||
'curl' 'file' 'libc6 (>= 2.15)' 'libnss3 (>= 2:3.26)' 'policykit-1'
|
||||
'xz-utils' 'bubblewrap' 'icoutils' 'tar' 'vulkan-tools' 'libvulkan1'
|
||||
'zstd' 'cabextract' 'xdg-utils' 'openssl' 'bc' 'libgl1' 'wmctrl' 'pciutils'
|
||||
'desktop-file-utils' 'fontconfig' 'imagemagick' 'yad')
|
||||
'curl' 'file' 'libc6 (>= 2.15)' 'libnss3 (>= 2:3.26)' 'policykit-1'
|
||||
'xz-utils' 'bubblewrap' 'icoutils' 'tar' 'vulkan-tools' 'libvulkan1'
|
||||
'zstd' 'cabextract' 'xdg-utils' 'openssl' 'bc' 'libgl1' 'wmctrl' 'pciutils'
|
||||
'desktop-file-utils' 'fontconfig' 'imagemagick' 'yad')
|
||||
deps_fedora=('curl' 'icoutils' 'libcurl' 'bubblewrap' 'zstd' 'cabextract' 'tar' 'goverlay' 'openssl'
|
||||
'vulkan-loader(x86-32)' 'vulkan-loader' 'mesa-vulkan-drivers' 'mesa-vulkan-drivers(x86-32)'
|
||||
'mesa-libGL' 'mesa-dri-drivers' 'mesa-dri-drivers(x86-32)' 'imagemagick')
|
||||
'vulkan-loader(x86-32)' 'vulkan-loader' 'mesa-vulkan-drivers' 'mesa-vulkan-drivers(x86-32)'
|
||||
'mesa-libGL' 'mesa-dri-drivers' 'mesa-dri-drivers(x86-32)' 'imagemagick')
|
||||
deps_redos=('bash' 'icoutils' 'yad' 'bubblewrap' 'zstd' 'cabextract' 'gzip'
|
||||
'tar' 'openssl' 'desktop-file-utils' 'curl' 'dbus-broker' 'freetype'
|
||||
'xdg-utils' 'gdk-pixbuf2' 'gnu-free-mono-fonts' 'gnu-free-sans-fonts'
|
||||
'gnu-free-serif-fonts' 'nss-tools' 'libXrandr' 'lsof' 'mesa-demos'
|
||||
'mesa-vulkan-drivers' 'mesa-vulkan-drivers(x86-32)' 'vulkan-loader'
|
||||
'vulkan-loader(x86-32)' 'vulkan-tools' 'libglvnd(x86-32)' 'libgcc(x86-32)'
|
||||
'ImageMagick' 'libX11(x86-32)' 'libXScrnSaver(x86-32)' 'alsa-lib(x86-32)'
|
||||
'libgpg-error(x86-32)' 'freetype(x86-32)' 'nss(x86-32)' 'openssl(x86-32)'
|
||||
'python3-pillow'
|
||||
'tar' 'openssl' 'desktop-file-utils' 'curl' 'dbus-broker' 'freetype'
|
||||
'xdg-utils' 'gdk-pixbuf2' 'gnu-free-mono-fonts' 'gnu-free-sans-fonts'
|
||||
'gnu-free-serif-fonts' 'nss-tools' 'libXrandr' 'lsof' 'mesa-demos'
|
||||
'mesa-vulkan-drivers' 'mesa-vulkan-drivers(x86-32)' 'vulkan-loader'
|
||||
'vulkan-loader(x86-32)' 'vulkan-tools' 'libglvnd(x86-32)' 'libgcc(x86-32)'
|
||||
'ImageMagick' 'libX11(x86-32)' 'libXScrnSaver(x86-32)' 'alsa-lib(x86-32)'
|
||||
'libgpg-error(x86-32)' 'freetype(x86-32)' 'nss(x86-32)' 'openssl(x86-32)'
|
||||
'python3-pillow'
|
||||
)
|
||||
|
||||
opt_deps_arch=('gamemode: Support for Feral GameMode'
|
||||
'lib32-gamemode: 32-bit support for Feral GameMode'
|
||||
'gamescope: Support for Gamescope'
|
||||
'icoextract: For proper icon creation in GNOME')
|
||||
'lib32-gamemode: 32-bit support for Feral GameMode'
|
||||
'gamescope: Support for Gamescope'
|
||||
'icoextract: For proper icon creation in GNOME')
|
||||
opt_deps_fedora=('gamemode: Support for Feral GameMode'
|
||||
'lib32-gamemode: 32-bit support for Feral GameMode'
|
||||
'gamescope: Support for Gamescope'
|
||||
'icoextract: For proper icon creation in GNOME')
|
||||
'lib32-gamemode: 32-bit support for Feral GameMode'
|
||||
'gamescope: Support for Gamescope'
|
||||
'icoextract: For proper icon creation in GNOME')
|
||||
opt_deps_debian=('gamemode: Support for Feral GameMode'
|
||||
'lib32-gamemode: 32-bit support for Feral GameMode'
|
||||
'gamescope: Support for Gamescope'
|
||||
'icoextract: For proper icon creation in GNOME')
|
||||
'lib32-gamemode: 32-bit support for Feral GameMode'
|
||||
'gamescope: Support for Gamescope'
|
||||
'icoextract: For proper icon creation in GNOME')
|
||||
|
||||
sources=(
|
||||
"https://github.com/Castro-Fidel/PortProton_ALT/archive/v${version}.tar.gz"
|
||||
@ -58,14 +58,14 @@ checksums=(
|
||||
)
|
||||
|
||||
scripts=(
|
||||
['preinstall']='preinstall.sh'
|
||||
['preinstall']='preinstall.sh'
|
||||
)
|
||||
|
||||
package() {
|
||||
cd PortProton_ALT-${version}
|
||||
cd PortProton_ALT-${version}
|
||||
install -Dm755 "portproton" "${pkgdir}/usr/bin/${name}"
|
||||
install -Dm644 "ru.linux_gaming.PortProton.desktop" "${pkgdir}/usr/share/applications/${name}.desktop"
|
||||
install -Dm644 "ru.linux_gaming.PortProton.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/ru.linux_gaming.PortProton.svg"
|
||||
install -Dm644 "ru.linux_gaming.PortProton.metainfo.xml" -t "${pkgdir}/usr/share/metainfo/"
|
||||
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${name}/LICENSE"
|
||||
install -Dm644 "ru.linux_gaming.PortProton.desktop" "${pkgdir}/usr/share/applications/${name}.desktop"
|
||||
install -Dm644 "ru.linux_gaming.PortProton.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/ru.linux_gaming.PortProton.svg"
|
||||
install -Dm644 "ru.linux_gaming.PortProton.metainfo.xml" -t "${pkgdir}/usr/share/metainfo/"
|
||||
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${name}/LICENSE"
|
||||
}
|
||||
|
@ -7,4 +7,4 @@ elif grep -q ID=fedora "/etc/os-release"; then
|
||||
sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
||||
sudo dnf update
|
||||
sudo dnf upgrade --refresh
|
||||
fi
|
||||
fi
|
||||
|
@ -18,16 +18,16 @@ checksums=('SKIP')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}"
|
||||
printf '%s\n' 'Icon=org.upscayl.Upscayl' >> ./resources/org.upscayl.Upscayl.desktop
|
||||
printf '%s\n' 'Icon=org.upscayl.Upscayl' >>./resources/org.upscayl.Upscayl.desktop
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}"
|
||||
install -Dm755 upscayl ${pkgdir}/usr/bin/upscayl
|
||||
cd "${srcdir}"
|
||||
install -Dm755 upscayl ${pkgdir}/usr/bin/upscayl
|
||||
|
||||
cd ${srcdir}/resources/
|
||||
install -Dm755 ./org.upscayl.Upscayl.desktop "${pkgdir}/usr/share/applications/org.upscayl.Upscayl.desktop"
|
||||
install -Dm755 ./512x512.png "${pkgdir}/usr/share/pixmaps/org.upscayl.Upscayl.png"
|
||||
install -dm755 "${pkgdir}/opt/upscayl/"
|
||||
mv ./* "${pkgdir}/opt/upscayl/"
|
||||
cd ${srcdir}/resources/
|
||||
install -Dm755 ./org.upscayl.Upscayl.desktop "${pkgdir}/usr/share/applications/org.upscayl.Upscayl.desktop"
|
||||
install -Dm755 ./512x512.png "${pkgdir}/usr/share/pixmaps/org.upscayl.Upscayl.png"
|
||||
install -dm755 "${pkgdir}/opt/upscayl/"
|
||||
mv ./* "${pkgdir}/opt/upscayl/"
|
||||
}
|
||||
|
@ -13,34 +13,34 @@ deps=('electron')
|
||||
deps_redos=('electron')
|
||||
build_deps=('pnpm' 'git')
|
||||
optdepends=(
|
||||
'libnotify: Notifications'
|
||||
'xdg-utils: Open links, files, etc'
|
||||
'xdg-desktop-portal: Screensharing with Wayland'
|
||||
'arrpc: Rich presence support'
|
||||
'libnotify: Notifications'
|
||||
'xdg-utils: Open links, files, etc'
|
||||
'xdg-desktop-portal: Screensharing with Wayland'
|
||||
'arrpc: Rich presence support'
|
||||
)
|
||||
|
||||
sources=("https://github.com/Vencord/Vesktop/archive/refs/tags/v${version}.tar.gz")
|
||||
checksums=('SKIP')
|
||||
|
||||
prepare() {
|
||||
sed -i '/linux/s/^/ "electronDist": "\/usr\/lib\/electron",\n/' "$srcdir/$_pkgname-$pkgver/package.json"
|
||||
sed -i '/linux/s/^/ "electronDist": "\/usr\/lib\/electron",\n/' "$srcdir/$_pkgname-$pkgver/package.json"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${srcdir}
|
||||
pnpm install
|
||||
pnpm package:dir
|
||||
}
|
||||
cd ${srcdir}
|
||||
pnpm install
|
||||
pnpm package:dir
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}"
|
||||
install -d "${pkgdir}/usr/lib/${pkgname}"
|
||||
install -d "${pkgdir}/usr/bin"
|
||||
cd "${srcdir}"
|
||||
install -d "${pkgdir}/usr/lib/${pkgname}"
|
||||
install -d "${pkgdir}/usr/bin"
|
||||
|
||||
cp "$_pkgname-$pkgver/dist/linux-unpacked/resources/app.asar" "${pkgdir}/usr/lib/${pkgname}/"
|
||||
install -Dm755 "./vesktop.sh" "$pkgdir/usr/bin/vesktop"
|
||||
cp "$_pkgname-$pkgver/dist/linux-unpacked/resources/app.asar" "${pkgdir}/usr/lib/${pkgname}/"
|
||||
install -Dm755 "./vesktop.sh" "$pkgdir/usr/bin/vesktop"
|
||||
|
||||
install -Dm 644 "vesktop.desktop" "$pkgdir/usr/share/applications/vesktop.desktop"
|
||||
install -Dm 644 "$_pkgname-$pkgver/static/icon.png" "$pkgdir/usr/share/pixmaps/${pkgname}.png"
|
||||
install -Dm 644 "$_pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
install -Dm 644 "vesktop.desktop" "$pkgdir/usr/share/applications/vesktop.desktop"
|
||||
install -Dm 644 "$_pkgname-$pkgver/static/icon.png" "$pkgdir/usr/share/pixmaps/${pkgname}.png"
|
||||
install -Dm 644 "$_pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
|
||||
|
||||
# Allow users to override command-line options
|
||||
if [[ -f $XDG_CONFIG_HOME/vesktop-flags.conf ]]; then
|
||||
VESKTOP_USER_FLAGS="$(grep -v '^#' $XDG_CONFIG_HOME/vesktop-flags.conf)"
|
||||
VESKTOP_USER_FLAGS="$(grep -v '^#' $XDG_CONFIG_HOME/vesktop-flags.conf)"
|
||||
fi
|
||||
|
||||
# Launch
|
||||
|
Loading…
Reference in New Issue
Block a user