diff --git a/hlna-git/postinstall.sh b/hlna-git/postinstall.sh new file mode 100755 index 0000000..260db4b --- /dev/null +++ b/hlna-git/postinstall.sh @@ -0,0 +1,27 @@ +line1_to_add='alias hlna="hlna.py"' +line2_to_add='alias hlna-bot="hlna-bot.py"' +file_paths=("/home/$SUDO_USER/.zshrc" "/home/$SUDO_USER/.bashrc" "/home/$SUDO_USER/.config/fish/config.fish") + +for file_path in "${file_paths[@]}"; do + if [ -f "$file_path" ]; then + # Check if the lines are already in the file + grep -qF "$line1_to_add" "$file_path" + if [ $? -ne 0 ]; then + echo "$line1_to_add" >>"$file_path" + echo "Alias hlna добавлен в $file_path" + else + echo "Alias hlna уже есть в файле $file_path" + fi + + grep -qF "$line2_to_add" "$file_path" + if [ $? -ne 0 ]; then + echo "$line2_to_add" >>"$file_path" + echo "Alias hlna-bot добавлен в $file_path" + else + echo "Alias hlna-bot уже есть в файле $file_path" + fi + + else + echo "$file_path не существует" + fi +done diff --git a/hlna-git/postremove.sh b/hlna-git/postremove.sh new file mode 100755 index 0000000..f4bfb90 --- /dev/null +++ b/hlna-git/postremove.sh @@ -0,0 +1,26 @@ +line1_to_remove='alias hlna="hlna.py"' +line2_to_remove='alias hlna-bot="hlna-bot.py"' +file_paths=("/home/$SUDO_USER/.zshrc" "/home/$SUDO_USER/.bashrc" "/home/$SUDO_USER/.config/fish/config.fish") + +for file_path in "${file_paths[@]}"; do + if [ -f "$file_path" ]; then + # Check if the line is in the file + grep -qF "$line1_to_remove" "$file_path" + if [ $? -eq 0 ]; then + sed -i "/$line1_to_remove/d" "$file_path" + echo "Alias hlna удалён из $file_path" + else + echo "Alias hlna нет в $file_path" + fi + + grep -qF "$line2_to_remove" "$file_path" + if [ $? -eq 0 ]; then + sed -i "/$line2_to_remove/d" "$file_path" + echo "Alias hlna-bot удалён из $file_path" + else + echo "Alias hlna-bot нет в $file_path" + fi + else + echo "$file_path не существует" + fi +done diff --git a/nlohmann-json/lure.sh b/nlohmann-json/lure.sh new file mode 100755 index 0000000..0893c15 --- /dev/null +++ b/nlohmann-json/lure.sh @@ -0,0 +1,38 @@ +name='nlohmann-json' +version='3.11.2' +release='1' +desc='Header-only JSON library for Modern C++' +homepage='https://github.com/nlohmann/json' +maintainer="Евгений Храмов " +architectures=('amd64') +licenses='MIT' +provides=('nlohmann-json') +conflicts=('nlohmann-json') + +build_deps_rosa=('cmake' 'git') +https://github.com/nlohmann/json/releases/download/v3.11.2/json.tar.xz +sources=("https://github.com/nlohmann/json/archive/refs/tags/v{$version}.tar.gz") +checksums=('SKIP') + + +build() { + cd "${srcdir}/" + mkdir build + cd ./build + cmake ../json -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF + make -j$(nproc) +} + + +check() { + cd "${srcdir}/build" + cmake ../json -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=ON + make -j$(nproc) + ctest --output-on-failure +} + + +package() { + cd "${srcdir}/build" + make "DESTDIR=${pkgdir}" install +} diff --git a/obs-ndi/lure.sh b/obs-ndi/lure.sh new file mode 100755 index 0000000..6eb4694 --- /dev/null +++ b/obs-ndi/lure.sh @@ -0,0 +1,33 @@ +name='obs-ndi' +version='4.11.1' +release='1' +desc='Network A/V in OBS Studio with NewTeks NDI technology.' +homepage='https://github.com/obs-ndi/obs-ndi' +maintainer="Евгений Храмов " +architectures=('amd64') +license=('GPL-2.0 license') +provides=('obs-ndi') +conflicts=('obs-ndi-git' 'obs-ndi-bin') +deps=('avahi' 'libndi' 'obs-studio' 'sndio') +build_deps=('cmake' 'lib64obs-devel') + + +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 +} + +package() { + cd ${pkgname}-${pkgver} + + 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 -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} diff --git a/obs-studio/lure.sh b/obs-studio/lure.sh new file mode 100755 index 0000000..9097496 --- /dev/null +++ b/obs-studio/lure.sh @@ -0,0 +1,77 @@ +name='obs-studio' +version='29.0.2' +release='1' +desc='OBS Studio is software designed for capturing, compositing, encoding, recording, and streaming video content, efficiently.' +homepage='https://github.com/obsproject/obs-studio' +maintainer="Евгений Храмов " +architectures=('amd64') +license=('GPL-2.0 license') +provides=('obs-studio') +conflicts=('obs-studio') +deps=() +build_deps=('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') + + +sources=("https://cdn-fastly.obsproject.com/downloads/cef_binary_5060_linux64.tar.bz2" +"git+https://github.com/obsproject/obs-studio.git" +) +checksums=('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 +} + +package() { + cd ${pkgname}-${pkgver} + } diff --git a/obs-vkcapture/lure.sh b/obs-vkcapture/lure.sh new file mode 100755 index 0000000..df2b2e0 --- /dev/null +++ b/obs-vkcapture/lure.sh @@ -0,0 +1,32 @@ +name='obs-vkcapture' +version='1.3.2' +release='1' +desc='OBS plugin for Vulkan/OpenGL game capture on Linux.' +homepage='https://github.com/nowrep/obs-vkcapture' +maintainer="Евгений Храмов " +architectures=('amd64') +license=('GPL-2.0 license') +provides=('obs-vkcapture' 'lib32-obs-vkcapture') +conflicts=('obs-vkcapture' 'lib32-obs-vkcapture') +deps=('lib64vulkan1' 'lib64GL1' 'obs-studio>=27') +deps_arch=('vulkan-icd-loader' 'libgl' 'obs-studio>=27') +build_deps=('git' 'gcc' 'cmake' 'vulkan-headers' 'libgcc1' 'lib64vulkan-devel' 'lib64GL-devel' 'lib64obs-devel') +deps_arch=('vulkan-icd-loader' 'libgl' 'obs-studio>=27') +build_deps_arch=('git' 'gcc' 'cmake' 'vulkan-headers' 'lib32-gcc-libs' 'lib32-vulkan-icd-loader' 'lib32-libgl') + +sources=("git+https://github.com/nowrep/obs-vkcapture.git#tag=v{$version}") +checksums=('SKIP') + +prepare() { + cd "${srcdir}/obs-vkcapture" + mkdir build +} + +build() { + cd "${srcdir}/obs-vkcapture/build" + cmake -DCMAKE_INSTALL_PREFIX=${pkgdir}/usr .. + make + make install + } +package() { +}