├── .editorconfig ├── .github ├── dependabot.yml └── workflows │ ├── Executable-flag-setting.yml │ ├── autoupdate-curl.yml │ ├── autoupdate.yml │ ├── build-all.yml │ ├── build-toolchain-lhmouse.yml │ ├── cache-clang.yml │ ├── cache-gcc.yml │ ├── clean.yml │ ├── curl.yml │ ├── delete-old-releases.yml │ ├── ffmpeg.yml │ ├── libplacebo.yml │ ├── mpv.yml │ ├── mujs.yml │ ├── package.yml │ ├── prune_tags.yml │ ├── random_hash.yml │ ├── reset-commit.yml │ ├── shaderc.yml │ ├── test.yml │ └── v2-test.yml ├── .gitignore ├── HASH ├── README.md ├── amf-dev └── PKGBUILD ├── angle-dev └── PKGBUILD ├── aom-dev └── PKGBUILD ├── autoupdate.py ├── avisynth-dev └── PKGBUILD ├── brotli-dev └── PKGBUILD ├── bzip2-dev └── PKGBUILD ├── curl └── PKGBUILD ├── dav1d-dev └── PKGBUILD ├── davs2-dev └── PKGBUILD ├── expat-dev └── PKGBUILD ├── ffmpeg └── PKGBUILD ├── ffnvcodec-dev └── PKGBUILD ├── freetype2-dev ├── PKGBUILD └── PKGBUILD-new ├── fribidi-dev ├── PKGBUILD └── PKGBUILD-new ├── gmp-dev └── PKGBUILD ├── harfbuzz-dev ├── PKGBUILD └── PKGBUILD-new ├── highway-dev └── PKGBUILD ├── install-dev.sh ├── install-latest.sh ├── lame-dev └── PKGBUILD ├── lcms2-dev └── PKGBUILD ├── libarchive-dev └── PKGBUILD ├── libaribcaption-dev └── PKGBUILD ├── libass-dev └── PKGBUILD ├── libbluray-dev └── PKGBUILD ├── libbs2b-dev ├── PKGBUILD └── libbs2b-0001-build-library-only.patch ├── libcaca-dev ├── 0001-win32-is-not-msvc-it-could-be.mingw.patch ├── 0002-correct-installation-order.mingw.patch ├── 0006-no-undefined.all.patch ├── 0010-missing-include.patch └── PKGBUILD ├── libdovi-dev └── PKGBUILD ├── libdvdcss-dev └── PKGBUILD ├── libdvdnav-dev └── PKGBUILD ├── libdvdread-dev └── PKGBUILD ├── libiconv-dev ├── PKGBUILD └── iconv.pc ├── libjpeg-dev └── PKGBUILD ├── libjxl-dev ├── PKGBUILD └── PKGBUILD-new ├── libmodplug-dev └── PKGBUILD ├── libmysofa-dev └── PKGBUILD ├── libogg-dev └── PKGBUILD ├── libopenmpt-dev └── PKGBUILD ├── libplacebo-dev └── PKGBUILD ├── libpng-dev └── PKGBUILD ├── libsamplerate-dev └── PKGBUILD ├── libsdl2-dev ├── PKGBUILD └── libsdl2-0001-mingw-header.patch ├── libsixel ├── PKGBUILD └── PKGBUILD-new ├── libsoxr-dev ├── 0001-libsoxr-fix-pc-file-installation.patch └── PKGBUILD ├── libspeex-dev └── PKGBUILD ├── libsrt-dev └── PKGBUILD ├── libssh-dev └── PKGBUILD ├── libudfread-dev └── PKGBUILD ├── libunibreak-dev └── PKGBUILD ├── libva-dev └── PKGBUILD ├── libvorbis_aotuv-dev └── PKGBUILD ├── libvpl-dev └── PKGBUILD ├── libvpx-dev └── PKGBUILD ├── libwebp-dev └── PKGBUILD ├── libxml2-dev └── PKGBUILD ├── libxvid-dev ├── 0001-remove-dll-option-clang.patch └── PKGBUILD ├── libzimg-dev ├── 0001-libm_wrapper-define.patch └── PKGBUILD ├── libzvbi-dev └── PKGBUILD ├── luajit ├── PKGBUILD └── PKGBUILD-git ├── luajit2 ├── PKGBUILD └── luajit.pc ├── lzo-dev └── PKGBUILD ├── mbedtls-dev ├── PKGBUILD └── mbedtls.pc ├── mcfgthread └── PKGBUILD ├── mpv-config └── PKGBUILD ├── mpv └── PKGBUILD ├── msys2-config ├── makepkg-clang ├── makepkg-gcc ├── makepkg_clang.conf ├── makepkg_gcc.conf └── msys2.cmd ├── mujs └── PKGBUILD ├── openal-soft-dev └── PKGBUILD ├── openssl-dev └── PKGBUILD ├── opus-dev └── PKGBUILD ├── python-embed └── PKGBUILD ├── rav1e-dev └── PKGBUILD ├── release-dev.sh ├── release-latest.sh ├── release-package.sh ├── rubberband └── PKGBUILD ├── shaderc-dev └── PKGBUILD ├── spirv-cross-dev ├── PKGBUILD └── PKGBUILD-new ├── svtav1-dev └── PKGBUILD ├── uavs3d-dev └── PKGBUILD ├── vapoursynth ├── PKGBUILD ├── VSScript.def ├── VapourSynth.def ├── vapoursynth-script.pc └── vapoursynth.pc ├── vulkan-dev └── PKGBUILD ├── vvdec-dev └── PKGBUILD ├── xxhash-dev └── PKGBUILD ├── xz-dev └── PKGBUILD ├── zlib-dev └── PKGBUILD └── zstd-dev └── PKGBUILD /.editorconfig: -------------------------------------------------------------------------------- 1 | # To use this config on you editor, follow the instructions at: 2 | # http://editorconfig.org 3 | 4 | root = true 5 | 6 | [*] 7 | charset = utf-8 8 | insert_final_newline = true 9 | indent_style = space 10 | indent_size = 2 11 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # Set update schedule for GitHub Actions 2 | 3 | version: 2 4 | updates: 5 | 6 | - package-ecosystem: "github-actions" 7 | directory: "/" 8 | schedule: 9 | # Check for updates to GitHub Actions every weekday 10 | interval: "daily" 11 | -------------------------------------------------------------------------------- /.github/workflows/Executable-flag-setting.yml: -------------------------------------------------------------------------------- 1 | name: Executable flag setting 2 | 3 | on: 4 | workflow_dispatch: 5 | 6 | jobs: 7 | build: 8 | runs-on: ubuntu-latest 9 | steps: 10 | - name: Checkout 11 | uses: actions/checkout@main 12 | with: 13 | fetch-depth: 0 14 | - name: Install git 15 | run: | 16 | sudo apt-get update 17 | sudo apt-get -y install git 18 | - name: Set env 19 | run: | 20 | git config user.name "github-actions[bot]" 21 | git config user.email "41898282+github-actions[bot]@users.noreply.github.com" 22 | - name: Executable flag setting 23 | run: | 24 | git checkout static 25 | chmod +x *.sh 26 | git add -A 27 | git commit -am "Executable-flag-setting" || echo "nothing updated" 28 | git push 29 | -------------------------------------------------------------------------------- /.github/workflows/autoupdate-curl.yml: -------------------------------------------------------------------------------- 1 | name: autoupdate-curl 2 | 3 | on: 4 | workflow_dispatch: 5 | #schedule: 6 | #- cron: '30 0 * * MON' 7 | 8 | jobs: 9 | upload-curl: 10 | runs-on: windows-2022 11 | steps: 12 | - uses: msys2/setup-msys2@v2 13 | with: 14 | location: D:\ 15 | install: base-devel autoconf-wrapper automake-wrapper libtool git 16 | 17 | - name: Prepare 18 | run: git config --global core.autocrlf input 19 | shell: bash 20 | - uses: actions/checkout@main 21 | with: 22 | token: ${{ secrets.BOT }} 23 | 24 | - name: Install curl 25 | shell: msys2 {0} 26 | run: | 27 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/curl-dev-8_0_1-1-x86_64.pkg.tar.zst 28 | pacman -U *.zst --noconfirm 29 | rm -rf bin 30 | mkdir bin 31 | mv /d/msys64/opt/bin/* bin 32 | 33 | - name: Push 34 | run: | 35 | git config --global user.name 'eko5624' 36 | git config --global user.email 'datong5624@gmail.com' 37 | git add -A 38 | git commit -am "update curl" || echo "nothing updated" 39 | git push 40 | -------------------------------------------------------------------------------- /.github/workflows/autoupdate.yml: -------------------------------------------------------------------------------- 1 | name: autoupdate 2 | 3 | on: 4 | #schedule: 5 | #- cron: '03 0 * * *' 6 | workflow_dispatch: 7 | 8 | jobs: 9 | version_check: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@main 13 | with: 14 | token: ${{ secrets.BOT }} 15 | - name: Check Latest Version 16 | run: | 17 | pip3 install in_place 18 | python autoupdate.py 19 | git config --global user.name 'eko5624' 20 | git config --global user.email 'datong5624@gmail.com' 21 | git commit -am "Automate" || echo "nothing updated" 22 | git push 23 | -------------------------------------------------------------------------------- /.github/workflows/build-toolchain-lhmouse.yml: -------------------------------------------------------------------------------- 1 | name: build-toolchain-lhmouse 2 | 3 | on: 4 | workflow_dispatch: 5 | #schedule: 6 | #- cron: '05 0 * * MON' 7 | 8 | jobs: 9 | build: 10 | runs-on: windows-2022 11 | steps: 12 | - uses: msys2/setup-msys2@v2 13 | with: 14 | cache: false 15 | location: D:\ 16 | install: base-devel autotools p7zip 17 | - name: Prepare 18 | run: git config --global core.autocrlf input 19 | - uses: actions/checkout@main 20 | - uses: actions/cache@main 21 | id: cache 22 | with: 23 | path: D:\ucrt64 24 | key: mcf_20240821_14.2.1_x64-ucrt 25 | 26 | - name: Setup Toolchain 27 | if: steps.cache.outputs.cache-hit != 'true' 28 | shell: msys2 {0} 29 | run: | 30 | curl -OL https://gcc-mcf.lhmouse.com/mingw-w64-gcc-mcf_20240821_14.2.1_x64-ucrt_09b612f2101afc42acbb996f524895e0e95b35dd.7z 31 | 7z x *.7z -o/d 32 | curl -L -o curl-win64-mingw.zip 'https://curl.se/windows/latest.cgi?p=win64-mingw.zip' 33 | 7z e -r curl*.zip -o/d/ucrt64/bin '*.exe' '*.crt' 34 | 35 | - name: Make Toolchain 36 | shell: msys2 {0} 37 | if: steps.cache.outputs.cache-hit != 'true' 38 | run: | 39 | cd mcfgthread; PATH=/usr/bin:/opt/bin:/d/ucrt64/bin makepkg 40 | - name: Release 41 | env: 42 | GH_TOKEN: ${{ github.token }} 43 | shell: bash 44 | if: steps.cache.outputs.cache-hit != 'true' 45 | run: | 46 | ./release-latest.sh mcfgthread mcfgthread 47 | -------------------------------------------------------------------------------- /.github/workflows/cache-clang.yml: -------------------------------------------------------------------------------- 1 | name: Cache clang Toolchain 2 | defaults: 3 | run: 4 | shell: D:\msys64\msys2.cmd {0} 5 | 6 | on: 7 | workflow_dispatch: 8 | inputs: 9 | toolchain: 10 | description: "toolchain" 11 | required: false 12 | default: "mingw64-clang" 13 | type: choice 14 | options: 15 | - mingw64-clang 16 | - llvm-mingw 17 | 18 | #schedule: 19 | #- cron: '05 0 * * MON' 20 | 21 | jobs: 22 | build: 23 | runs-on: windows-2022 24 | steps: 25 | - name: Cache msys2 26 | uses: actions/cache@main 27 | id: msys2 28 | with: 29 | path: D:\msys64 30 | key: msys2 31 | 32 | - name: Cache Toolchain 33 | uses: actions/cache@main 34 | id: clang-ucrt 35 | with: 36 | path: D:\ucrt64 37 | key: clang-ucrt-x86_64 38 | 39 | - name: Install msys2 40 | if: (steps.msys2.outputs.cache-hit != 'true' && inputs.toolchain == 'llvm-mingw') 41 | uses: msys2/setup-msys2@v2 42 | with: 43 | cache: false 44 | location: D:\ 45 | install: base-devel autotools git p7zip 46 | 47 | - name: Install MinGW-w64-clang Toolchain 48 | if: (steps.clang-ucrt.outputs.cache-hit != 'true' && inputs.toolchain == 'mingw64-clang') 49 | uses: msys2/setup-msys2@v2 50 | with: 51 | cache: false 52 | location: D:\ 53 | install: >- 54 | base-devel 55 | autotools 56 | git 57 | yasm 58 | nasm 59 | p7zip 60 | mingw-w64-clang-x86_64-gettext-tools 61 | mingw-w64-clang-x86_64-gettext-runtime 62 | mingw-w64-clang-x86_64-pkgconf 63 | mingw-w64-clang-x86_64-clang 64 | mingw-w64-clang-x86_64-libc++ 65 | mingw-w64-clang-x86_64-gcc-compat 66 | mingw-w64-clang-x86_64-tools-git 67 | mingw-w64-clang-x86_64-meson 68 | mingw-w64-clang-x86_64-cmake 69 | mingw-w64-clang-x86_64-make 70 | 71 | - name: Prepare 72 | run: git config --global core.autocrlf input 73 | shell: bash 74 | 75 | - name: Checkout 76 | uses: actions/checkout@main 77 | 78 | - name: Config msys2 79 | if: steps.msys2.outputs.cache-hit != 'true' 80 | shell: bash 81 | run: | 82 | cp msys2-config/msys2.cmd /d/msys64 83 | install -m644 msys2-config/*.conf /d/msys64/etc/ 84 | install -m755 msys2-config/makepkg-* /d/msys64/usr/bin/ 85 | 86 | - name: Install llvm-mingw Toolchain 87 | if: (steps.clang-ucrt.outputs.cache-hit != 'true' && inputs.toolchain == 'llvm-mingw') 88 | run: | 89 | curl -OL https://github.com/eko5624/toolchain/releases/download/toolchain/target-llvm-mingw-latest-ucrt-x86_64.7z 90 | 7z x target-llvm-mingw*.7z -o/d && mv /d/target /d/ucrt64 91 | 92 | - name: Install curl 93 | if: (steps.clang-ucrt.outputs.cache-hit != 'true' && inputs.toolchain == 'mingw64-clang') 94 | run: | 95 | mv /d/msys64/clang64 /d/ucrt64 96 | curl -L -o curl-win64-mingw.zip 'https://curl.se/windows/latest.cgi?p=win64-mingw.zip' 97 | 7z x curl*.zip 98 | cp curl*/bin/curl-ca-bundle.crt /d/ucrt64/bin 99 | cp curl*/bin/curl.exe /d/ucrt64/bin 100 | 101 | - name: Remove "libwinpthread.dll.a libpthread.dll.a libc++.dll.a" from MinGW-w64-CLANG Toolchain 102 | if: (steps.clang-ucrt.outputs.cache-hit != 'true' && inputs.toolchain == 'mingw64-clang') 103 | run: | 104 | find /d/ucrt64/lib -type f \( -name "*pthread.dll.a" \) -print0 | xargs -0 -I {} rm {} 105 | find /d/ucrt64/lib -type f \( -name "libc++.dll.a" \) -print0 | xargs -0 -I {} rm {} 106 | 107 | -------------------------------------------------------------------------------- /.github/workflows/cache-gcc.yml: -------------------------------------------------------------------------------- 1 | name: Cache GCC Toolchain 2 | defaults: 3 | run: 4 | shell: D:\msys64\msys2.cmd {0} 5 | 6 | on: 7 | workflow_dispatch: 8 | inputs: 9 | toolchain: 10 | description: "toolchain" 11 | required: false 12 | default: "gcc-mcf" 13 | type: choice 14 | options: 15 | - gcc-mcf 16 | - gcc-win32 17 | - gcc-posix 18 | - gcc-mingw64 19 | #schedule: 20 | #- cron: '05 0 * * MON' 21 | 22 | jobs: 23 | build: 24 | runs-on: windows-2022 25 | steps: 26 | - name: Cache msys2 27 | uses: actions/cache@main 28 | id: msys2 29 | with: 30 | path: D:\msys64 31 | key: msys2 32 | 33 | - name: Cache GCC 34 | uses: actions/cache@main 35 | id: gcc-ucrt 36 | with: 37 | path: D:\ucrt64 38 | key: gcc-ucrt-x86_64 39 | 40 | - name: Install msys2 41 | if: (steps.msys2.outputs.cache-hit != 'true' && inputs.toolchain == 'gcc-mcf') || (steps.msys2.outputs.cache-hit != 'true' && inputs.toolchain == 'gcc-win32') || (steps.msys2.outputs.cache-hit != 'true' && inputs.toolchain == 'gcc-posix') 42 | uses: msys2/setup-msys2@v2 43 | with: 44 | cache: false 45 | location: D:\ 46 | install: base-devel autotools git p7zip 47 | 48 | - name: Install MinGW-w64-GCC Toolchain 49 | if: (steps.gcc-ucrt.outputs.cache-hit != 'true' && inputs.toolchain == 'gcc-mingw64') 50 | uses: msys2/setup-msys2@v2 51 | with: 52 | cache: false 53 | location: D:\ 54 | install: >- 55 | base-devel 56 | autotools 57 | git 58 | yasm 59 | nasm 60 | p7zip 61 | mingw-w64-ucrt-x86_64-pkgconf 62 | mingw-w64-ucrt-x86_64-gcc 63 | mingw-w64-ucrt-x86_64-tools-git 64 | mingw-w64-ucrt-x86_64-meson 65 | mingw-w64-ucrt-x86_64-make 66 | mingw-w64-ucrt-x86_64-cmake 67 | 68 | - name: Prepare 69 | run: git config --global core.autocrlf input 70 | shell: bash 71 | 72 | - name: Checkout 73 | uses: actions/checkout@main 74 | 75 | - name: Config msys2 76 | if: steps.msys2.outputs.cache-hit != 'true' 77 | shell: bash 78 | run: | 79 | cp msys2-config/msys2.cmd /d/msys64 80 | install -m644 msys2-config/*.conf /d/msys64/etc/ 81 | install -m755 msys2-config/makepkg-* /d/msys64/usr/bin/ 82 | 83 | - name: Install GCC With MCF Toolchain 84 | if: (steps.gcc-ucrt.outputs.cache-hit != 'true' && inputs.toolchain == 'gcc-mcf') 85 | run: | 86 | curl -OL https://github.com/eko5624/toolchain/releases/download/toolchain/target-gcc-mcf-latest-ucrt-x86_64.7z 87 | 7z x target-gcc-mcf*.7z -o/d && mv /d/target /d/ucrt64 88 | 89 | - name: Install GCC With Win32 Toolchain 90 | if: (steps.gcc-ucrt.outputs.cache-hit != 'true' && inputs.toolchain == 'gcc-win32') 91 | run: | 92 | curl -OL https://github.com/eko5624/toolchain/releases/download/toolchain/target-gcc-win32-latest-ucrt-x86_64.7z 93 | 7z x target-gcc-win32*.7z -o/d && mv /d/target /d/ucrt64 94 | 95 | - name: Install GCC With POSIX Toolchain 96 | if: (steps.gcc-ucrt.outputs.cache-hit != 'true' && inputs.toolchain == 'gcc-posix') 97 | run: | 98 | curl -OL https://github.com/eko5624/toolchain/releases/download/toolchain/target-gcc-posix-latest-ucrt-x86_64.7z 99 | 7z x target-gcc-posix*.7z -o/d && mv /d/target /d/ucrt64 100 | 101 | - name: Install curl 102 | if: (steps.gcc-ucrt.outputs.cache-hit != 'true' && inputs.toolchain == 'gcc-mingw64') 103 | run: | 104 | mv /d/msys64/ucrt64 /d/ucrt64 105 | curl -L -o curl-win64-mingw.zip 'https://curl.se/windows/latest.cgi?p=win64-mingw.zip' 106 | 7z x curl*.zip 107 | cp curl*/bin/curl-ca-bundle.crt /d/ucrt64/bin 108 | cp curl*/bin/curl.exe /d/ucrt64/bin 109 | 110 | - name: Remove *.dll.a from MinGW-w64-GCC Toolchain 111 | if: (steps.gcc-ucrt.outputs.cache-hit != 'true' && inputs.toolchain == 'gcc-mingw64') 112 | run: | 113 | find /d/ucrt64/lib -type f \( -name "*.dll.a" \) -print0 | xargs -0 -I {} rm {} 114 | find /d/ucrt64/lib -type f -name "*.la" -print0 | xargs -0 -I {} rm {} 115 | 116 | -------------------------------------------------------------------------------- /.github/workflows/clean.yml: -------------------------------------------------------------------------------- 1 | name: Delete old workflow runs 2 | on: 3 | schedule: 4 | - cron: '0 12 * * MON' 5 | # Run monthly, at 00:00 on the 1st day of month. 6 | workflow_dispatch: 7 | 8 | jobs: 9 | del_runs: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - name: Delete workflow runs 13 | uses: Mattraks/delete-workflow-runs@main 14 | with: 15 | token: ${{ secrets.GITHUB_TOKEN }} 16 | repository: ${{ github.repository }} 17 | retain_days: 90 18 | keep_minimum_runs: 0 19 | -------------------------------------------------------------------------------- /.github/workflows/curl.yml: -------------------------------------------------------------------------------- 1 | name: curl 2 | 3 | on: 4 | #schedule: 5 | #- cron: '03 0 * * *' 6 | workflow_dispatch: 7 | 8 | jobs: 9 | mbedtls: 10 | runs-on: windows-2022 11 | steps: 12 | - uses: msys2/setup-msys2@v2 13 | with: 14 | location: D:\ 15 | install: base-devel autoconf-wrapper automake-wrapper libtool git 16 | - name: Prepare 17 | run: git config --global core.autocrlf input 18 | shell: bash 19 | - uses: actions/checkout@main 20 | - uses: actions/cache@main 21 | id: cache 22 | with: 23 | path: D:\ucrt64 24 | key: mcf_20240821_14.2.1_x64-ucrt 25 | - name: Setup Python 26 | uses: actions/setup-python@v5 27 | with: 28 | python-version: '3.11' 29 | - name: Install python dependencies 30 | run: | 31 | pip install Jinja2 jsonschema 32 | - name: Build 33 | env: 34 | C_INCLUDE_PATH: /opt/include 35 | CPLUS_INCLUDE_PATH: /opt/include 36 | LIBRARY_PATH: /opt/lib 37 | MSYSTEM: UCRT64 38 | shell: msys2 {0} 39 | run: | 40 | pypath=$(cygpath -u $pythonLocation) 41 | PATH=/d/ucrt64/bin:$pypath:$pypath/Scripts:/usr/bin:/opt/bin 42 | cd mbedtls-dev; PKG_CONFIG_PATH=/opt/lib/pkgconfig makepkg 43 | - name: Delete 44 | uses: mknejp/delete-release-assets@v1 45 | with: 46 | token: ${{ secrets.GITHUB_TOKEN }} 47 | tag: dev 48 | assets: mbedtls* 49 | fail-if-no-assets: false 50 | fail-if-no-release: false 51 | - name: Upload 52 | uses: svenstaro/upload-release-action@v2 53 | with: 54 | repo_token: ${{ secrets.GITHUB_TOKEN }} 55 | file: mbedtls-dev/*.zst 56 | tag: dev 57 | overwrite: true 58 | file_glob: true 59 | 60 | curl: 61 | needs: [mbedtls] 62 | runs-on: windows-2022 63 | steps: 64 | - uses: msys2/setup-msys2@v2 65 | with: 66 | location: D:\ 67 | install: base-devel autotools nasm git 68 | - name: Prepare 69 | run: git config --global core.autocrlf input 70 | shell: bash 71 | - uses: actions/checkout@main 72 | - uses: actions/cache@main 73 | id: cache 74 | with: 75 | path: D:\ucrt64 76 | key: mcf_20240821_14.2.1_x64-ucrt 77 | - name: Build 78 | env: 79 | C_INCLUDE_PATH: /opt/include 80 | CPLUS_INCLUDE_PATH: /opt/include 81 | LIBRARY_PATH: /opt/lib 82 | MSYSTEM: UCRT64 83 | shell: msys2 {0} 84 | run: | 85 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/mbedtls-dev-3.6.3.1-1-x86_64.pkg.tar.zst 86 | pacman -U *.zst --noconfirm 87 | cd curl; PATH=/usr/bin:/opt/bin:/d/ucrt64/bin PKG_CONFIG_PATH=/opt/lib/pkgconfig makepkg 88 | - name: Delete 89 | uses: mknejp/delete-release-assets@v1 90 | with: 91 | token: ${{ secrets.GITHUB_TOKEN }} 92 | tag: dev 93 | assets: curl* 94 | fail-if-no-assets: false 95 | fail-if-no-release: false 96 | - name: Upload 97 | uses: svenstaro/upload-release-action@v2 98 | with: 99 | repo_token: ${{ secrets.GITHUB_TOKEN }} 100 | file: curl/*.zst 101 | tag: dev 102 | overwrite: true 103 | file_glob: true 104 | -------------------------------------------------------------------------------- /.github/workflows/delete-old-releases.yml: -------------------------------------------------------------------------------- 1 | name: Delete old releases 2 | 3 | on: 4 | workflow_dispatch: 5 | # schedule: 6 | # - cron: '08 12 * * MON' 7 | 8 | jobs: 9 | prune: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@main 13 | - uses: freenet-actions/delete-old-releases@v2 14 | with: 15 | prefix: '20' # Delete all releases starting with "20". 16 | max-age: 'P6M' # Delete all releases older than 6 months. 17 | delete-tags: true 18 | token: '${{ github.token }}' 19 | -------------------------------------------------------------------------------- /.github/workflows/ffmpeg.yml: -------------------------------------------------------------------------------- 1 | name: ffmpeg 2 | defaults: 3 | run: 4 | shell: D:\msys64\msys2.cmd {0} 5 | on: 6 | workflow_dispatch: 7 | inputs: 8 | compiler: 9 | description: "Compiler" 10 | required: false 11 | default: "clang" 12 | type: choice 13 | options: 14 | - gcc 15 | - clang 16 | #schedule: 17 | #- cron: '30 0 * * MON' 18 | 19 | jobs: 20 | ffmpeg: 21 | runs-on: windows-2022 22 | env: 23 | COMPILER: ${{ inputs.compiler }} 24 | GH_TOKEN: ${{ secrets.BOT }} 25 | steps: 26 | - name: Prepare 27 | run: git config --global core.autocrlf input 28 | shell: bash 29 | - name: Checkout 30 | uses: actions/checkout@main 31 | - name: Cache msys2 32 | uses: actions/cache@main 33 | with: 34 | path: D:\msys64 35 | key: msys2 36 | - name: Cache ${{ inputs.compiler }} Toolchain 37 | uses: actions/cache@main 38 | with: 39 | path: D:\ucrt64 40 | key: ${{ inputs.compiler }}-ucrt-x86_64 41 | - name: Build 42 | run: | 43 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/amf-headers-dev-1.4.36-1-x86_64.pkg.tar.zst 44 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/aom-dev-3.12.1-1-x86_64.pkg.tar.zst 45 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/avisynth-dev-3.7.5-1-x86_64.pkg.tar.zst 46 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/bzip2-dev-1.0.8-1-x86_64.pkg.tar.zst 47 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/dav1d-dev-1.5.1-1-x86_64.pkg.tar.zst 48 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/davs2-dev-1.7-1-x86_64.pkg.tar.zst 49 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/ffnvcodec-dev-13.0.19.0-1-x86_64.pkg.tar.zst 50 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/freetype2-dev-2_13_3-1-x86_64.pkg.tar.zst 51 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/lame-dev-3.100-1-x86_64.pkg.tar.zst 52 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/lcms2-dev-2.17-1-x86_64.pkg.tar.zst 53 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libaribcaption-dev-1.1.1-1-x86_64.pkg.tar.zst 54 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libbs2b-dev-3.1.0-1-x86_64.pkg.tar.zst 55 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libdovi-dev-3.3.2-1-x86_64.pkg.tar.zst 56 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libiconv-dev-1.18-1-x86_64.pkg.tar.zst 57 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libjpeg-dev-3.1.0-1-x86_64.pkg.tar.zst 58 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libjxl-dev-0.11.1-1-x86_64.pkg.tar.zst 59 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libmodplug-dev-0.8.9.0-1-x86_64.pkg.tar.zst 60 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libmysofa-dev-1.3.3-1-x86_64.pkg.tar.zst 61 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libogg-dev-1.3.5-1-x86_64.pkg.tar.zst 62 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libopenmpt-dev-0.8.0-1-x86_64.pkg.tar.zst 63 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libplacebo-dev-7.351.0-1-x86_64.pkg.tar.zst 64 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libpng-dev-1.6.48-1-x86_64.pkg.tar.zst 65 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libsdl2-dev-3.2.16-1-x86_64.pkg.tar.zst 66 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libsoxr-dev-0.1.3-1-x86_64.pkg.tar.zst 67 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libspeex-dev-1.2.1-1-x86_64.pkg.tar.zst 68 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libsrt-dev-1.5.4-1-x86_64.pkg.tar.zst 69 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libssh-dev-0.11.1-1-x86_64.pkg.tar.zst 70 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libva-dev-2.22.0-1-x86_64.pkg.tar.zst 71 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libvorbis_aotuv-dev-1.3.7-1-x86_64.pkg.tar.zst 72 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libvpl-dev-2023.4.0-1-x86_64.pkg.tar.zst 73 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libvpx-dev-1.15.1-1-x86_64.pkg.tar.zst 74 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libwebp-dev-1.5.0-1-x86_64.pkg.tar.zst 75 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libxml2-dev-2.14.3-1-x86_64.pkg.tar.zst 76 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libxvid-dev-1.3.7-1-x86_64.pkg.tar.zst 77 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libzimg-dev-3.0.5-1-x86_64.pkg.tar.zst 78 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libzvbi-dev-0.2.44-1-x86_64.pkg.tar.zst 79 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/openal-soft-dev-1.24.3-1-x86_64.pkg.tar.zst 80 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/openssl-dev-3.5.0-1-x86_64.pkg.tar.zst 81 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/opus-dev-1.5.2-1-x86_64.pkg.tar.zst 82 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/shaderc-dev-2025.2-1-x86_64.pkg.tar.zst 83 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/spirv-cross-dev-1.4.313.0-1-x86_64.pkg.tar.zst 84 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/svtav1-dev-3.0.2-1-x86_64.pkg.tar.zst 85 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/uavs3d-dev-1.1-1-x86_64.pkg.tar.zst 86 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/vapoursynth-dev-72-1-x86_64.pkg.tar.zst 87 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/vulkan-dev-1.4.309.0-1-x86_64.pkg.tar.zst 88 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/vvdec-dev-3.0.0-1-x86_64.pkg.tar.zst 89 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/xxhash-dev-0.8.3-1-x86_64.pkg.tar.zst 90 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/xz-dev-5.8.1-1-x86_64.pkg.tar.zst 91 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/zlib-dev-2.2.4-1-x86_64.pkg.tar.zst 92 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/zstd-dev-1.5.7-1-x86_64.pkg.tar.zst 93 | pacman -U *.zst --noconfirm 94 | cd ffmpeg; makepkg-$COMPILER 95 | - name: Collecting logs 96 | if: always() 97 | run: | 98 | mkdir ffmpeg_logs 99 | cp -fr $(find ffmpeg -type f -name "*.log") ffmpeg_logs || true 100 | 7z a logs.7z ffmpeg_logs 101 | - name: Uploading logs 102 | uses: actions/upload-artifact@master 103 | if: always() 104 | with: 105 | name: ffmpeg-logs 106 | path: logs.7z 107 | - name: Delete 108 | uses: mknejp/delete-release-assets@v1 109 | with: 110 | token: ${{ secrets.BOT }} 111 | tag: latest 112 | assets: ffmpeg-git* 113 | fail-if-no-assets: false 114 | fail-if-no-release: false 115 | - name: Delete dev 116 | uses: mknejp/delete-release-assets@v1 117 | with: 118 | token: ${{ secrets.BOT }} 119 | tag: dev 120 | assets: ffmpeg-dev* 121 | fail-if-no-assets: false 122 | fail-if-no-release: false 123 | - name: Upload 124 | uses: svenstaro/upload-release-action@master 125 | with: 126 | repo_token: ${{ secrets.BOT }} 127 | file: ffmpeg/*pkg*.xz 128 | tag: latest 129 | overwrite: true 130 | file_glob: true 131 | - name: Upload Dev 132 | uses: svenstaro/upload-release-action@master 133 | with: 134 | repo_token: ${{ secrets.BOT }} 135 | file: ffmpeg/*.zst 136 | tag: dev 137 | overwrite: true 138 | file_glob: true 139 | 140 | 141 | -------------------------------------------------------------------------------- /.github/workflows/libplacebo.yml: -------------------------------------------------------------------------------- 1 | name: libplacebo 2 | defaults: 3 | run: 4 | shell: D:\msys64\msys2.cmd {0} 5 | on: 6 | workflow_dispatch: 7 | inputs: 8 | compiler: 9 | description: "Compiler" 10 | required: false 11 | default: "clang" 12 | type: choice 13 | options: 14 | - gcc 15 | - clang 16 | #schedule: 17 | #- cron: '30 0 * * MON' 18 | 19 | jobs: 20 | libplacebo: 21 | runs-on: windows-2022 22 | env: 23 | COMPILER: ${{ inputs.compiler }} 24 | GH_TOKEN: ${{ github.token }} 25 | steps: 26 | - name: Prepare 27 | run: git config --global core.autocrlf input 28 | shell: bash 29 | - name: Checkout 30 | uses: actions/checkout@main 31 | - name: Cache msys2 32 | uses: actions/cache@main 33 | with: 34 | path: D:\msys64 35 | key: msys2 36 | - name: Cache ${{ inputs.compiler }} Toolchain 37 | uses: actions/cache@main 38 | with: 39 | path: D:\ucrt64 40 | key: ${{ inputs.compiler }}-ucrt-x86_64 41 | - name: Setup Python 42 | uses: actions/setup-python@v5 43 | with: 44 | python-version: '3.11' 45 | - name: Install python dependencies 46 | shell: pwsh 47 | run: pip install ninja Jinja2 meson 48 | - name: Build 49 | run: | 50 | export pypath=$(cygpath -u $pythonLocation) 51 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/lcms2-dev-2.17-1-x86_64.pkg.tar.zst 52 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libdovi-dev-3.3.2-1-x86_64.pkg.tar.zst 53 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libjpeg-dev-3.1.0-1-x86_64.pkg.tar.zst 54 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/shaderc-dev-2025.2-1-x86_64.pkg.tar.zst 55 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/spirv-cross-dev-1.4.313.0-1-x86_64.pkg.tar.zst 56 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/vulkan-dev-1.4.309.0-1-x86_64.pkg.tar.zst 57 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/xxhash-dev-0.8.3-1-x86_64.pkg.tar.zst 58 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/zlib-dev-2.2.4-1-x86_64.pkg.tar.zst 59 | pacman -U *.zst --noconfirm 60 | cd libplacebo-dev; makepkg-$COMPILER -sLf 61 | - name: Release 62 | shell: bash 63 | run: ./release-dev.sh libplacebo-dev libplacebo-dev 64 | -------------------------------------------------------------------------------- /.github/workflows/mpv.yml: -------------------------------------------------------------------------------- 1 | name: mpv 2 | defaults: 3 | run: 4 | shell: D:\msys64\msys2.cmd {0} 5 | on: 6 | workflow_dispatch: 7 | inputs: 8 | compiler: 9 | description: "Compiler" 10 | required: false 11 | default: "clang" 12 | type: choice 13 | options: 14 | - gcc 15 | - clang 16 | 17 | jobs: 18 | mpv: 19 | runs-on: windows-2022 20 | env: 21 | COMPILER: ${{ inputs.compiler }} 22 | GH_TOKEN: ${{ secrets.BOT }} 23 | steps: 24 | - name: Prepare 25 | run: git config --global core.autocrlf input 26 | shell: bash 27 | - name: Checkout 28 | uses: actions/checkout@main 29 | - name: Cache msys2 30 | uses: actions/cache@main 31 | with: 32 | path: D:\msys64 33 | key: msys2 34 | - name: Cache ${{ inputs.compiler }} Toolchain 35 | uses: actions/cache@main 36 | with: 37 | path: D:\ucrt64 38 | key: ${{ inputs.compiler }}-ucrt-x86_64 39 | - name: Setup Python 40 | uses: actions/setup-python@main 41 | with: 42 | python-version: '3.12' 43 | - name: Install python dependencies 44 | shell: pwsh 45 | run: pip install meson ninja 46 | - name: Build 47 | run: | 48 | export pypath=$(cygpath -u $pythonLocation) 49 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/amf-headers-dev-1.4.36-1-x86_64.pkg.tar.zst 50 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/angle-headers-dev-1.0.772-1-x86_64.pkg.tar.zst 51 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/aom-dev-3.12.1-1-x86_64.pkg.tar.zst 52 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/avisynth-dev-3.7.5-1-x86_64.pkg.tar.zst 53 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/bzip2-dev-1.0.8-1-x86_64.pkg.tar.zst 54 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/dav1d-dev-1.5.1-1-x86_64.pkg.tar.zst 55 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/davs2-dev-1.7-1-x86_64.pkg.tar.zst 56 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/expat-dev-2_7_1-1-x86_64.pkg.tar.zst 57 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/ffmpeg-dev-7.1.1-1-x86_64.pkg.tar.zst 58 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/ffnvcodec-dev-13.0.19.0-1-x86_64.pkg.tar.zst 59 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/freetype2-dev-2_13_3-1-x86_64.pkg.tar.zst 60 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/fribidi-dev-1.0.16-1-x86_64.pkg.tar.zst 61 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/harfbuzz-dev-11.2.1-1-x86_64.pkg.tar.zst 62 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/lame-dev-3.100-1-x86_64.pkg.tar.zst 63 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/lcms2-dev-2.17-1-x86_64.pkg.tar.zst 64 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libarchive-dev-3.8.1-1-x86_64.pkg.tar.zst 65 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libaribcaption-dev-1.1.1-1-x86_64.pkg.tar.zst 66 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libass-dev-0.17.3-1-x86_64.pkg.tar.zst 67 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libbluray-dev-1.3.4-1-x86_64.pkg.tar.zst 68 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libbs2b-dev-3.1.0-1-x86_64.pkg.tar.zst 69 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libcaca-dev-0.99.beta20-1-x86_64.pkg.tar.zst 70 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libdovi-dev-3.3.2-1-x86_64.pkg.tar.zst 71 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libdvdcss-dev-1.4.3-1-x86_64.pkg.tar.zst 72 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libdvdnav-dev-6.1.1-1-x86_64.pkg.tar.zst 73 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libdvdread-dev-6.1.3-1-x86_64.pkg.tar.zst 74 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libiconv-dev-1.18-1-x86_64.pkg.tar.zst 75 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libjpeg-dev-3.1.0-1-x86_64.pkg.tar.zst 76 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libjxl-dev-0.11.1-1-x86_64.pkg.tar.zst 77 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libmodplug-dev-0.8.9.0-1-x86_64.pkg.tar.zst 78 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libmysofa-dev-1.3.3-1-x86_64.pkg.tar.zst 79 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libogg-dev-1.3.5-1-x86_64.pkg.tar.zst 80 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libopenmpt-dev-0.8.0-1-x86_64.pkg.tar.zst 81 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libplacebo-dev-7.351.0-1-x86_64.pkg.tar.zst 82 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libpng-dev-1.6.48-1-x86_64.pkg.tar.zst 83 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libsamplerate-dev-0.2.2-1-x86_64.pkg.tar.zst 84 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libsdl2-dev-3.2.16-1-x86_64.pkg.tar.zst 85 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libsixel-dev-1.10.5-1-x86_64.pkg.tar.zst 86 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libsoxr-dev-0.1.3-1-x86_64.pkg.tar.zst 87 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libspeex-dev-1.2.1-1-x86_64.pkg.tar.zst 88 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libsrt-dev-1.5.4-1-x86_64.pkg.tar.zst 89 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libssh-dev-0.11.1-1-x86_64.pkg.tar.zst 90 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libudfread-dev-1.1.2-1-x86_64.pkg.tar.zst 91 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libunibreak-dev-6_1-1-x86_64.pkg.tar.zst 92 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libva-dev-2.22.0-1-x86_64.pkg.tar.zst 93 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libvorbis_aotuv-dev-1.3.7-1-x86_64.pkg.tar.zst 94 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libvpl-dev-2023.4.0-1-x86_64.pkg.tar.zst 95 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libvpx-dev-1.15.1-1-x86_64.pkg.tar.zst 96 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libwebp-dev-1.5.0-1-x86_64.pkg.tar.zst 97 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libxml2-dev-2.14.3-1-x86_64.pkg.tar.zst 98 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libxvid-dev-1.3.7-1-x86_64.pkg.tar.zst 99 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libzimg-dev-3.0.5-1-x86_64.pkg.tar.zst 100 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/libzvbi-dev-0.2.44-1-x86_64.pkg.tar.zst 101 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/luajit2-dev-2.1_20250117-1-x86_64.pkg.tar.zst 102 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/lzo-dev-2.10-1-x86_64.pkg.tar.zst 103 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/mujs-dev-1.3.6-1-x86_64.pkg.tar.zst 104 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/openal-soft-dev-1.24.3-1-x86_64.pkg.tar.zst 105 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/openssl-dev-3.5.0-1-x86_64.pkg.tar.zst 106 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/opus-dev-1.5.2-1-x86_64.pkg.tar.zst 107 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/rubberband-dev-4.0.0-1-x86_64.pkg.tar.zst 108 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/shaderc-dev-2025.2-1-x86_64.pkg.tar.zst 109 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/spirv-cross-dev-1.4.313.0-1-x86_64.pkg.tar.zst 110 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/svtav1-dev-3.0.2-1-x86_64.pkg.tar.zst 111 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/uavs3d-dev-1.1-1-x86_64.pkg.tar.zst 112 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/vapoursynth-dev-72-1-x86_64.pkg.tar.zst 113 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/vulkan-dev-1.4.309.0-1-x86_64.pkg.tar.zst 114 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/vvdec-dev-3.0.0-1-x86_64.pkg.tar.zst 115 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/xxhash-dev-0.8.3-1-x86_64.pkg.tar.zst 116 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/xz-dev-5.8.1-1-x86_64.pkg.tar.zst 117 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/zlib-dev-2.2.4-1-x86_64.pkg.tar.zst 118 | curl -OL https://github.com/${{ github.repository }}/releases/download/dev/zstd-dev-1.5.7-1-x86_64.pkg.tar.zst 119 | pacman -U *.zst --noconfirm 120 | cd mpv; makepkg-$COMPILER 121 | - name: Release mpv and libmpv 122 | shell: bash 123 | run: ./release-latest.sh mpv mpv 124 | 125 | package: 126 | needs: [mpv] 127 | runs-on: windows-2022 128 | env: 129 | COMPILER: ${{ inputs.compiler }} 130 | GH_TOKEN: ${{ secrets.BOT }} 131 | steps: 132 | - name: Prepare 133 | run: git config --global core.autocrlf input 134 | shell: bash 135 | - name: Checkout 136 | uses: actions/checkout@main 137 | - name: Cache msys2 138 | uses: actions/cache@main 139 | with: 140 | path: D:\msys64 141 | key: msys2 142 | - name: Cache ${{ inputs.compiler }} Toolchain 143 | uses: actions/cache@main 144 | with: 145 | path: D:\ucrt64 146 | key: ${{ inputs.compiler }}-ucrt-x86_64 147 | - name: Setup Packages 148 | run: | 149 | curl -OL https://github.com/${{ github.repository }}/releases/download/latest/config-1.0-1-x86_64.pkg.tar.xz 150 | curl -OL https://github.com/${{ github.repository }}/releases/download/latest/ffmpeg-git-7.1.1-1-x86_64.pkg.tar.xz 151 | curl -OL https://github.com/${{ github.repository }}/releases/download/latest/libmpv-git-0.40.0-1-x86_64.pkg.tar.xz 152 | curl -OL https://github.com/${{ github.repository }}/releases/download/latest/mpv-git-0.40.0-1-x86_64.pkg.tar.xz 153 | pacman -U *.xz --noconfirm 154 | - name: Get ffmpeg latest commit sha 155 | run: echo "ffmpeg_sha=$(cat /d/msys64/opt/ffmpeg/SHORT_SHA)" >> $GITHUB_ENV 156 | - name: Zip Packages 157 | run: | 158 | curl -OL https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe 159 | mv yt-dlp.exe /opt/mpv 160 | 7z a static-mpv.7z /opt/mpv/* 161 | 7z a git-libmpv.7z /opt/libmpv\* 162 | 7z a git-ffmpeg-${{ env.ffmpeg_sha }}.7z /opt/ffmpeg/* 163 | - name: Release 164 | shell: bash 165 | run: ./release-package.sh 166 | -------------------------------------------------------------------------------- /.github/workflows/mujs.yml: -------------------------------------------------------------------------------- 1 | name: mujs 2 | defaults: 3 | run: 4 | shell: D:\msys64\msys2.cmd {0} 5 | on: 6 | workflow_dispatch: 7 | inputs: 8 | compiler: 9 | description: "Compiler" 10 | required: false 11 | default: "gcc" 12 | type: choice 13 | options: 14 | - gcc 15 | - clang 16 | #schedule: 17 | #- cron: '30 0 * * MON' 18 | 19 | jobs: 20 | mujs: 21 | runs-on: windows-2022 22 | env: 23 | COMPILER: ${{ inputs.compiler }} 24 | GH_TOKEN: ${{ secrets.BOT }} 25 | steps: 26 | - name: Prepare 27 | run: git config --global core.autocrlf input 28 | shell: bash 29 | - name: Checkout 30 | uses: actions/checkout@main 31 | - name: Cache msys2 32 | uses: actions/cache@main 33 | with: 34 | path: D:\msys64 35 | key: msys2 36 | - name: Cache ${{ inputs.compiler }} Toolchain 37 | uses: actions/cache@main 38 | with: 39 | path: D:\ucrt64 40 | key: ${{ inputs.compiler }}-ucrt-x86_64 41 | - name: Setup Python 42 | uses: actions/setup-python@main 43 | with: 44 | python-version: '3.12' 45 | - name: Build 46 | run: | 47 | export pypath=$(cygpath -u $pythonLocation) 48 | cd mujs; makepkg-$COMPILER 49 | - name: Release 50 | shell: bash 51 | run: ./release-dev.sh mujs-dev mujs -------------------------------------------------------------------------------- /.github/workflows/package.yml: -------------------------------------------------------------------------------- 1 | name: package 2 | defaults: 3 | run: 4 | shell: D:\msys64\msys2.cmd {0} 5 | on: 6 | workflow_dispatch: 7 | inputs: 8 | compiler: 9 | description: "Compiler" 10 | required: false 11 | default: "clang" 12 | type: choice 13 | options: 14 | - gcc 15 | - clang 16 | 17 | jobs: 18 | package: 19 | runs-on: windows-2022 20 | env: 21 | COMPILER: ${{ inputs.compiler }} 22 | GH_TOKEN: ${{ github.token }} 23 | steps: 24 | - name: Prepare 25 | run: git config --global core.autocrlf input 26 | shell: bash 27 | - name: Checkout 28 | uses: actions/checkout@main 29 | - name: Cache msys2 30 | uses: actions/cache@main 31 | with: 32 | path: D:\msys64 33 | key: msys2 34 | - name: Cache ${{ inputs.compiler }} Toolchain 35 | uses: actions/cache@main 36 | with: 37 | path: D:\ucrt64 38 | key: ${{ inputs.compiler }}-ucrt-x86_64 39 | - name: Setup Packages 40 | run: | 41 | curl -OL https://github.com/${{ github.repository }}/releases/download/latest/config-1.0-1-x86_64.pkg.tar.xz 42 | curl -OL https://github.com/${{ github.repository }}/releases/download/latest/ffmpeg-git-7.1.1-1-x86_64.pkg.tar.xz 43 | curl -OL https://github.com/${{ github.repository }}/releases/download/latest/libmpv-git-0.40.0-1-x86_64.pkg.tar.xz 44 | curl -OL https://github.com/${{ github.repository }}/releases/download/latest/mpv-git-0.40.0-1-x86_64.pkg.tar.xz 45 | pacman -U *.xz --noconfirm 46 | - name: Get ffmpeg latest commit sha 47 | run: echo "ffmpeg_sha=$(cat /d/msys64/opt/ffmpeg/SHORT_SHA)" >> $GITHUB_ENV 48 | - name: Zip Packages 49 | run: | 50 | curl -OL https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe 51 | mv yt-dlp.exe /opt/mpv 52 | 7z a static-mpv.7z /opt/mpv/* 53 | 7z a git-libmpv.7z /opt/libmpv\* 54 | 7z a git-ffmpeg-${{ env.ffmpeg_sha }}.7z /opt/ffmpeg/* 55 | - name: Release 56 | shell: bash 57 | run: ./release-package.sh 58 | -------------------------------------------------------------------------------- /.github/workflows/prune_tags.yml: -------------------------------------------------------------------------------- 1 | name: Pruning tags 2 | on: 3 | # schedule: 4 | # - cron: '0 12 * * MON' 5 | # Run monthly, at 00:00 on the 1st day of month. 6 | workflow_dispatch: 7 | 8 | jobs: 9 | del_tags: 10 | runs-on: ubuntu-latest 11 | env: 12 | GH_TOKEN: ${{ github.token }} 13 | CURL_RETRIES: "--connect-timeout 60 --retry 5 --retry-delay 5" 14 | steps: 15 | - uses: actions/checkout@main 16 | with: 17 | token: ${{ secrets.BOT }} 18 | - name: Pruning tags 19 | shell: bash 20 | run: | 21 | # Keep latest 30 tags/releases 22 | git fetch --tags 23 | tag_list=($(git tag -l '2022*' | sort -r)) 24 | echo "${tag_list[@]}" 25 | old=${tag_list[@]:30} 26 | echo "${old[@]}" 27 | for tag in ${old[@]}; do 28 | id=$(curl -u $GITHUB_ACTOR:$GH_TOKEN $CURL_RETRIES -s -X GET -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/${{ github.repository }}/releases/tags/$tag | jq -r '.id') 29 | curl -u $GITHUB_ACTOR:$GH_TOKEN $CURL_RETRIES -s -X DELETE -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/${{ github.repository }}/releases/$id 30 | git tag -d $tag 31 | done 32 | git push --tags --prune https://$GITHUB_ACTOR:$GH_TOKEN@github.com/${{ github.repository }} 33 | -------------------------------------------------------------------------------- /.github/workflows/random_hash.yml: -------------------------------------------------------------------------------- 1 | name: RANDOM_HASH 2 | 3 | on: 4 | workflow_dispatch: 5 | 6 | jobs: 7 | build: 8 | runs-on: ubuntu-latest 9 | steps: 10 | - name: Checkout 11 | uses: actions/checkout@v4 12 | with: 13 | fetch-depth: 0 14 | - name: Install git 15 | run: | 16 | sudo apt-get update 17 | sudo apt-get -y install git 18 | - name: Set env 19 | run: | 20 | git config user.name "github-actions[bot]" 21 | git config user.email "41898282+github-actions[bot]@users.noreply.github.com" 22 | - name: Get random hash 23 | run: | 24 | git checkout static 25 | random_hash=$(echo $RANDOM | md5sum | head -c 20) 26 | echo $random_hash > HASH 27 | git add HASH 28 | git commit HASH -m "Random-hash-setting" 29 | git push 30 | -------------------------------------------------------------------------------- /.github/workflows/reset-commit.yml: -------------------------------------------------------------------------------- 1 | name: reset-commit 2 | on: 3 | workflow_dispatch: 4 | inputs: 5 | command: 6 | description: 'Input commit id' 7 | required: true 8 | type: string 9 | 10 | jobs: 11 | build: 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Checkout 15 | uses: actions/checkout@main 16 | with: 17 | fetch-depth: 0 18 | token: ${{ secrets.BOT }} 19 | - name: Install git 20 | run: | 21 | sudo apt-get update 22 | sudo apt-get -y install git 23 | - name: Set env 24 | run: | 25 | git config user.name "github-actions[bot]" 26 | git config user.email "41898282+github-actions[bot]@users.noreply.github.com" 27 | - name: Build 28 | run: | 29 | git reset --hard ${{ github.event.inputs.command }} 30 | - name: release 31 | run: | 32 | git commit -am "Automate" || echo "nothing updated" 33 | git push -f -------------------------------------------------------------------------------- /.github/workflows/shaderc.yml: -------------------------------------------------------------------------------- 1 | name: shaderc 2 | defaults: 3 | run: 4 | shell: D:\msys64\msys2.cmd {0} 5 | on: 6 | workflow_dispatch: 7 | inputs: 8 | compiler: 9 | description: "Compiler" 10 | required: false 11 | default: "clang" 12 | type: choice 13 | options: 14 | - gcc 15 | - clang 16 | #schedule: 17 | #- cron: '30 0 * * MON' 18 | 19 | jobs: 20 | shaderc: 21 | runs-on: windows-2022 22 | env: 23 | COMPILER: ${{ inputs.compiler }} 24 | GH_TOKEN: ${{ github.token }} 25 | steps: 26 | - name: Prepare 27 | run: git config --global core.autocrlf input 28 | shell: bash 29 | - name: Checkout 30 | uses: actions/checkout@main 31 | - name: Cache msys2 32 | uses: actions/cache@main 33 | with: 34 | path: D:\msys64 35 | key: msys2 36 | - name: Cache ${{ inputs.compiler }} Toolchain 37 | uses: actions/cache@main 38 | with: 39 | path: D:\ucrt64 40 | key: ${{ inputs.compiler }}-ucrt-x86_64 41 | - name: Build 42 | run: cd shaderc-dev; makepkg-$COMPILER -sLf 43 | - name: Release 44 | shell: bash 45 | run: ./release-dev.sh shaderc-dev shaderc-dev 46 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | name: davs2 2 | defaults: 3 | run: 4 | shell: D:\msys64\msys2.cmd {0} 5 | on: 6 | workflow_dispatch: 7 | inputs: 8 | compiler: 9 | description: "Compiler" 10 | required: false 11 | default: "clang" 12 | type: choice 13 | options: 14 | - gcc 15 | - clang 16 | #schedule: 17 | #- cron: '30 0 * * MON' 18 | 19 | jobs: 20 | davs2: 21 | runs-on: windows-2022 22 | env: 23 | COMPILER: ${{ inputs.compiler }} 24 | GH_TOKEN: ${{ secrets.BOT }} 25 | steps: 26 | - name: Prepare 27 | run: git config --global core.autocrlf input 28 | shell: bash 29 | - name: Checkout 30 | uses: actions/checkout@main 31 | - name: Cache msys2 32 | uses: actions/cache@main 33 | with: 34 | path: D:\msys64 35 | key: msys2 36 | - name: Cache ${{ inputs.compiler }} Toolchain 37 | uses: actions/cache@main 38 | with: 39 | path: D:\ucrt64 40 | key: ${{ inputs.compiler }}-ucrt-x86_64 41 | - name: Build 42 | run: | 43 | cd davs2-dev; makepkg-$COMPILER 44 | - name: Release 45 | shell: bash 46 | run: ./release-dev.sh davs2-dev davs2-dev 47 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.tar.xz 2 | *.tar.zst 3 | *.tar.gz 4 | *.tar.bz2 5 | *.tgz 6 | *.zip 7 | *.rar 8 | *.7z 9 | *.sig 10 | */src/ 11 | */pkg/ 12 | -------------------------------------------------------------------------------- /HASH: -------------------------------------------------------------------------------- 1 | 757107ecf0609380b95d 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MPV Player Win64 Build 2 | [![releases](https://img.shields.io/github/v/release/eko5624/mpv-win64)](https://github.com/eko5624/mpv-win64/releases/latest) 3 | ![stars](https://img.shields.io/github/stars/eko5624/mpv-win64?style=social) 4 | ## Installation 5 | Grab and extract the All-in-One archive from 6 | You can also manually install these pacman-based packages if you are using MSYS2 7 | All my builds are portable and compiled with VapourSynth support, these plugins will have no effect if MPV can't find python environment 8 | 9 | ## Requirements 10 | - [Microsoft Visual C++ Redistributable](https://docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170) 11 | - Download [vc_redist.x64](https://aka.ms/vs/17/release/vc_redist.x64.exe) 12 | 13 | ## About shared build 14 | If you have vulkan-1.dll on your OS, mpv will use it from your graphic driver automatically. In this case, vulkan-1.dll can be removed. 15 | 16 | ## Main project site: 17 | 18 | 19 | ## Configuration 20 | 21 | All your configurations can be saved within the ***portable_config*** subdirectory 22 | 23 | ## Awesome Links 24 | - [User Scripts from Official](https://github.com/mpv-player/mpv/wiki/User-Scripts) 25 | - [Default MPV Setting](https://github.com/mpv-player/mpv/blob/master/etc/mpv.conf) 26 | - [Default MPV Key Binding](https://github.com/mpv-player/mpv/blob/master/etc/input.conf) 27 | ### MPV menu plugin 28 | - [mpv-menu-plugin](https://github.com/tsl0922/mpv-menu-plugin) 29 | ### Lua Plugin 30 | - [Autoload](https://github.com/mpv-player/mpv/blob/master/TOOLS/lua/autoload.lua) 31 | - [Play List Manager](https://github.com/jonniek/mpv-playlistmanager) 32 | - [MPV Thumbnail](https://github.com/po5/thumbfast) 33 | - [uosc](https://github.com/tomasklaen/uosc) 34 | - [SmartCopyPaste](https://github.com/Eisa01/mpv-scripts/blob/master/script-opts/SmartCopyPaste_II.conf) 35 | ### VapourSynth Plugin 36 | - [SVP](https://www.svp-team.com) proprietary motion interpolation solution to produce high frame rate video 37 | - [MVTools](https://github.com/dubhater/vapoursynth-mvtools) another motion interpolation plugin and it was open source 38 | - [FFMS2](https://github.com/FFMS/ffms2) video source library for multimedia editing 39 | ### Shader 40 | - [Anime4K](https://bloc97.github.io/Anime4K/) 41 | - [SSim/Krig](https://gist.github.com/igv) 42 | - [FSRCNNX](https://github.com/igv/FSRCNN-TensorFlow/releases) 43 | - [ACNet](https://github.com/TianZerL/ACNetGLSL/releases) 44 | 45 | ## How to Compile 46 | Fork this repo and build these packages by Github Action 47 | **NOTICE** 48 | Don't build it on your personal msys2 environment unless it was in sandbox, these shitty scripts will spoil your whole weekend! 49 | 50 | ## Detail 51 | The FFmpeg and MPV library were built with the following libraries 52 | - lame: MP3 Audio Encoding 53 | - libogg/libvorbis-aotuv: Ogg Vorbis Audio Encoding 54 | - opus: Opus Audio Encoding 55 | - nvcodec: Nvidia Hardware Accelerated video Encoding/Decoding 56 | - lcms2: Reading ICC Profiles for Your Monitor 57 | - libass/freetype2/fribidi/harfbuzz: Subtitle Support 58 | - luajit: Lua Plugin 59 | - vapoursynth: VapourSynth Plugin and VSS Video Source 60 | - shaderc/spirv/libplacebo: D3D11 & Vulkan Context 61 | - libbluray/libdvdnav/libdvdread/libdvdcss: Parsing BD/DVD 62 | - libdav1d: av1 decoding 63 | - libjxl: jxl decoding 64 | 65 | ## TODO ??? 66 | ### Build FFmpeg with x264/x265/libaom for video encoding 67 | I prefer to directly use these utilities 68 | ### Build FFmpeg with libfdk_aac for high quality AAC audio encoding 69 | Yes, fdk aak produce better aac than FFmpeg native, but it is still not in the top tier. I recommend you to use xHE-AAC or Apple AAC instead 70 | ### Build libass with fontconfig for POSIX-like system font configuration 71 | Fontconfig sucks in windows, and... do you really want to learn it? 72 | -------------------------------------------------------------------------------- /amf-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=amf-headers-dev 2 | pkgver=1.4.36 3 | pkgrel=1 4 | pkgdesc='Header files for AMD Advanced Media Framework' 5 | arch=('x86_64') 6 | url="https://github.com/GPUOpen-LibrariesAndSDKs/AMF/" 7 | license=('MIT') 8 | source=() 9 | md5sums=() 10 | 11 | package() { 12 | cd $srcdir 13 | git clone \ 14 | --depth 1 \ 15 | --sparse \ 16 | --filter=tree:0 \ 17 | https://github.com/GPUOpen-LibrariesAndSDKs/AMF.git 18 | cd AMF 19 | git sparse-checkout set amf/public/include 20 | mkdir -p $pkgdir/opt/include/AMF 21 | mv amf/public/include/core $pkgdir/opt/include/AMF 22 | mv amf/public/include/components $pkgdir/opt/include/AMF 23 | } 24 | -------------------------------------------------------------------------------- /angle-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=angle-headers-dev 2 | pkgver=1.0.772 3 | pkgrel=1 4 | pkgdesc='Almost Native Graphics Layer Engine' 5 | arch=('x86_64') 6 | url="https://chromium.googlesource.com/angle/angle/" 7 | license=('custom') 8 | source=() 9 | md5sums=() 10 | 11 | package() { 12 | cd $srcdir 13 | git clone \ 14 | --depth 1 \ 15 | --sparse \ 16 | --filter=tree:0 \ 17 | --branch main \ 18 | https://chromium.googlesource.com/angle/angle 19 | cd angle 20 | git sparse-checkout set include/EGL include/KHR 21 | 22 | mkdir -p $pkgdir/opt/include 23 | mv include/EGL $pkgdir/opt/include 24 | mv include/KHR $pkgdir/opt/include 25 | } 26 | -------------------------------------------------------------------------------- /aom-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=aom-dev 2 | pkgver=3.12.1 3 | pkgrel=1 4 | pkgdesc='AV1 codec library' 5 | arch=('x86_64') 6 | url="https://aomedia.org/" 7 | license=('spdx:BSD-2-Clause') 8 | source=("git+https://aomedia.googlesource.com/aom") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | eval "${att_args}" 13 | cd $srcdir/aom 14 | rm -rf out && mkdir out && cd out 15 | cmake .. \ 16 | -G "Ninja" \ 17 | -DCMAKE_INSTALL_PREFIX=/opt \ 18 | -DCMAKE_BUILD_TYPE=Release \ 19 | -DBUILD_SHARED_LIBS=OFF \ 20 | -DENABLE_EXAMPLES=OFF \ 21 | -DENABLE_DOCS=OFF \ 22 | -DENABLE_TOOLS=OFF \ 23 | -DENABLE_NASM=ON \ 24 | -DENABLE_TESTS=OFF \ 25 | -DENABLE_TESTDATA=OFF \ 26 | -DCONFIG_UNIT_TESTS=0 \ 27 | -DCONFIG_AV1_DECODER=0 28 | cmake --build . 29 | } 30 | 31 | package() { 32 | cd $srcdir/aom/out 33 | DESTDIR=$pkgdir cmake --install . 34 | mv $pkgdir/msys64/* $pkgdir 35 | rm -rf $pkgdir/msys64 36 | } 37 | -------------------------------------------------------------------------------- /autoupdate.py: -------------------------------------------------------------------------------- 1 | import json 2 | from urllib import request 3 | import in_place 4 | 5 | resp = request.urlopen('https://github.com/eko5624/nginx-nosni/raw/master/old.json') 6 | x = json.loads(resp.read().decode('utf-8')) 7 | x = dict(map(lambda p: (p, x['data'][p]['version']), x['data'].keys())) 8 | 9 | mingw = x['Mingw-w64-custom'][:x['Mingw-w64-custom'].find('ucrt')+4] 10 | for t in ['build-toolchain-lhmouse.yml']: 11 | with in_place.InPlace('.github/workflows/%s' % t, newline='') as f: 12 | for l in f: 13 | if (i:=l.find('key: mcf_')) > -1: 14 | l = '%s%s\n' % (l[:i+9], mingw) 15 | elif (i:=l.find('mingw-w64-gcc-mcf_')) > -1: 16 | l = '%s%s.7z\n' % (l[:i+18], x['Mingw-w64-custom']) 17 | f.write(l) 18 | 19 | pkgs = {} 20 | pkgs['libsixel'] = x['libsixel'] 21 | for p in ['freetype2', 'fribidi', 'harfbuzz', 'libjxl', 'spirv-cross']: 22 | pkgs['%s-dev' % p] = x[p] 23 | for p in pkgs: 24 | with in_place.InPlace('%s/PKGBUILD-new' % p, newline='') as f: 25 | for l in f: 26 | if l.startswith('pkgver'): 27 | l = 'pkgver=%s\n' % pkgs[p] 28 | f.write(l) 29 | pkgs['mcfgthread'] = mingw[:8] 30 | pkgs['vapoursynth'] = x['VapourSynth'][1:] 31 | for p in ['curl', 'mpv', 'ffmpeg', 'luajit2', 'mujs', 'rubberband']: 32 | pkgs['%s' % p] = x[p] 33 | pkgs['libvorbis_aotuv-dev'] = x['libvorbis'] 34 | for p in [ 35 | 'amf', 36 | 'aom', 37 | 'angle', 38 | 'avisynth', 39 | 'brotli', 40 | 'bzip2', 41 | 'dav1d', 42 | 'davs2', 43 | 'expat', 44 | 'ffnvcodec', 45 | 'highway', 46 | 'lame', 47 | 'lcms2', 48 | 'libarchive', 49 | 'libaribcaption', 50 | 'libass', 51 | 'libbluray', 52 | 'libbs2b', 53 | 'libcaca', 54 | 'libdovi', 55 | 'libdvdcss', 56 | 'libdvdnav', 57 | 'libdvdread', 58 | 'libiconv', 59 | 'libudfread', 60 | 'libunibreak', 61 | 'libjpeg', 62 | 'libmodplug', 63 | 'libmysofa', 64 | 'libogg', 65 | 'libopenmpt', 66 | 'libplacebo', 67 | 'libpng', 68 | 'libsamplerate', 69 | 'libsdl2', 70 | 'libspeex', 71 | 'libssh', 72 | 'libsrt', 73 | 'libvpl', 74 | 'libvpx', 75 | 'libwebp', 76 | 'libxml2', 77 | 'libxvid', 78 | 'libva', 79 | 'libzimg', 80 | 'libzvbi', 81 | 'lzo', 82 | 'mbedtls', 83 | 'openal-soft', 84 | 'openssl', 85 | 'opus', 86 | 'rav1e', 87 | 'shaderc', 88 | 'svtav1', 89 | 'uavs3d', 90 | 'vulkan', 91 | 'vvdec', 92 | 'xxhash', 93 | 'xz', 94 | 'zlib', 95 | 'zstd', 96 | ]: 97 | pkgs['%s-dev' % p] = x[p] 98 | for p in pkgs: 99 | with in_place.InPlace('%s/PKGBUILD' % p, newline='') as f: 100 | for l in f: 101 | if l.startswith('pkgver'): 102 | l = 'pkgver=%s\n' % pkgs[p] 103 | f.write(l) 104 | pkgs['amf-headers-dev'] = x['amf'] 105 | pkgs['angle-headers-dev'] = x['angle'] 106 | pkgs['libsixel-dev'] = x['libsixel'] 107 | pkgs['luajit-dev'] = x['LuaJIT'] 108 | pkgs['luajit2-dev'] = x['luajit2'] 109 | pkgs['mujs-dev'] = x['mujs'] 110 | pkgs['rubberband-dev'] = x['rubberband'] 111 | pkgs['vapoursynth-dev'] = x['VapourSynth'][1:] 112 | pkgs['ffmpeg-dev'] = x['ffmpeg'] 113 | pkgs['ffmpeg-git'] = x['ffmpeg'] 114 | pkgs['libmpv-git'] = x['mpv'] 115 | pkgs['mpv-git'] = x['mpv'] 116 | 117 | for t in ['curl.yml', 'ffmpeg.yml', 'libplacebo.yml', 'shaderc.yml', 'mpv.yml', 'build-all.yml', 'package.yml']: 118 | with in_place.InPlace('.github/workflows/%s' % t, newline='') as f: 119 | for l in f: 120 | if (i:=l.find('key: mcf_')) > -1: 121 | l = '%s%s\n' % (l[:i+9], mingw) 122 | elif (i:=l.find('/dev/')) > -1: 123 | r = l.find('-1-x86_64') 124 | rr = l.rfind('-', i, r) 125 | p = l[i+5:rr] 126 | if p in pkgs: 127 | l = '%s%s-%s%s' % (l[:i+5], p, pkgs[p], l[r:]) 128 | elif (i:=l.find('/latest/')) > -1: 129 | r = l.find('-1-x86_64') 130 | rr = l.rfind('-', i, r) 131 | p = l[i+8:rr] 132 | if p in pkgs: 133 | l = '%s%s-%s%s' % (l[:i+8], p, pkgs[p], l[r:]) 134 | elif (i:=l.find('/yt-dlp/releases/download/')) > -1: 135 | l = '%s%s/yt-dlp.exe\n' % (l[:i+26], x['yt-dlp']) 136 | f.write(l) 137 | -------------------------------------------------------------------------------- /avisynth-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=avisynth-dev 2 | pkgver=3.7.5 3 | pkgrel=1 4 | pkgdesc='A powerful tool for video post-production' 5 | arch=('x86_64') 6 | url="https://github.com/AviSynth/AviSynthPlus" 7 | license=('custom') 8 | source=("git+https://github.com/AviSynth/AviSynthPlus.git#commit=21fdc997f9724b994896ba5520ddf64d677976b3") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/AviSynthPlus 13 | git submodule update --init --recursive 14 | rm -rf build && mkdir build && cd build 15 | cmake .. \ 16 | -G "Ninja" \ 17 | -DCMAKE_INSTALL_PREFIX=/opt \ 18 | -DCMAKE_BUILD_TYPE=Release \ 19 | -DBUILD_SHARED_LIBS=OFF \ 20 | -DHEADERS_ONLY=ON 21 | ninja VersionGen 22 | } 23 | 24 | package() { 25 | cd $srcdir/AviSynthPlus/build 26 | DESTDIR=$pkgdir cmake --install . 27 | mv $pkgdir/msys64/* $pkgdir 28 | rm -rf $pkgdir/msys64 29 | } 30 | -------------------------------------------------------------------------------- /brotli-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=brotli-dev 2 | pkgver=1.1.0 3 | pkgrel=1 4 | pkgdesc='Generic-purpose lossless compression algorithm' 5 | arch=('x86_64') 6 | url="https://github.com/google/brotli/" 7 | license=('MIT') 8 | source=("git+https://github.com/google/brotli") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/brotli 13 | rm -rf out && mkdir out && cd out 14 | cmake .. \ 15 | -G "Ninja" \ 16 | -DCMAKE_INSTALL_PREFIX=/opt \ 17 | -DCMAKE_BUILD_TYPE=Release \ 18 | -DBUILD_SHARED_LIBS=OFF \ 19 | -DBROTLI_EMSCRIPTEN=OFF 20 | cmake --build . 21 | } 22 | 23 | package() { 24 | cd $srcdir/brotli/out 25 | DESTDIR=$pkgdir cmake --install . 26 | mv $pkgdir/msys64/* $pkgdir 27 | rm -rf $pkgdir/msys64 28 | } 29 | -------------------------------------------------------------------------------- /bzip2-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=bzip2-dev 2 | pkgver=1.0.8 3 | pkgrel=1 4 | pkgdesc='A high-quality data compression program' 5 | arch=('x86_64') 6 | url="https://sourceware.org/bzip2/" 7 | license=("custom") 8 | source=("git+https://gitlab.com/bzip2/bzip2.git") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/bzip2 13 | rm -rf out && mkdir out && cd out 14 | cmake .. \ 15 | -G "Ninja" \ 16 | -DCMAKE_INSTALL_PREFIX=/opt \ 17 | -DCMAKE_BUILD_TYPE=Release \ 18 | -DBUILD_SHARED_LIBS=OFF \ 19 | -DENABLE_LIB_ONLY=ON \ 20 | -DENABLE_SHARED_LIB=OFF \ 21 | -DENABLE_STATIC_LIB=ON \ 22 | -DENABLE_TESTS=OFF 23 | cmake --build . 24 | } 25 | 26 | package() { 27 | cd $srcdir/bzip2/out 28 | DESTDIR=$pkgdir cmake --install . 29 | mv $pkgdir/msys64/* $pkgdir 30 | mv $pkgdir/opt/lib/libbz2_static.a $pkgdir/opt/lib/libbz2.a 31 | rm -rf $pkgdir/msys64 32 | } 33 | -------------------------------------------------------------------------------- /curl/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=curl-dev 2 | pkgver=8_14_1 3 | pkgrel=1 4 | pkgdesc='Command line tool and library for transferring data with URLs' 5 | arch=('x86_64') 6 | url="https://curl.se/" 7 | makedepends=('mbedtls-dev') 8 | license=('spdx:MIT') 9 | source=("git+https://github.com/curl/curl.git#tag=curl-$pkgver" 10 | "https://raw.githubusercontent.com/shinchiro/mpv-winbuild-cmake/master/packages/curl-0001-Skip-compiling-unnecessary-stuff.patch" 11 | "https://curl.se/ca/cacert.pem") 12 | md5sums=('SKIP' 'SKIP' 'SKIP') 13 | 14 | build() { 15 | cd $srcdir/curl 16 | patch -p1 -i $srcdir/curl-0001-Skip-compiling-unnecessary-stuff.patch 17 | autoreconf -vfi 18 | ./configure \ 19 | --prefix=/opt \ 20 | --disable-shared \ 21 | --with-mbedtls=/opt 22 | make 23 | } 24 | 25 | package() { 26 | cd $srcdir/curl 27 | make DESTDIR=$pkgdir install 28 | mv $srcdir/cacert.pem $pkgdir/opt/bin/curl-ca-bundle.crt 29 | } 30 | -------------------------------------------------------------------------------- /dav1d-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=dav1d-dev 3 | pkgver=1.5.1 4 | pkgrel=1 5 | pkgdesc='the fastest AV1 decoder on all platforms' 6 | arch=('x86_64') 7 | url="https://code.videolan.org/videolan/dav1d" 8 | makedepends=('xxhash-dev') 9 | license=('BSD') 10 | source=("git+https://code.videolan.org/videolan/dav1d") 11 | md5sums=('SKIP') 12 | 13 | build() { 14 | cd $srcdir/dav1d 15 | meson setup work \ 16 | --prefix=/opt \ 17 | --buildtype=release \ 18 | --default-library=static \ 19 | -Denable_tools=false \ 20 | -Denable_tests=false 21 | meson compile -C work 22 | } 23 | 24 | package() { 25 | cd $srcdir/dav1d 26 | DESTDIR=$pkgdir meson install -C work 27 | mv $pkgdir/msys64/* $pkgdir 28 | rm -rf $pkgdir/msys64 29 | } 30 | -------------------------------------------------------------------------------- /davs2-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=davs2-dev 2 | pkgver=1.7 3 | pkgrel=1 4 | pkgdesc='An open-source decoder of AVS2-P2/IEEE1857.4 video coding standard' 5 | arch=('x86_64') 6 | url="https://github.com/pkuvcl/davs2" 7 | license=('GPL') 8 | source=("git+https://github.com/saindriches/davs2.git") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/davs2/build/linux 13 | ./configure --prefix=/opt --disable-cli --bit-depth=10 14 | make 15 | } 16 | 17 | package() { 18 | cd $srcdir/davs2/build/linux 19 | make DESTDIR=$pkgdir install 20 | } 21 | -------------------------------------------------------------------------------- /expat-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=expat-dev 2 | pkgver=2_7_1 3 | pkgrel=1 4 | pkgdesc='An XML parser library' 5 | arch=('x86_64') 6 | url="https://libexpat.github.io/" 7 | license=('spdx:MIT') 8 | source=("git+https://github.com/libexpat/libexpat.git") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/libexpat 13 | rm -rf out && mkdir out && cd out 14 | cmake ../expat \ 15 | -G "Ninja" \ 16 | -DCMAKE_INSTALL_PREFIX=/opt \ 17 | -DCMAKE_BUILD_TYPE=Release \ 18 | -DBUILD_SHARED_LIBS=OFF \ 19 | -DEXPAT_BUILD_DOCS=OFF \ 20 | -DEXPAT_BUILD_EXAMPLES=OFF \ 21 | -DEXPAT_BUILD_FUZZERS=OFF \ 22 | -DEXPAT_BUILD_TESTS=OFF \ 23 | -DEXPAT_BUILD_TOOLS=OFF \ 24 | -DEXPAT_BUILD_PKGCONFIG=ON 25 | cmake --build . 26 | } 27 | 28 | package() { 29 | cd $srcdir/libexpat/out 30 | DESTDIR=$pkgdir cmake --install . 31 | mv $pkgdir/msys64/* $pkgdir 32 | rm -rf $pkgdir/msys64 33 | } 34 | -------------------------------------------------------------------------------- /ffmpeg/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=(ffmpeg-dev ffmpeg-git) 2 | pkgver=7.1.1 3 | pkgrel=1 4 | pkgdesc='Complete and free Internet live audio and video solution' 5 | arch=('x86_64') 6 | url="http://ffmpeg.org/" 7 | makedepends=("amf-headers-dev" 8 | "aom-dev" 9 | "bzip2-dev" 10 | "avisynth-dev" 11 | "dav1d-dev" 12 | "davs2-dev" 13 | "ffnvcodec-dev" 14 | "lame-dev" 15 | "libaribcaption-dev" 16 | "libbs2b-dev" 17 | "libjxl-dev" 18 | "libmodplug-dev" 19 | "libmysofa-dev" 20 | "libogg-dev" 21 | "libopenmpt-dev" 22 | "libplacebo-dev" 23 | "libsdl2-dev" 24 | "libsoxr-dev" 25 | "libspeex-dev" 26 | "libsrt-dev" 27 | "libssh-dev" 28 | "libva-dev" 29 | "libvorbis_aotuv-dev" 30 | "libvpl-dev" 31 | "libvpx-dev" 32 | "libwebp-dev" 33 | "libxml2-dev" 34 | "libxvid-dev" 35 | "libzimg-dev" 36 | "libzvbi-dev" 37 | "openal-soft-dev" 38 | "openssl-dev" 39 | "opus-dev" 40 | "shaderc-dev" 41 | "svtav1-dev" 42 | "uavs3d-dev" 43 | "vapoursynth-dev" 44 | "vvdec-dev") 45 | license=('LGPL') 46 | source=("git+https://github.com/FFmpeg/FFmpeg") 47 | md5sums=('SKIP') 48 | 49 | package_ffmpeg-dev() { 50 | cd $srcdir/FFmpeg 51 | # fix checks for small buffers 52 | curl -OL https://patch-diff.githubusercontent.com/raw/eko5624/FFmpeg/pull/3.patch 53 | curl -OL https://raw.githubusercontent.com/wiki/fraunhoferhhi/vvdec/data/patch/v6-0001-avcodec-add-external-dec-libvvdec-for-H266-VVC.patch 54 | patch -p1 -i 3.patch 55 | patch -p1 -i v6-0001-avcodec-add-external-dec-libvvdec-for-H266-VVC.patch 56 | # ffmpeg 8224327698 changed all defines of FF_PROFILES_* to AV_PROFILES_* 57 | sed -i 's/FF_PROFILE/AV_PROFILE/g' libavcodec/libvvdec.c 58 | eval "${att_args}" 59 | ./configure \ 60 | --prefix=/opt \ 61 | --arch=x86_64 \ 62 | --target-os=mingw32 \ 63 | --pkg-config-flags=--static \ 64 | --disable-debug \ 65 | --disable-doc \ 66 | --enable-gpl \ 67 | --enable-version3 \ 68 | --enable-nonfree \ 69 | --enable-pic \ 70 | --enable-static \ 71 | --disable-ffplay \ 72 | --disable-ffprobe \ 73 | --disable-avdevice \ 74 | --disable-shared \ 75 | --disable-pthreads \ 76 | --enable-w32threads \ 77 | --extra-cflags="${ffmpeg_extra_cflags}" \ 78 | --extra-libs="${ffmpeg_extra_libs}" \ 79 | --extra-ldflags="${ffmpeg_extra_ldflags}" \ 80 | --enable-amf \ 81 | --enable-avisynth \ 82 | --enable-cuvid${ffmpeg_cuda_llvm} \ 83 | --enable-lcms2 \ 84 | --enable-libaom \ 85 | --enable-libaribcaption \ 86 | --enable-libbs2b \ 87 | --enable-libdav1d \ 88 | --enable-libdavs2 \ 89 | --enable-libjxl \ 90 | --enable-libvpl \ 91 | --enable-libmodplug \ 92 | --enable-libmp3lame \ 93 | --enable-libmysofa \ 94 | --enable-libopenmpt \ 95 | --enable-libopus \ 96 | --enable-libplacebo \ 97 | --enable-libsvtav1 \ 98 | --enable-libshaderc \ 99 | --enable-libsoxr \ 100 | --enable-libspeex \ 101 | --enable-libsrt \ 102 | --enable-libssh \ 103 | --enable-libuavs3d \ 104 | --enable-libvorbis \ 105 | --enable-libvpx \ 106 | --enable-libvvdec \ 107 | --enable-libwebp \ 108 | --enable-libxml2 \ 109 | --enable-libxvid \ 110 | --enable-libzimg \ 111 | --enable-libzvbi \ 112 | --enable-openal \ 113 | --enable-opengl \ 114 | --enable-openssl \ 115 | --enable-nvdec \ 116 | --enable-nvenc \ 117 | --enable-vaapi \ 118 | --enable-vapoursynth \ 119 | --enable-zlib \ 120 | --disable-decoder=libaom_av1 \ 121 | --disable-decoder=libvorbis \ 122 | --disable-decoder=libopus \ 123 | --disable-encoder=opus \ 124 | --disable-encoder=vorbis 125 | make DESTDIR=$pkgdir install 126 | rm -rf $pkgdir/opt/bin $pkgdir/opt/share $pkgdir/opt/lib/*.def 127 | } 128 | 129 | package_ffmpeg-git() { 130 | export PKGEXT='.pkg.tar.xz' 131 | mkdir -p $pkgdir/opt/ffmpeg 132 | cd $srcdir/FFmpeg 133 | make DESTDIR=$pkgdir install 134 | rm -rf $pkgdir/opt/bin/*.lib $pkgdir/opt/share $pkgdir/opt/include $pkgdir/opt/lib 135 | strip $pkgdir/opt/bin/* 136 | mv $pkgdir/opt/bin/ffmpeg.exe $pkgdir/opt/ffmpeg 137 | rm -rf $pkgdir/opt/bin 138 | 139 | # get latest commit sha 140 | short_sha=$(git rev-parse --short HEAD) 141 | echo $short_sha > SHORT_SHA 142 | mv SHORT_SHA $pkgdir/opt/ffmpeg 143 | } 144 | -------------------------------------------------------------------------------- /ffnvcodec-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=ffnvcodec-dev 3 | pkgver=13.0.19.0 4 | pkgrel=1 5 | pkgdesc='FFmpeg version of headers required to interface with Nvidias codec APIs' 6 | arch=('x86_64') 7 | url="http://ffmpeg.org/" 8 | license=('MIT') 9 | source=("git+https://github.com/FFmpeg/nv-codec-headers") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | cd $srcdir/nv-codec-headers 14 | make PREFIX=/opt 15 | } 16 | 17 | package() { 18 | cd $srcdir/nv-codec-headers 19 | make PREFIX=/opt DESTDIR=$pkgdir install 20 | } 21 | -------------------------------------------------------------------------------- /freetype2-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=freetype2-dev 3 | pkgver=2_13_3 4 | pkgrel=1 5 | pkgdesc='Font rasterization library' 6 | arch=('x86_64') 7 | url="https://www.freetype.org/" 8 | license=('GPL') 9 | source=("git+https://github.com/freetype/freetype.git") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | cd $srcdir/freetype 14 | ./autogen.sh 15 | ./configure prefix=/opt --disable-shared 16 | make 17 | } 18 | 19 | package() { 20 | cd $srcdir/freetype 21 | make DESTDIR=$pkgdir install 22 | rm -rf $pkgdir/opt/share 23 | } 24 | -------------------------------------------------------------------------------- /freetype2-dev/PKGBUILD-new: -------------------------------------------------------------------------------- 1 | pkgname=freetype2-dev 2 | pkgver=2_13_3 3 | pkgrel=1 4 | pkgdesc='Font rasterization library' 5 | arch=('x86_64') 6 | url="https://www.freetype.org/" 7 | makedepends=('libpng-dev' 'zlib-dev') 8 | license=('GPL') 9 | source=("git+https://github.com/freetype/freetype.git#tag=VER-${pkgver//_/-}") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | cd $srcdir/freetype 14 | meson setup build --prefix=/opt --buildtype=release --default-library=static \ 15 | -Dharfbuzz=disabled \ 16 | -Dtests=disabled \ 17 | -Dbrotli=disabled \ 18 | -Dpng=enabled \ 19 | -Dzlib=enabled 20 | meson compile -C build 21 | } 22 | 23 | package() { 24 | cd $srcdir/freetype 25 | DESTDIR=$pkgdir meson install -C build 26 | mv $pkgdir/msys64/* $pkgdir 27 | rm -rf $pkgdir/msys64 28 | } 29 | -------------------------------------------------------------------------------- /fribidi-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=fribidi-dev 3 | pkgver=1.0.16 4 | pkgrel=1 5 | pkgdesc='A Free Implementation of the Unicode Bidirectional Algorithm' 6 | arch=('x86_64') 7 | url="https://github.com/fribidi/fribidi/" 8 | license=('LGPL') 9 | source=("git+https://github.com/fribidi/fribidi#tag=v$pkgver") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | cd $srcdir/fribidi 14 | sed -i "s/libfribidi/libfribidi,extra_cflags:'-DFRIBIDI_LIB_STATIC'/" meson.build 15 | mkdir work 16 | meson . work --prefix=/opt --buildtype=release --default-library=static \ 17 | -Dcpp_args='-DFRIBIDI_LIB_STATIC' -Ddocs=false -Dbin=false -Dtests=false 18 | cd work 19 | ninja 20 | } 21 | 22 | package() { 23 | cd $srcdir/fribidi/work 24 | DESTDIR=$pkgdir ninja install 25 | mv $pkgdir/msys64/* $pkgdir 26 | rm -rf $pkgdir/msys64 27 | } 28 | -------------------------------------------------------------------------------- /fribidi-dev/PKGBUILD-new: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=fribidi-dev 3 | pkgver=1.0.16 4 | pkgrel=1 5 | pkgdesc='A Free Implementation of the Unicode Bidirectional Algorithm' 6 | arch=('x86_64') 7 | url="https://github.com/fribidi/fribidi/" 8 | license=('LGPL') 9 | source=("git+https://github.com/fribidi/fribidi.git") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | cd $srcdir/fribidi 14 | meson build --prefix=/opt --buildtype=release --default-library=static \ 15 | -Dcpp_args='-DFRIBIDI_LIB_STATIC' \ 16 | -Ddocs=false \ 17 | -Dbin=false \ 18 | -Dtests=false 19 | meson compile -C build 20 | } 21 | 22 | package() { 23 | cd $srcdir/fribidi 24 | DESTDIR=$pkgdir meson install -C build 25 | mv $pkgdir/msys64/* $pkgdir 26 | rm -rf $pkgdir/msys64 27 | } 28 | -------------------------------------------------------------------------------- /gmp-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=gmp-dev 2 | pkgver=6.2.1 3 | pkgrel=1 4 | pkgdesc='A free library for arbitrary precision arithmetic' 5 | arch=('x86_64') 6 | url="https://gmplib.org/" 7 | license=('LGPL3' 'GPL') 8 | source=("https://ftp.gnu.org/gnu/gmp/gmp-$pkgver.tar.xz") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | eval "${att_args}" 13 | cd $srcdir/gmp-$pkgver 14 | sed -i 's|__declspec\(__dllimport__\)||g' gmp-h.in 15 | ./configure \ 16 | --prefix=/opt \ 17 | --enable-static \ 18 | --disable-shared 19 | make 20 | } 21 | 22 | package() { 23 | cd $srcdir/gmp-$pkgver 24 | make DESTDIR=$pkgdir install 25 | rm -rf $pkgdir/opt/share $pkgdir/opt/bin 26 | } 27 | -------------------------------------------------------------------------------- /harfbuzz-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=harfbuzz-dev 3 | pkgver=11.2.1 4 | pkgrel=1 5 | pkgdesc='OpenType text shaping engine' 6 | arch=('x86_64') 7 | url="https://github.com/harfbuzz/harfbuzz/" 8 | license=('GPL') 9 | source=("git+https://github.com/harfbuzz/harfbuzz#tag=$pkgver") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | cd $srcdir/harfbuzz 14 | mkdir work 15 | meson . work --prefix=/opt --buildtype=release --default-library=static \ 16 | -Dtests=disabled -Ddocs=disabled -Dbenchmark=disabled 17 | cd work 18 | ninja 19 | } 20 | 21 | package() { 22 | cd $srcdir/harfbuzz/work 23 | DESTDIR=$pkgdir ninja install 24 | mv $pkgdir/msys64/* $pkgdir 25 | rm -rf $pkgdir/msys64 26 | } 27 | -------------------------------------------------------------------------------- /harfbuzz-dev/PKGBUILD-new: -------------------------------------------------------------------------------- 1 | pkgname=harfbuzz-dev 2 | pkgver=11.2.1 3 | pkgrel=1 4 | pkgdesc='OpenType text shaping engine' 5 | arch=('x86_64') 6 | url="https://github.com/harfbuzz/harfbuzz/" 7 | makedepends=('freetype2-dev' 'libpng-dev') 8 | license=('GPL') 9 | source=("git+https://github.com/harfbuzz/harfbuzz.git") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | cd $srcdir/harfbuzz 14 | meson setup build \ 15 | --prefix=/opt \ 16 | --buildtype=release \ 17 | --default-library=static \ 18 | -Dicu=disabled \ 19 | -Dglib=disabled \ 20 | -Dgobject=disabled \ 21 | -Dtests=disabled \ 22 | -Ddocs=disabled \ 23 | -Dbenchmark=disabled 24 | meson compile -C build 25 | } 26 | 27 | package() { 28 | cd $srcdir/harfbuzz 29 | DESTDIR=$pkgdir meson install -C build 30 | mv $pkgdir/msys64/* $pkgdir 31 | rm -rf $pkgdir/msys64 32 | } 33 | -------------------------------------------------------------------------------- /highway-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=highway-dev 2 | pkgver=1.2.0 3 | pkgrel=1 4 | pkgdesc='C++ library for SIMD (Single Instruction, Multiple Data)' 5 | arch=('x86_64') 6 | url="https://github.com/google/highway/" 7 | license=('Apache-2.0') 8 | source=("git+https://github.com/google/highway.git") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | eval "${att_args}" 13 | cd $srcdir/highway 14 | rm -rf build && mkdir build && cd build 15 | cmake .. \ 16 | -G "Ninja" \ 17 | -DCMAKE_INSTALL_PREFIX=/opt \ 18 | -DCMAKE_BUILD_TYPE=Release \ 19 | -DBUILD_TESTING=OFF \ 20 | -DCMAKE_GNUtoMS=OFF \ 21 | -DHWY_CMAKE_ARM7=OFF \ 22 | -DHWY_ENABLE_CONTRIB=OFF \ 23 | -DHWY_ENABLE_EXAMPLES=OFF \ 24 | -DHWY_ENABLE_INSTALL=ON \ 25 | -DHWY_WARNINGS_ARE_ERRORS=OFF 26 | cmake --build . 27 | } 28 | 29 | package() { 30 | cd $srcdir/highway/build 31 | DESTDIR=$pkgdir cmake --install . 32 | mv $pkgdir/msys64/* $pkgdir 33 | rm -rf $pkgdir/msys64 34 | } 35 | -------------------------------------------------------------------------------- /install-dev.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -x 3 | CURL_RETRIES="--connect-timeout 60 --retry 5 --retry-delay 5 --http1.1" 4 | for param in "$@"; do 5 | download_url=($(curl -u $GITHUB_ACTOR:$GH_TOKEN $CURL_RETRIES \ 6 | -H "Accept: application/vnd.github.v3+json" \ 7 | https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/dev \ 8 | | jq -r '.assets[] | select(.name | startswith("'"$param"'")) | .browser_download_url')); 9 | for url in "${download_url[@]}"; do 10 | curl -OL $url; 11 | done 12 | done 13 | pacman -U *.zst --noconfirm 14 | 15 | 16 | -------------------------------------------------------------------------------- /install-latest.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -x 3 | CURL_RETRIES="--connect-timeout 60 --retry 5 --retry-delay 5 --http1.1" 4 | for param in "$@"; do 5 | download_url=($(curl -u $GITHUB_ACTOR:$GH_TOKEN $CURL_RETRIES \ 6 | -H "Accept: application/vnd.github.v3+json" \ 7 | https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/latest \ 8 | | jq -r '.assets[] | select(.name | startswith("'"$param"'")) | .browser_download_url')); 9 | for url in "${download_url[@]}"; do 10 | curl -OL $url; 11 | done 12 | done 13 | pacman -U *.xz --noconfirm 14 | -------------------------------------------------------------------------------- /lame-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=lame-dev 2 | pkgver=3.100 3 | pkgrel=1 4 | pkgdesc='A high quality MPEG Audio Layer III (MP3) encoder' 5 | arch=('x86_64') 6 | url="http://lame.sourceforge.net/" 7 | license=('LGPL') 8 | source=("http://downloads.sourceforge.net/lame/lame-$pkgver.tar.gz") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | export CFLAGS="-msse2 ${CFLAGS}" 13 | cd $srcdir/lame-$pkgver 14 | ./configure prefix=/opt --disable-shared --enable-nasm --disable-frontend 15 | } 16 | 17 | package() { 18 | cd $srcdir/lame-$pkgver 19 | make DESTDIR=$pkgdir install 20 | rm -rf $pkgdir/opt/share 21 | } 22 | -------------------------------------------------------------------------------- /lcms2-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=lcms2-dev 2 | pkgver=2.17 3 | pkgrel=1 4 | pkgdesc='Small-footprint color management engine, version 2' 5 | arch=('x86_64') 6 | url="http://www.littlecms.com/" 7 | makedepends=('zlib-dev' 'libjpeg-dev') 8 | license=('MIT') 9 | source=("git+https://github.com/mm2/Little-CMS.git") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | eval "${att_args}" 14 | cd $srcdir/Little-CMS 15 | meson setup build \ 16 | --prefix=/opt \ 17 | --libdir=/opt/lib \ 18 | --buildtype=release \ 19 | --default-library=static \ 20 | -Dfastfloat=true \ 21 | -Dthreaded=true 22 | meson compile -C build 23 | } 24 | 25 | package() { 26 | cd $srcdir/Little-CMS 27 | DESTDIR=$pkgdir meson install -C build 28 | mv $pkgdir/msys64/* $pkgdir 29 | rm -rf $pkgdir/msys64 30 | rm -rf $pkgdir/opt/share $pkgdir/opt/bin 31 | } 32 | -------------------------------------------------------------------------------- /libarchive-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libarchive-dev 2 | pkgver=3.8.1 3 | pkgrel=1 4 | pkgdesc='Multi-format archive and compression library' 5 | arch=('x86_64') 6 | url="https://www.libarchive.org/" 7 | makedepends=('bzip2-dev' 'expat-dev' 'libxml2-dev' 'lzo-dev' 'openssl-dev' 'xz-dev' 'zlib-dev' 'zstd-dev') 8 | license=("BSD") 9 | source=("git+https://github.com/libarchive/libarchive.git#tag=v$pkgver") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | CFLAGS+=" -Wno-error=incompatible-pointer-types" 14 | cd $srcdir/libarchive 15 | autoreconf -fiv 16 | ./configure \ 17 | --prefix=/opt \ 18 | --disable-bsdtar \ 19 | --disable-bsdcat \ 20 | --disable-bsdcpio \ 21 | --without-cng \ 22 | --without-libb2 \ 23 | --without-lz4 \ 24 | --with-bz2lib \ 25 | --with-expat \ 26 | --with-iconv \ 27 | --with-lzma \ 28 | --with-lzo2 \ 29 | --with-openssl \ 30 | --with-xml2 \ 31 | --with-zlib \ 32 | --with-zstd 33 | make 34 | } 35 | 36 | package() { 37 | cd $srcdir/libarchive 38 | make DESTDIR=$pkgdir install 39 | } 40 | -------------------------------------------------------------------------------- /libaribcaption-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libaribcaption-dev 2 | pkgver=1.1.1 3 | pkgrel=1 4 | pkgdesc='Portable ARIB STD-B24 Caption Decoder/Renderer' 5 | arch=('x86_64') 6 | url="https://github.com/xqq/libaribcaption/" 7 | makedepends=('freetype2-dev' 'openssl-dev' 'zlib-dev') 8 | license=('MIT') 9 | source=("git+https://github.com/xqq/libaribcaption.git") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | cd $srcdir/libaribcaption 14 | ln -s /opt/include/openssl include/openssl 15 | rm -rf build && mkdir build && cd build 16 | cmake .. \ 17 | -G "Ninja" \ 18 | -DCMAKE_INSTALL_PREFIX=/opt \ 19 | -DCMAKE_BUILD_TYPE=Release \ 20 | -DBUILD_SHARED_LIBS=OFF \ 21 | -DARIBCC_BUILD_TESTS=OFF \ 22 | -DARIBCC_SHARED_LIBRARY=OFF \ 23 | -DARIBCC_NO_RTTI=ON \ 24 | -DCMAKE_C_FLAGS='-DHAVE_OPENSSL=1' \ 25 | -DCMAKE_CXX_FLAGS='-DHAVE_OPENSSL=1' 26 | cmake --build . 27 | } 28 | 29 | package() { 30 | cd $srcdir/libaribcaption/build 31 | DESTDIR=$pkgdir cmake --install . 32 | mv $pkgdir/msys64/* $pkgdir 33 | rm -rf $pkgdir/msys64 34 | } 35 | -------------------------------------------------------------------------------- /libass-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=libass-dev 3 | pkgver=0.17.3 4 | pkgrel=1 5 | pkgdesc='A portable library for SSA/ASS subtitles rendering' 6 | arch=('x86_64') 7 | url="https://github.com/libass/libass/" 8 | makedepends=('freetype2-dev' 'fribidi-dev' 'harfbuzz-dev' 'libunibreak-dev') 9 | license=('BSD') 10 | source=("git+https://github.com/libass/libass") 11 | md5sums=('SKIP') 12 | 13 | build() { 14 | cd $srcdir/libass 15 | meson setup build \ 16 | --prefix=/opt \ 17 | --libdir=/opt/lib \ 18 | --buildtype=release \ 19 | --default-library=static \ 20 | -Dfontconfig=disabled \ 21 | -Ddirectwrite=enabled \ 22 | -Dasm=enabled \ 23 | -Dlibunibreak=enabled \ 24 | -Dtest=disabled \ 25 | -Dcompare=disabled \ 26 | -Dprofile=disabled \ 27 | -Dfuzz=disabled \ 28 | -Dcheckasm=disabled 29 | meson compile -C build 30 | } 31 | 32 | package() { 33 | cd $srcdir/libass 34 | DESTDIR=$pkgdir meson install -C build 35 | mv $pkgdir/msys64/* $pkgdir 36 | rm -rf $pkgdir/msys64 37 | rm -rf $pkgdir/opt/share $pkgdir/opt/bin 38 | } 39 | -------------------------------------------------------------------------------- /libbluray-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=libbluray-dev 3 | pkgver=1.3.4 4 | pkgrel=1 5 | pkgdesc='Library to access Blu-Ray disks for video playback' 6 | arch=('x86_64') 7 | url="https://www.videolan.org/developers/libbluray.html" 8 | makedepends=('freetype2-dev' 'libpng-dev' 'libudfread-dev' 'zlib-dev') 9 | license=('GPL') 10 | source=("https://download.videolan.org/pub/videolan/libbluray/$pkgver/libbluray-$pkgver.tar.bz2") 11 | md5sums=('SKIP') 12 | 13 | build() { 14 | cd $srcdir/libbluray-$pkgver 15 | ./configure prefix=/opt --disable-shared --disable-examples --disable-doxygen-doc --disable-bdjava-jar --without-libxml2 --without-fontconfig 16 | make 17 | } 18 | 19 | package() { 20 | cd $srcdir/libbluray-$pkgver 21 | make DESTDIR=$pkgdir install 22 | sed -i 's/Requires.private/Requires/' $pkgdir/opt/lib/pkgconfig/*.pc 23 | rm -rf $pkgdir/opt/share $pkgdir/opt/bin 24 | } 25 | -------------------------------------------------------------------------------- /libbs2b-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libbs2b-dev 2 | pkgver=3.1.0 3 | pkgrel=1 4 | pkgdesc='Bauer stereophonic-to-binaural DSP effect library' 5 | arch=('x86_64') 6 | url="https://bs2b.sourceforge.io/" 7 | license=('MIT') 8 | source=("git+https://github.com/alexmarsev/libbs2b.git" 9 | "libbs2b-0001-build-library-only.patch") 10 | md5sums=('SKIP' 'SKIP') 11 | 12 | build() { 13 | cd $srcdir/libbs2b 14 | patch -p1 -i $srcdir/libbs2b-0001-build-library-only.patch 15 | ./autogen.sh 16 | ./configure prefix=/opt --enable-static --disable-shared 17 | make 18 | } 19 | 20 | package() { 21 | cd $srcdir/libbs2b 22 | make DESTDIR=$pkgdir install 23 | } 24 | -------------------------------------------------------------------------------- /libbs2b-dev/libbs2b-0001-build-library-only.patch: -------------------------------------------------------------------------------- 1 | From dce3ad5987efa9b41741bde7f8ab159618d52eff Mon Sep 17 00:00:00 2001 2 | From: shinchiro 3 | Date: Sun, 23 Feb 2020 19:04:18 +0800 4 | Subject: [PATCH] Build library only 5 | 6 | --- 7 | configure.ac | 8 +------- 8 | src/Makefile.am | 5 ----- 9 | 2 files changed, 1 insertion(+), 12 deletions(-) 10 | 11 | diff --git a/configure.ac b/configure.ac 12 | index c3d1c59..126bf65 100644 13 | --- a/configure.ac 14 | +++ b/configure.ac 15 | @@ -14,11 +14,6 @@ AC_PROG_CC 16 | AC_PROG_LIBTOOL 17 | PKG_PROG_PKG_CONFIG 18 | 19 | -# Checks for libraries. 20 | -PKG_CHECK_EXISTS([sndfile], [], [ 21 | - AC_MSG_ERROR(Please install libsndfile.) 22 | -]) 23 | - 24 | # Checks for header files. 25 | AC_CHECK_HEADERS([fcntl.h malloc.h string.h]) 26 | 27 | @@ -27,8 +22,7 @@ AC_HEADER_STDBOOL 28 | AC_TYPE_SIZE_T 29 | 30 | # Checks for library functions. 31 | -AC_FUNC_MALLOC 32 | -AC_CHECK_FUNCS([strrchr]) 33 | +AC_CHECK_FUNCS([malloc strrchr]) 34 | 35 | AC_CONFIG_FILES([libbs2b.pc 36 | Makefile 37 | diff --git a/src/Makefile.am b/src/Makefile.am 38 | index 414aeec..98ed494 100644 39 | --- a/src/Makefile.am 40 | +++ b/src/Makefile.am 41 | @@ -1,11 +1,6 @@ 42 | lib_LTLIBRARIES = \ 43 | libbs2b.la 44 | 45 | -bin_PROGRAMS = \ 46 | - bs2bconvert \ 47 | - bs2bstream 48 | - 49 | - 50 | bs2b_HEADERS = \ 51 | bs2b.h \ 52 | bs2bclass.h \ 53 | -- 54 | 2.17.1 55 | -------------------------------------------------------------------------------- /libcaca-dev/0001-win32-is-not-msvc-it-could-be.mingw.patch: -------------------------------------------------------------------------------- 1 | --- libcaca/caca/caca.h.orig 2010-02-08 16:34:28 +0400 2 | +++ libcaca/caca/caca.h 2012-04-03 18:21:06 +0400 3 | @@ -29,9 +29,9 @@ 4 | 5 | #undef __extern 6 | #if defined _DOXYGEN_SKIP_ME 7 | -#elif defined _WIN32 && defined __LIBCACA__ && defined DLL_EXPORT 8 | +#elif defined _MSC_VER && defined __LIBCACA__ && defined DLL_EXPORT 9 | # define __extern extern __declspec(dllexport) 10 | -#elif defined _WIN32 && !defined __LIBCACA__ && !defined CACA_STATIC 11 | +#elif defined _MSC_VER && !defined __LIBCACA__ && !defined CACA_STATIC 12 | # define __extern extern __declspec(dllimport) 13 | #else 14 | # define __extern extern 15 | --- libcaca/caca/caca0.h.orig 2010-02-08 16:34:28 +0400 16 | +++ libcaca/caca/caca0.h 2012-04-03 18:21:17 +0400 17 | @@ -22,9 +22,9 @@ 18 | 19 | #undef __extern 20 | #if defined _DOXYGEN_SKIP_ME 21 | -#elif defined _WIN32 && defined __LIBCACA__ && defined DLL_EXPORT 22 | +#elif defined _MSC_VER && defined __LIBCACA__ && defined DLL_EXPORT 23 | # define __extern extern __declspec(dllexport) 24 | -#elif defined _WIN32 && !defined __LIBCACA__ 25 | +#elif defined _MSC_VER && !defined __LIBCACA__ 26 | # define __extern extern __declspec(dllimport) 27 | #else 28 | # define __extern extern 29 | --- libcaca/cxx/caca++.h.orig 2010-02-08 16:34:28 +0400 30 | +++ libcaca/cxx/caca++.h 2012-04-03 18:21:46 +0400 31 | @@ -23,7 +23,7 @@ 32 | #include 33 | 34 | #undef __class 35 | -#if defined(_WIN32) && defined(__LIBCACA_PP__) 36 | +#if defined(_MSC_VER) && defined(__LIBCACA_PP__) 37 | # define __class class __declspec(dllexport) 38 | #else 39 | # define __class class 40 | -------------------------------------------------------------------------------- /libcaca-dev/0002-correct-installation-order.mingw.patch: -------------------------------------------------------------------------------- 1 | --- libcaca/doc/Makefile.am.orig 2010-02-08 16:34:28 +0400 2 | +++ libcaca/doc/Makefile.am 2012-04-03 19:09:57 +0400 3 | @@ -39,7 +39,7 @@ 4 | clean-local: 5 | -rm -Rf html latex man 6 | 7 | -install-data-local: 8 | +install-data-local: install-man1 9 | if BUILD_DOCUMENTATION 10 | mkdir -p $(DESTDIR)$(datadir)/doc 11 | ln -sf libcaca-dev $(DESTDIR)$(datadir)/doc/libcucul-dev 12 | -------------------------------------------------------------------------------- /libcaca-dev/0006-no-undefined.all.patch: -------------------------------------------------------------------------------- 1 | --- libcaca/ruby/Makefile.am.orig 2010-02-08 00:49:49.000000000 +0000 2 | +++ libcaca/ruby/Makefile.am 2014-07-30 11:20:48.699589900 +0000 3 | @@ -24,7 +24,7 @@ 4 | caca-event.c \ 5 | caca-event.h \ 6 | $(NULL) 7 | -caca_la_LDFLAGS = -module -avoid-version -shared $(RUBY_LIBS) 8 | +caca_la_LDFLAGS = -module -avoid-version -shared $(RUBY_LIBS) -no-undefined 9 | caca_la_LIBADD = ../caca/libcaca.la 10 | 11 | EXTRA_DIST = ruby.dox \ 12 | -------------------------------------------------------------------------------- /libcaca-dev/0010-missing-include.patch: -------------------------------------------------------------------------------- 1 | --- libcaca/src/common-image.c.orig 2023-07-26 08:52:11.125966700 +0200 2 | +++ libcaca/src/common-image.c 2023-07-26 08:51:25.875000700 +0200 3 | @@ -22,6 +22,7 @@ 4 | #endif 5 | 6 | #include "caca.h" 7 | +#include "caca_internals.h" 8 | 9 | #include "common-image.h" -------------------------------------------------------------------------------- /libcaca-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libcaca-dev 2 | pkgver=0.99.beta20 3 | pkgrel=1 4 | pkgdesc='Color AsCii Art library' 5 | arch=('x86_64') 6 | url="https://github.com/cacalabs/libcaca" 7 | license=('LGPL') 8 | source=("git+https://github.com/cacalabs/libcaca.git" 9 | "0001-win32-is-not-msvc-it-could-be.mingw.patch" 10 | "0002-correct-installation-order.mingw.patch" 11 | "0006-no-undefined.all.patch" 12 | "0010-missing-include.patch") 13 | md5sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP') 14 | 15 | build() { 16 | eval "${att_args}" 17 | cd $srcdir/libcaca 18 | # wrong result with ucrt 19 | export ac_cv_func_sprintf_s=yes 20 | export ac_cv_func_vsnprintf_s=yes 21 | for patch in $srcdir/*.patch; do 22 | echo "Applying $patch" 23 | patch -p1 < "$patch" 24 | done 25 | autoreconf -fvi 26 | ./configure \ 27 | --prefix=/opt \ 28 | --disable-shared \ 29 | --enable-static \ 30 | --disable-ncurses \ 31 | --disable-csharp \ 32 | --disable-ruby \ 33 | --disable-doc 34 | make 35 | } 36 | 37 | package() { 38 | cd $srcdir/libcaca 39 | make DESTDIR=$pkgdir install 40 | } 41 | -------------------------------------------------------------------------------- /libdovi-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libdovi-dev 2 | pkgver=3.3.2 3 | pkgrel=1 4 | pkgdesc='Library to read and write Dolby Vision metadata (C-API)' 5 | arch=('x86_64') 6 | url="https://github.com/quietvoid/dovi_tool/" 7 | license=('MIT') 8 | source=() 9 | md5sums=() 10 | 11 | package() { 12 | cd $srcdir 13 | git clone \ 14 | --depth 1 \ 15 | --sparse \ 16 | --filter=tree:0 \ 17 | https://github.com/quietvoid/dovi_tool.git 18 | cd dovi_tool 19 | git sparse-checkout set dolby_vision 20 | cd dolby_vision 21 | mkdir build 22 | export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1 23 | cargo cinstall --manifest-path=Cargo.toml --prefix=/opt --destdir=$pkgdir --release --library-type staticlib 24 | mv $pkgdir/msys64/* $pkgdir 25 | rm -rf $pkgdir/msys64 26 | } 27 | -------------------------------------------------------------------------------- /libdvdcss-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=libdvdcss-dev 3 | pkgver=1.4.3 4 | pkgrel=1 5 | pkgdesc='Portable abstraction library for DVD decryption' 6 | arch=('x86_64') 7 | url="https://www.videolan.org/developers/libdvdcss.html" 8 | license=('GPL') 9 | source=("https://download.videolan.org/pub/libdvdcss/$pkgver/libdvdcss-$pkgver.tar.bz2") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | cd $srcdir/libdvdcss-$pkgver 14 | ./configure prefix=/opt --disable-shared --disable-doc 15 | make 16 | } 17 | 18 | package() { 19 | cd $srcdir/libdvdcss-$pkgver 20 | make DESTDIR=$pkgdir install 21 | rm -rf $pkgdir/opt/share 22 | } 23 | -------------------------------------------------------------------------------- /libdvdnav-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=libdvdnav-dev 3 | pkgver=6.1.1 4 | pkgrel=1 5 | pkgdesc='The library for xine-dvdnav plugin' 6 | arch=('x86_64') 7 | url="https://www.videolan.org/developers/libdvdnav.html" 8 | makedepends=('libdvdcss-dev' 'libdvdread-dev') 9 | license=('GPL') 10 | source=("https://download.videolan.org/pub/videolan/libdvdnav/$pkgver/libdvdnav-$pkgver.tar.bz2") 11 | md5sums=('SKIP') 12 | 13 | build() { 14 | cd $srcdir/libdvdnav-$pkgver 15 | ./configure prefix=/opt --disable-shared 16 | make 17 | } 18 | 19 | package() { 20 | cd $srcdir/libdvdnav-$pkgver 21 | make DESTDIR=$pkgdir install 22 | sed -i 's/Requires.private/Requires/' $pkgdir/opt/lib/pkgconfig/*.pc 23 | rm -rf $pkgdir/opt/share 24 | } 25 | -------------------------------------------------------------------------------- /libdvdread-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=libdvdread-dev 3 | pkgver=6.1.3 4 | pkgrel=1 5 | pkgdesc='Provides a simple foundation for reading DVD video disks' 6 | arch=('x86_64') 7 | url="https://www.videolan.org/developers/libdvdnav.html" 8 | makedepends=('libdvdcss-dev') 9 | license=('GPL') 10 | source=("https://download.videolan.org/pub/videolan/libdvdread/$pkgver/libdvdread-$pkgver.tar.bz2") 11 | md5sums=('SKIP') 12 | 13 | build() { 14 | cd $srcdir/libdvdread-$pkgver 15 | ./configure prefix=/opt --disable-shared --with-libdvdcss 16 | make 17 | } 18 | 19 | package() { 20 | cd $srcdir/libdvdread-$pkgver 21 | make DESTDIR=$pkgdir install 22 | sed -i 's/Requires.private/Requires/' $pkgdir/opt/lib/pkgconfig/*.pc 23 | rm -rf $pkgdir/opt/share 24 | } 25 | -------------------------------------------------------------------------------- /libiconv-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libiconv-dev 2 | pkgver=1.18 3 | pkgrel=1 4 | pkgdesc='Character encoding conversion library and utility' 5 | arch=('x86_64') 6 | url="https://www.gnu.org/software/libiconv/" 7 | license=('spdx:GPL-3.0-or-later') 8 | source=("https://ftp.gnu.org/pub/gnu/libiconv/libiconv-$pkgver.tar.gz") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/libiconv-$pkgver 13 | ./configure --prefix=/opt --disable-nls --disable-shared --enable-extra-encodings 14 | make 15 | } 16 | 17 | package() { 18 | cd $srcdir/libiconv-$pkgver 19 | make DESTDIR=$pkgdir install 20 | mkdir -p $pkgdir/opt/lib/pkgconfig 21 | cp ../../*.pc $pkgdir/opt/lib/pkgconfig 22 | sed -i 's/_ver/$pkgver/' $pkgdir/opt/lib/pkgconfig/iconv.pc 23 | } 24 | -------------------------------------------------------------------------------- /libiconv-dev/iconv.pc: -------------------------------------------------------------------------------- 1 | libdir=/opt/lib 2 | includedir=/opt/include 3 | 4 | Name: iconv 5 | Description: libiconv 6 | URL: https://www.gnu.org/software/libiconv/ 7 | Version: _ver 8 | Libs: -L${libdir} -liconv 9 | Cflags: -I${includedir} 10 | -------------------------------------------------------------------------------- /libjpeg-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libjpeg-dev 2 | pkgver=3.1.0 3 | pkgrel=1 4 | pkgdesc='JPEG image codec with accelerated baseline compression and decompression' 5 | arch=('x86_64') 6 | url="https://libjpeg-turbo.virtualgl.org/" 7 | license=('custom') 8 | source=("git+https://github.com/libjpeg-turbo/libjpeg-turbo.git") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/libjpeg-turbo 13 | rm -rf build && mkdir build && cd build 14 | cmake .. \ 15 | -G "Ninja" \ 16 | -DCMAKE_INSTALL_PREFIX=/opt \ 17 | -DCMAKE_BUILD_TYPE=Release \ 18 | -DENABLE_SHARED=OFF \ 19 | -DENABLE_STATIC=ON 20 | cmake --build . 21 | } 22 | 23 | package() { 24 | cd $srcdir/libjpeg-turbo/build 25 | DESTDIR=$pkgdir cmake --install . 26 | mv $pkgdir/msys64/* $pkgdir 27 | rm -rf $pkgdir/msys64 28 | } 29 | -------------------------------------------------------------------------------- /libjxl-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libjxl-dev 2 | pkgver=0.11.1 3 | pkgrel=1 4 | pkgdesc='JPEG XL image format reference implementation' 5 | arch=('x86_64') 6 | url="https://github.com/libjxl/libjxl/" 7 | makedepends=('brotli-dev' 'highway-dev' 'lcms2-dev' 'libjpeg-dev' 'libpng-dev' 'zlib-dev') 8 | license=('BSD') 9 | source=("git+https://github.com/libjxl/libjxl") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | # Fix AVX2 related crash due to unaligned stack memory 14 | export CXXFLAGS="$CXXFLAGS -Wa,-muse-unaligned-vector-move" 15 | export CFLAGS="$CFLAGS -Wa,-muse-unaligned-vector-move" 16 | 17 | cd $srcdir/libjxl 18 | rm -rf build && mkdir build && cd build 19 | cmake .. -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=/opt -DCMAKE_BUILD_TYPE=Release \ 20 | -DBUILD_SHARED_LIBS=OFF \ 21 | -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ 22 | -DJPEGXL_STATIC=ON \ 23 | -DBUILD_TESTING=OFF \ 24 | -DJPEGXL_EMSCRIPTEN=OFF \ 25 | -DJPEGXL_BUNDLE_LIBPNG=OFF \ 26 | -DJPEGXL_ENABLE_TOOLS=OFF \ 27 | -DJPEGXL_ENABLE_VIEWERS=OFF \ 28 | -DJPEGXL_ENABLE_DOXYGEN=OFF \ 29 | -DJPEGXL_ENABLE_EXAMPLES=OFF \ 30 | -DJPEGXL_ENABLE_MANPAGES=OFF \ 31 | -DJPEGXL_ENABLE_JNI=OFF \ 32 | -DJPEGXL_ENABLE_SKCMS=OFF \ 33 | -DJPEGXL_ENABLE_PLUGINS=OFF \ 34 | -DJPEGXL_ENABLE_DEVTOOLS=OFF \ 35 | -DJPEGXL_ENABLE_BENCHMARK=OFF \ 36 | -DJPEGXL_ENABLE_SJPEG=OFF 37 | cmake --build . 38 | } 39 | 40 | package() { 41 | cd $srcdir/libjxl/build 42 | DESTDIR=$pkgdir cmake --install . 43 | mv $pkgdir/msys64/* $pkgdir 44 | rm -rf $pkgdir/msys64 45 | sed -i 's/Libs.private: -lm/Libs.private: -lm -lstdc++/' $pkgdir/opt/lib/pkgconfig/libjxl.pc 46 | sed -i 's/Libs.private: -lm/Libs.private: -lm -lstdc++/' $pkgdir/opt/lib/pkgconfig/libjxl_threads.pc 47 | } 48 | -------------------------------------------------------------------------------- /libjxl-dev/PKGBUILD-new: -------------------------------------------------------------------------------- 1 | pkgname=libjxl-dev 2 | pkgver=0.11.1 3 | pkgrel=1 4 | pkgdesc='JPEG XL image format reference implementation' 5 | arch=('x86_64') 6 | url="https://github.com/libjxl/libjxl/" 7 | makedepends=('lcms2-dev' 'libjpeg-dev' 'libpng-dev' 'zlib-dev') 8 | license=('BSD') 9 | source=("git+https://github.com/libjxl/libjxl.git" 10 | "git+https://github.com/libjpeg-turbo/libjpeg-turbo.git") 11 | md5sums=('SKIP' 'SKIP') 12 | 13 | build() { 14 | # Fix AVX2 related crash due to unaligned stack memory 15 | eval "${libjxl_unaligned_vector}" 16 | cd $srcdir/libjxl 17 | eval "${att_args}" 18 | git submodule update --init --recursive --depth 1 --recommend-shallow third_party/{brotli,highway} 19 | rm -rf third_party/libjpeg-turbo 20 | ln -s $srcdir/libjpeg-turbo third_party/libjpeg-turbo 21 | rm -rf build && mkdir build && cd build 22 | cmake .. \ 23 | -G "Ninja" \ 24 | -DCMAKE_INSTALL_PREFIX=/opt \ 25 | -DCMAKE_BUILD_TYPE=Release \ 26 | -DCMAKE_FIND_ROOT_PATH=/opt \ 27 | -DBUILD_SHARED_LIBS=OFF \ 28 | -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ 29 | -DJPEGXL_STATIC=ON \ 30 | -DBUILD_TESTING=OFF \ 31 | -DJPEGXL_EMSCRIPTEN=OFF \ 32 | -DJPEGXL_BUNDLE_LIBPNG=OFF \ 33 | -DJPEGXL_ENABLE_TOOLS=OFF \ 34 | -DJPEGXL_ENABLE_VIEWERS=OFF \ 35 | -DJPEGXL_ENABLE_DOXYGEN=OFF \ 36 | -DJPEGXL_ENABLE_EXAMPLES=OFF \ 37 | -DJPEGXL_ENABLE_MANPAGES=OFF \ 38 | -DJPEGXL_ENABLE_JNI=OFF \ 39 | -DJPEGXL_ENABLE_SKCMS=OFF \ 40 | -DJPEGXL_ENABLE_PLUGINS=OFF \ 41 | -DJPEGXL_ENABLE_DEVTOOLS=OFF \ 42 | -DJPEGXL_ENABLE_BENCHMARK=OFF \ 43 | -DJPEGXL_ENABLE_SJPEG=OFF \ 44 | -DJPEGXL_ENABLE_AVX512=ON \ 45 | -DJPEGXL_ENABLE_AVX512_ZEN4=ON \ 46 | -DJPEGXL_ENABLE_AVX512_SPR=ON \ 47 | -DJPEGXL_FORCE_SYSTEM_LCMS2=ON 48 | cmake --build . 49 | } 50 | 51 | package() { 52 | cd $srcdir/libjxl/build 53 | DESTDIR=$pkgdir cmake --install . 54 | mv $pkgdir/msys64/* $pkgdir 55 | rm -rf $pkgdir/msys64 56 | mv third_party/brotli/libbrotlicommon.a $pkgdir/opt/lib/libbrotlicommon.a 57 | mv third_party/brotli/libbrotlidec.a $pkgdir/opt/lib/libbrotlidec.a 58 | mv third_party/brotli/libbrotlienc.a $pkgdir/opt/lib/libbrotlienc.a 59 | mv third_party/brotli/libbrotlicommon.pc $pkgdir/opt/lib/pkgconfig 60 | mv third_party/brotli/libbrotlidec.pc $pkgdir/opt/lib/pkgconfig 61 | mv third_party/brotli/libbrotlienc.pc $pkgdir/opt/lib/pkgconfig 62 | } 63 | -------------------------------------------------------------------------------- /libmodplug-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libmodplug-dev 2 | pkgver=0.8.9.0 3 | pkgrel=1 4 | pkgdesc='A MOD playing library' 5 | arch=('x86_64') 6 | url="https://modplug-xmms.sourceforge.io/" 7 | license=('custom') 8 | source=("git+https://github.com/Konstanty/libmodplug.git") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/libmodplug 13 | echo "Cflags.private: -DMODPLUG_STATIC" >> libmodplug.pc.in 14 | autoreconf -ivf 15 | ./configure prefix=/opt --disable-shared 16 | make 17 | } 18 | 19 | package() { 20 | cd $srcdir/libmodplug 21 | make DESTDIR=$pkgdir install 22 | } 23 | -------------------------------------------------------------------------------- /libmysofa-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libmysofa-dev 2 | pkgver=1.3.3 3 | pkgrel=1 4 | pkgdesc='Reader for AES SOFA files to get better HRTFs' 5 | arch=('x86_64') 6 | url="https://github.com/hoene/libmysofa/" 7 | makedepends=('zlib-dev') 8 | license=('BSD') 9 | source=() 10 | md5sums=() 11 | 12 | build() { 13 | cd $srcdir 14 | git clone \ 15 | --depth 1 \ 16 | --sparse \ 17 | --filter=tree:0 \ 18 | https://github.com/hoene/libmysofa.git 19 | cd libmysofa 20 | git sparse-checkout set --no-cone '/*' '!tests' 21 | rm -rf build && mkdir build && cd build 22 | cmake .. \ 23 | -G "Ninja" \ 24 | -DCMAKE_INSTALL_PREFIX=/opt \ 25 | -DCMAKE_BUILD_TYPE=Release \ 26 | -DBUILD_SHARED_LIBS=OFF \ 27 | -DBUILD_TESTS=OFF 28 | cmake --build . 29 | } 30 | 31 | package() { 32 | cd $srcdir/libmysofa/build 33 | DESTDIR=$pkgdir cmake --install . 34 | mv $pkgdir/msys64/* $pkgdir 35 | rm -rf $pkgdir/msys64 36 | } 37 | -------------------------------------------------------------------------------- /libogg-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=libogg-dev 3 | pkgver=1.3.5 4 | pkgrel=1 5 | pkgdesc='Ogg bitstream and framing library' 6 | arch=('x86_64') 7 | url="https://www.xiph.org/ogg/" 8 | license=('BSD') 9 | source=("git+https://github.com/xiph/ogg.git") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | cd $srcdir/ogg 14 | ./autogen.sh 15 | ./configure prefix=/opt --disable-shared 16 | make 17 | } 18 | 19 | package() { 20 | cd $srcdir/ogg 21 | make DESTDIR=$pkgdir install 22 | rm -rf $pkgdir/opt/share 23 | } 24 | -------------------------------------------------------------------------------- /libopenmpt-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libopenmpt-dev 2 | pkgver=0.8.0 3 | pkgrel=1 4 | pkgdesc='A cross-platform C++ and C library to decode tracked music files (modules) into a raw PCM audio stream' 5 | arch=('x86_64') 6 | url="https://lib.openmpt.org" 7 | makedepends=('zlib-dev' 'libogg-dev' 'libsdl2-dev' 'libvorbis_aotuv-dev') 8 | license=('BSD') 9 | source=("https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-$pkgver+release.autotools.tar.gz") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | CXXFLAGS+=" -D_WIN32_WINNT=0x0600" 14 | cd $srcdir/libopenmpt-$pkgver+release.autotools 15 | ./configure --prefix=/opt \ 16 | --disable-shared \ 17 | --disable-openmpt123 \ 18 | --disable-examples \ 19 | --disable-tests \ 20 | --disable-doxygen-doc \ 21 | --disable-doxygen-html \ 22 | --without-mpg123 \ 23 | --without-flac 24 | make 25 | } 26 | 27 | package() { 28 | cd $srcdir/libopenmpt-$pkgver+release.autotools 29 | make DESTDIR=$pkgdir install 30 | } 31 | -------------------------------------------------------------------------------- /libplacebo-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=libplacebo-dev 3 | pkgver=7.351.0 4 | pkgrel=1 5 | pkgdesc='A Free Implementation of the Unicode Bidirectional Algorithm' 6 | arch=('x86_64') 7 | url="https://github.com/haasn/libplacebo/" 8 | makedepends=('libdovi-dev' 'lcms2-dev' 'vulkan-dev' 'shaderc-dev' 'spirv-cross-dev' 'xxhash-dev') 9 | license=('LGPL') 10 | source=("git+https://github.com/haasn/libplacebo.git") 11 | md5sums=('SKIP') 12 | 13 | build() { 14 | cd $srcdir/libplacebo 15 | git submodule update --init --recursive 16 | meson setup build \ 17 | --prefix=/opt \ 18 | --buildtype=release \ 19 | --default-library=static \ 20 | --libdir='/opt/lib' \ 21 | -Ddemos=false \ 22 | -Dvulkan-registry="/opt/share/vulkan/registry/vk.xml" 23 | meson compile -C build 24 | } 25 | 26 | package() { 27 | cd $srcdir/libplacebo 28 | DESTDIR=$pkgdir meson install -C build 29 | mv $pkgdir/msys64/* $pkgdir 30 | rm -rf $pkgdir/msys64 31 | } 32 | -------------------------------------------------------------------------------- /libpng-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libpng-dev 2 | pkgver=1.6.48 3 | pkgrel=1 4 | pkgdesc='A collection of routines used to create PNG format graphics' 5 | arch=('x86_64') 6 | url="http://www.libpng.org/pub/png/libpng.html" 7 | makedepends=('zlib') 8 | license=('custom') 9 | source=("git+https://github.com/glennrp/libpng.git") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | cd $srcdir/libpng 14 | rm -rf build && mkdir build && cd build 15 | cmake .. \ 16 | -G "Ninja" \ 17 | -DCMAKE_INSTALL_PREFIX=/opt \ 18 | -DCMAKE_BUILD_TYPE=Release \ 19 | -DPNG_SHARED=OFF \ 20 | -DPNG_TESTS=OFF 21 | cmake --build . 22 | } 23 | 24 | package() { 25 | cd $srcdir/libpng/build 26 | DESTDIR=$pkgdir cmake --install . 27 | mv $pkgdir/msys64/* $pkgdir 28 | rm -rf $pkgdir/msys64 29 | } 30 | -------------------------------------------------------------------------------- /libsamplerate-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libsamplerate-dev 2 | pkgver=0.2.2 3 | pkgrel=1 4 | pkgdesc='An audio sample rate conversion library' 5 | arch=('x86_64') 6 | url="https://libsndfile.github.io/libsamplerate/" 7 | license=('spdx:BSD-2-Clause') 8 | source=("git+https://github.com/libsndfile/libsamplerate.git") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/libsamplerate 13 | rm -rf build && mkdir build && cd build 14 | cmake .. \ 15 | -G "Ninja" \ 16 | -DCMAKE_INSTALL_PREFIX=/opt \ 17 | -DCMAKE_BUILD_TYPE=Release \ 18 | -DBUILD_SHARED_LIBS=OFF \ 19 | -DBUILD_TESTING=OFF \ 20 | -DLIBSAMPLERATE_EXAMPLES=OFF \ 21 | -DCMAKE_POLICY_VERSION_MINIMUM=3.5 22 | cmake --build . 23 | } 24 | 25 | package() { 26 | cd $srcdir/libsamplerate/build 27 | DESTDIR=$pkgdir cmake --install . 28 | mv $pkgdir/msys64/* $pkgdir 29 | rm -rf $pkgdir/msys64 30 | } -------------------------------------------------------------------------------- /libsdl2-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libsdl2-dev 2 | pkgver=3.2.16 3 | pkgrel=1 4 | pkgdesc='Provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D' 5 | arch=('x86_64') 6 | url="https://github.com/libsdl-org/SDL/" 7 | license=('ZLIB') 8 | source=("git+https://github.com/libsdl-org/SDL.git#branch=SDL2") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | eval "${att_args}" 13 | cd $srcdir/SDL 14 | rm -rf build && mkdir build && cd build 15 | cmake .. \ 16 | -G "Ninja" \ 17 | -DCMAKE_INSTALL_PREFIX=/opt \ 18 | -DCMAKE_BUILD_TYPE=Release \ 19 | -DSDL_SHARED=OFF \ 20 | -DSDL_STATIC=ON \ 21 | -DSDL_STATIC_PIC=ON \ 22 | -DSDL_TEST=OFF 23 | cmake --build . 24 | } 25 | 26 | package() { 27 | cd $srcdir/SDL/build 28 | DESTDIR=$pkgdir cmake --install . 29 | mv $pkgdir/msys64/* $pkgdir 30 | rm -rf $pkgdir/msys64 31 | } 32 | -------------------------------------------------------------------------------- /libsdl2-dev/libsdl2-0001-mingw-header.patch: -------------------------------------------------------------------------------- 1 | --- a/src/joystick/windows/SDL_windows_gaming_input.c 2 | +++ b/src/joystick/windows/SDL_windows_gaming_input.c 3 | @@ -34,6 +34,11 @@ 4 | #include 5 | #include 6 | 7 | +#ifdef __MINGW32__ 8 | +#define __FIReference_1_int __FIReference_1_INT32 9 | +#define __FIReference_1_int_get_Value __FIReference_1_INT32_get_Value 10 | +#define __FIReference_1_int_Release __FIReference_1_INT32_Release 11 | +#endif 12 | 13 | struct joystick_hwdata 14 | { 15 | -------------------------------------------------------------------------------- /libsixel/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libsixel-dev 2 | pkgver=1.10.5 3 | pkgrel=1 4 | pkgdesc='Encoder/decoder implementation for DEC SIXEL graphics' 5 | arch=('x86_64') 6 | url="https://github.com/saitoha/sixel" 7 | makedepends=('libjpeg-dev' 'libpng-dev') 8 | license=('BSD') 9 | source=("git+https://github.com/saitoha/libsixel.git") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | cd $srcdir/libsixel 14 | ./configure \ 15 | --prefix=/opt \ 16 | LIBPNG_CFLAGS='-I/opt/include' \ 17 | LIBPNG_LIBS='-L/opt/lib -lpng' \ 18 | --with-jpeg \ 19 | --with-png \ 20 | --disable-img2sixel \ 21 | --disable-sixel2png \ 22 | --disable-python \ 23 | --enable-static \ 24 | --disable-shared 25 | make 26 | } 27 | 28 | package() { 29 | cd $srcdir/libsixel 30 | make DESTDIR=$pkgdir install 31 | } 32 | -------------------------------------------------------------------------------- /libsixel/PKGBUILD-new: -------------------------------------------------------------------------------- 1 | pkgname=libsixel-dev 2 | pkgver=1.10.5 3 | pkgrel=1 4 | pkgdesc='Encoder/decoder implementation for DEC SIXEL graphics' 5 | arch=('x86_64') 6 | url="https://github.com/libsixel/libsixel" 7 | makedepends=('libjpeg-dev' 'libpng-dev' 'zlib-dev') 8 | license=('BSD') 9 | source=("git+https://github.com/libsixel/libsixel") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | cd $srcdir/libsixel 14 | meson setup build --prefix=/opt --buildtype=release --default-library=static --libdir='/opt/lib' \ 15 | -Djpeg=enabled \ 16 | -Dpng=enabled \ 17 | -Dimg2sixel=disabled \ 18 | -Dsixel2png=disabled \ 19 | -Dgdk-pixbuf2=disabled \ 20 | -Dpython=disabled \ 21 | -Dtests=disabled 22 | meson compile -C build 23 | } 24 | 25 | package() { 26 | cd $srcdir/libsixel 27 | DESTDIR=$pkgdir meson install -C build 28 | mv $pkgdir/msys64/* $pkgdir 29 | rm -rf $pkgdir/msys64 30 | } 31 | -------------------------------------------------------------------------------- /libsoxr-dev/0001-libsoxr-fix-pc-file-installation.patch: -------------------------------------------------------------------------------- 1 | --- code/src/CMakeLists.txt 2017-10-31 15:59:05.661945200 -0400 2 | +++ code/src/CMakeLists.txt 2017-10-31 16:00:02.819489500 -0400 3 | @@ -60,13 +60,9 @@ 4 | INSTALL_NAME_DIR ${LIB_INSTALL_DIR} 5 | LINK_INTERFACE_LIBRARIES "" 6 | PUBLIC_HEADER "${PROJECT_NAME}.h") 7 | -if (BUILD_FRAMEWORK) 8 | - set_target_properties (${PROJECT_NAME} PROPERTIES FRAMEWORK TRUE) 9 | -elseif (NOT WIN32) 10 | set (TARGET_PCS ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc) 11 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pc.in ${TARGET_PCS}) 12 | install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig) 13 | -endif () 14 | 15 | 16 | 17 | @@ -84,13 +80,9 @@ 18 | INSTALL_NAME_DIR ${LIB_INSTALL_DIR} 19 | LINK_INTERFACE_LIBRARIES "" 20 | PUBLIC_HEADER "${LSR}.h") 21 | - if (BUILD_FRAMEWORK) 22 | - set_target_properties (${LSR} PROPERTIES FRAMEWORK TRUE) 23 | - elseif (NOT WIN32) 24 | set (TARGET_PCS "${TARGET_PCS} ${CMAKE_CURRENT_BINARY_DIR}/${LSR}.pc") 25 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/${LSR}.pc.in ${CMAKE_CURRENT_BINARY_DIR}/${LSR}.pc) 26 | install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${LSR}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig) 27 | - endif () 28 | endif () 29 | -------------------------------------------------------------------------------- /libsoxr-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libsoxr-dev 2 | pkgver=0.1.3 3 | pkgrel=1 4 | pkgdesc='The SoX Resampler library that aims to give fast and high quality results for any constant resampling ratio' 5 | arch=('x86_64') 6 | url="https://sourceforge.net/p/soxr/wiki/Home/" 7 | license=('LGPL') 8 | source=("git+https://git.code.sf.net/p/soxr/code#commit=945b592b70470e29f917f4de89b4281fbbd540c0" 9 | "0001-libsoxr-fix-pc-file-installation.patch") 10 | md5sums=('SKIP' 'SKIP') 11 | 12 | build() { 13 | eval "${att_args}" 14 | cd $srcdir/code 15 | patch -p1 -i $srcdir/0001-libsoxr-fix-pc-file-installation.patch 16 | rm -rf build && mkdir build && cd build 17 | cmake .. \ 18 | -G "Ninja" \ 19 | -DCMAKE_INSTALL_PREFIX=/opt \ 20 | -DCMAKE_BUILD_TYPE=Release \ 21 | -DBUILD_SHARED_LIBS=OFF \ 22 | -DBUILD_TESTS=OFF \ 23 | -DWITH_OPENMP=OFF \ 24 | -DBUILD_EXAMPLES=OFF \ 25 | -DCMAKE_POLICY_VERSION_MINIMUM=3.5 26 | cmake --build . 27 | } 28 | 29 | package() { 30 | cd $srcdir/code/build 31 | DESTDIR=$pkgdir cmake --install . 32 | mv $pkgdir/msys64/* $pkgdir 33 | rm -rf $pkgdir/msys64 34 | } 35 | -------------------------------------------------------------------------------- /libspeex-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libspeex-dev 2 | pkgver=1.2.1 3 | pkgrel=1 4 | pkgdesc='A free codec for free speech' 5 | arch=('x86_64') 6 | url="https://speex.org/" 7 | license=('BSD') 8 | source=("git+https://github.com/xiph/speex.git#tag=Speex-$pkgver") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/speex 13 | ./autogen.sh 14 | ./configure prefix=/opt --disable-shared 15 | make 16 | } 17 | 18 | package() { 19 | cd $srcdir/speex 20 | make DESTDIR=$pkgdir install 21 | } 22 | -------------------------------------------------------------------------------- /libsrt-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libsrt-dev 2 | pkgver=1.5.4 3 | pkgrel=1 4 | pkgdesc='A transport protocol for ultra low (sub-second) latency live video and audio streaming' 5 | arch=('x86_64') 6 | url="https://www.srtalliance.org/" 7 | makedepends=('openssl-dev' 'zlib-dev' 'zstd-dev') 8 | license=('MPL') 9 | source=("git+https://github.com/Haivision/srt.git") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | eval "${libsrt_flags}" 14 | cd $srcdir/srt 15 | rm -rf build && mkdir build && cd build 16 | cmake .. \ 17 | -G "Ninja" \ 18 | -DCMAKE_INSTALL_PREFIX=/opt \ 19 | -DCMAKE_BUILD_TYPE=Release \ 20 | -DBUILD_SHARED_LIBS=OFF \ 21 | -DENABLE_SHARED=OFF \ 22 | -DENABLE_STATIC=ON \ 23 | -DUSE_STATIC_LIBSTDCXX=ON \ 24 | -DENABLE_CXX_DEPS=OFF \ 25 | -DUSE_ENCLIB=openssl \ 26 | -DENABLE_APPS=OFF \ 27 | -DCMAKE_POLICY_VERSION_MINIMUM=3.5 28 | cmake --build . 29 | } 30 | 31 | package() { 32 | cd $srcdir/srt/build 33 | DESTDIR=$pkgdir cmake --install . 34 | mv $pkgdir/msys64/* $pkgdir 35 | rm -rf $pkgdir/msys64 36 | } 37 | -------------------------------------------------------------------------------- /libssh-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libssh-dev 2 | pkgver=0.11.1 3 | pkgrel=1 4 | pkgdesc='Library for accessing ssh client services through C libraries' 5 | arch=('x86_64') 6 | url="https://www.libssh.org/" 7 | makedepends=('openssl-dev' 'zlib-dev' 'zstd-dev') 8 | license=('LGPL') 9 | options=('strip') 10 | source=("git+https://gitlab.com/libssh/libssh-mirror.git") 11 | md5sums=('SKIP') 12 | 13 | build() { 14 | cd $srcdir/libssh-mirror 15 | rm -rf build && mkdir build && cd build 16 | cmake .. \ 17 | -G "Ninja" \ 18 | -DCMAKE_INSTALL_PREFIX=/opt \ 19 | -DCMAKE_BUILD_TYPE=Release \ 20 | -DCMAKE_FIND_ROOT_PATH=/opt \ 21 | -DBUILD_SHARED_LIBS=OFF \ 22 | -DWITH_ZLIB=ON \ 23 | -DWITH_EXAMPLES=OFF 24 | cmake --build . 25 | } 26 | 27 | package() { 28 | cd $srcdir/libssh-mirror/build 29 | DESTDIR=$pkgdir cmake --install . 30 | mv $pkgdir/msys64/* $pkgdir 31 | rm -rf $pkgdir/msys64 32 | echo "Libs.private: -lwsock32 -liphlpapi -lpthread" >> $pkgdir/opt/lib/pkgconfig/libssh.pc 33 | echo "Cflags.private: -DLIBSSH_STATIC" >> $pkgdir/opt/lib/pkgconfig/libssh.pc 34 | echo "Requires.private: libssl" >> $pkgdir/opt/lib/pkgconfig/libssh.pc 35 | } 36 | -------------------------------------------------------------------------------- /libudfread-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libudfread-dev 2 | pkgver=1.1.2 3 | pkgrel=1 4 | pkgdesc='Library to access Blu-Ray disks for video playback' 5 | arch=('x86_64') 6 | url="https://code.videolan.org/videolan/libudfread" 7 | license=('LGPL') 8 | source=("git+https://code.videolan.org/videolan/libudfread.git") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/libudfread 13 | autoreconf -ivf 14 | ./configure prefix=/opt --disable-shared 15 | make 16 | } 17 | 18 | package() { 19 | cd $srcdir/libudfread 20 | make DESTDIR=$pkgdir install 21 | rm -rf $pkgdir/opt/share $pkgdir/opt/bin 22 | } 23 | -------------------------------------------------------------------------------- /libunibreak-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libunibreak-dev 2 | pkgver=6_1 3 | pkgrel=1 4 | pkgdesc='An implementation of the line breaking and word breaking algorithms' 5 | arch=('x86_64') 6 | url="https://github.com/adah1972/libunibreak/" 7 | license=('BSD') 8 | source=("git+https://github.com/adah1972/libunibreak.git#tag=libunibreak_$pkgver") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/libunibreak 13 | ./autogen.sh 14 | ./configure prefix=/opt --disable-shared 15 | make 16 | } 17 | 18 | package() { 19 | cd $srcdir/libunibreak 20 | make DESTDIR=$pkgdir install 21 | } 22 | -------------------------------------------------------------------------------- /libva-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libva-dev 2 | pkgver=2.22.0 3 | pkgrel=1 4 | pkgdesc='An implementation for VA-API' 5 | arch=('x86_64') 6 | url="https://github.com/intel/libva" 7 | license=('MIT') 8 | source=("git+https://github.com/intel/libva.git") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/libva 13 | sed -i "s/shared_library/library/g" va/meson.build 14 | meson build \ 15 | --prefix=/opt \ 16 | --buildtype=release \ 17 | --default-library=static \ 18 | --libdir='/opt/lib' \ 19 | -Denable_docs=false 20 | meson compile -C build 21 | } 22 | 23 | package() { 24 | cd $srcdir/libva 25 | DESTDIR=$pkgdir meson install -C build 26 | mv $pkgdir/msys64/* $pkgdir 27 | rm -rf $pkgdir/opt/lib/libva*.dll.a 28 | rm -rf $pkgdir/msys64 29 | } 30 | -------------------------------------------------------------------------------- /libvorbis_aotuv-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=libvorbis_aotuv-dev 3 | pkgver=1.3.7 4 | pkgrel=1 5 | pkgdesc='A high quality MPEG Audio Layer III (MP3) encoder' 6 | arch=('x86_64') 7 | url="https://ao-yumi.github.io/aotuv_web/" 8 | makedepends=('libogg-dev') 9 | license=('BSD') 10 | source=("https://github.com/AO-Yumi/vorbis_aotuv/archive/master.zip") 11 | md5sums=('SKIP') 12 | 13 | build() { 14 | cd $srcdir/vorbis_aotuv-master 15 | ./configure prefix=/opt --disable-shared --disable-docs --disable-examples 16 | make 17 | } 18 | 19 | package() { 20 | cd $srcdir/vorbis_aotuv-master 21 | make DESTDIR=$pkgdir install 22 | rm -rf $pkgdir/opt/share 23 | } 24 | -------------------------------------------------------------------------------- /libvpl-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libvpl-dev 2 | pkgver=2023.4.0 3 | pkgrel=1 4 | pkgdesc='the successor to Intel® Media SDK' 5 | arch=('x86_64') 6 | url="https://github.com/intel/libvpl" 7 | license=('MIT') 8 | source=("git+https://github.com/intel/libvpl.git") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/libvpl 13 | rm -rf build && mkdir build && cd build 14 | cmake .. \ 15 | -G "Ninja" \ 16 | -DCMAKE_INSTALL_PREFIX=/opt \ 17 | -DCMAKE_BUILD_TYPE=Release \ 18 | -DBUILD_SHARED_LIBS=OFF \ 19 | -DBUILD_DISPATCHER=ON \ 20 | -DBUILD_DEV=ON \ 21 | -DBUILD_TESTS=OFF \ 22 | -DBUILD_PREVIEW=OFF \ 23 | -DBUILD_TOOLS=OFF \ 24 | -DBUILD_TOOLS_ONEVPL_EXPERIMENTAL=OFF \ 25 | -DINSTALL_EXAMPLE_CODE=OFF 26 | cmake --build . 27 | } 28 | 29 | package() { 30 | cd $srcdir/libvpl/build 31 | DESTDIR=$pkgdir cmake --install . 32 | mv $pkgdir/msys64/* $pkgdir 33 | rm -rf $pkgdir/msys64 34 | rm -rf $pkgdir/opt/etc 35 | rm -rf $pkgdir/opt/share 36 | } 37 | -------------------------------------------------------------------------------- /libvpx-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libvpx-dev 2 | pkgver=1.15.1 3 | pkgrel=1 4 | pkgdesc='WebM VP8/VP9 Codec SDK' 5 | arch=('x86_64') 6 | url="https://chromium.googlesource.com/webm/libvpx/" 7 | license=('BSD') 8 | source=("git+https://chromium.googlesource.com/webm/libvpx.git") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/libvpx 13 | ./configure \ 14 | --extra-cflags='-fno-asynchronous-unwind-tables' \ 15 | --prefix=/opt \ 16 | --disable-examples \ 17 | --disable-docs \ 18 | --disable-tools \ 19 | --disable-unit-tests \ 20 | --disable-decode-perf-tests \ 21 | --disable-encode-perf-tests \ 22 | --as=yasm \ 23 | --enable-vp9-highbitdepth 24 | make 25 | } 26 | 27 | package() { 28 | cd $srcdir/libvpx 29 | make DESTDIR=$pkgdir install 30 | rm -rf $pkgdir/opt/share $pkgdir/opt/bin 31 | } 32 | -------------------------------------------------------------------------------- /libwebp-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libwebp-dev 2 | pkgver=1.5.0 3 | pkgrel=1 4 | pkgdesc='A library to encode and decode images in WebP format' 5 | arch=('x86_64') 6 | url="https://chromium.googlesource.com/webm/libwebp/" 7 | license=('LGPL') 8 | source=("git+https://chromium.googlesource.com/webm/libwebp.git#tag=v${pkgver//_/-}") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | eval "${att_args}" 13 | cd $srcdir/libwebp 14 | rm -rf build && mkdir build && cd build 15 | cmake .. \ 16 | -G "Ninja" \ 17 | -DCMAKE_INSTALL_PREFIX=/opt \ 18 | -DCMAKE_BUILD_TYPE=Release \ 19 | -DBUILD_SHARED_LIBS=OFF 20 | cmake --build . 21 | } 22 | 23 | package() { 24 | cd $srcdir/libwebp/build 25 | DESTDIR=$pkgdir cmake --install . 26 | mv $pkgdir/msys64/* $pkgdir 27 | rm -rf $pkgdir/msys64 28 | } 29 | -------------------------------------------------------------------------------- /libxml2-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libxml2-dev 2 | pkgver=2.14.3 3 | pkgrel=1 4 | pkgdesc='XML parsing library, version 2' 5 | arch=('x86_64') 6 | url="http://www.xmlsoft.org/" 7 | license=('spdx:MIT') 8 | makedepends=('libiconv-dev' 'xz-dev' 'zlib-dev') 9 | source=("git+https://github.com/GNOME/libxml2.git#tag=v2.13.6") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | cd $srcdir/libxml2 14 | rm -rf build && mkdir build && cd build 15 | cmake .. \ 16 | -G "Ninja" \ 17 | -DCMAKE_INSTALL_PREFIX=/opt \ 18 | -DCMAKE_BUILD_TYPE=Release \ 19 | -DBUILD_SHARED_LIBS=OFF \ 20 | -DLIBXML2_WITH_ZLIB=ON \ 21 | -DLIBXML2_WITH_ICONV=ON \ 22 | -DLIBXML2_WITH_LZMA=ON \ 23 | -DLIBXML2_WITH_PYTHON=OFF \ 24 | -DLIBXML2_WITH_TESTS=OFF \ 25 | -DLIBXML2_WITH_TREE=ON \ 26 | -DLIBXML2_WITH_THREADS=ON \ 27 | -DLIBXML2_WITH_THREAD_ALLOC=ON \ 28 | -DLIBXML2_WITH_PROGRAMS=OFF 29 | cmake --build . 30 | } 31 | 32 | package() { 33 | cd $srcdir/libxml2/build 34 | DESTDIR=$pkgdir cmake --install . 35 | mv $pkgdir/msys64/* $pkgdir 36 | rm -rf $pkgdir/msys64 37 | } 38 | -------------------------------------------------------------------------------- /libxvid-dev/0001-remove-dll-option-clang.patch: -------------------------------------------------------------------------------- 1 | --- a/build/generic/configure.in 2 | +++ b/build/generic/configure.in 3 | @@ -324,7 +324,7 @@ 4 | AC_MSG_RESULT([ok]) 5 | STATIC_LIB="xvidcore.\$(STATIC_EXTENSION)" 6 | SHARED_LIB="xvidcore.\$(SHARED_EXTENSION)" 7 | - SPECIFIC_LDFLAGS="-shared -Wl,--dll,--out-implib,\$@.a libxvidcore.def" 8 | + SPECIFIC_LDFLAGS="-shared -Wl,--out-implib,\$@.a libxvidcore.def" 9 | SPECIFIC_CFLAGS="-mno-cygwin" 10 | ;; 11 | darwin*) 12 | --- a/build/generic/configure 13 | +++ a/build/generic/configure 14 | @@ -4394,7 +4394,7 @@ 15 | $as_echo "ok" >&6; } 16 | STATIC_LIB="xvidcore.\$(STATIC_EXTENSION)" 17 | SHARED_LIB="xvidcore.\$(SHARED_EXTENSION)" 18 | - SPECIFIC_LDFLAGS="-shared -Wl,--dll,--out-implib,\$@.a libxvidcore.def" 19 | + SPECIFIC_LDFLAGS="-shared -Wl,--out-implib,\$@.a libxvidcore.def" 20 | SPECIFIC_CFLAGS="-mno-cygwin" 21 | ;; 22 | darwin*) -------------------------------------------------------------------------------- /libxvid-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libxvid-dev 2 | pkgver=1.3.7 3 | pkgrel=1 4 | pkgdesc='XviD is an open source MPEG-4 video codec' 5 | arch=('x86_64') 6 | url="https://www.xvid.com/" 7 | license=('GPL') 8 | source=("https://downloads.xvid.com/downloads/xvidcore-$pkgver.tar.bz2" 9 | "0001-remove-dll-option-clang.patch") 10 | md5sums=('SKIP' 'SKIP') 11 | 12 | build() { 13 | eval "${att_args}" 14 | CFLAGS+=" -std=gnu99" 15 | cd $srcdir/xvidcore 16 | patch -p1 -i $srcdir/0001-remove-dll-option-clang.patch 17 | cd build/generic 18 | ./configure --prefix=/opt --disable-assembly 19 | make 20 | } 21 | 22 | package() { 23 | cd $srcdir/xvidcore/build/generic 24 | make DESTDIR=$pkgdir install 25 | cp ../../src/xvid.h $pkgdir/opt/include 26 | mv $pkgdir/opt/lib/xvidcore.a $pkgdir/opt/lib/libxvidcore.a 27 | rm -rf $pkgdir/opt/bin $pkgdir/opt/lib/xvidcore.dll.a 28 | } 29 | -------------------------------------------------------------------------------- /libzimg-dev/0001-libm_wrapper-define.patch: -------------------------------------------------------------------------------- 1 | From 7aba58f8ca31624c3a8e73fe07c80a4d526c436e Mon Sep 17 00:00:00 2001 2 | From: Christopher Degawa 3 | Date: Sat, 31 Oct 2020 19:05:40 +0000 4 | Subject: [PATCH] libm_wrapper: define __CRT__NO_INLINE before math.h 5 | 6 | it seems *zimg_x_expf and some others pick up the inline function 7 | pointer and labels expf etc as defined instead of linking to a system's 8 | library 9 | --- 10 | src/zimg/common/libm_wrapper.cpp | 3 ++- 11 | 1 file changed, 2 insertions(+), 1 deletion(-) 12 | 13 | diff --git a/src/zimg/common/libm_wrapper.cpp b/src/zimg/common/libm_wrapper.cpp 14 | index d92e08c..01f8a15 100644 15 | --- a/src/zimg/common/libm_wrapper.cpp 16 | +++ b/src/zimg/common/libm_wrapper.cpp 17 | @@ -1,5 +1,6 @@ 18 | -#include 19 | #include "libm_wrapper.h" 20 | +#define __CRT__NO_INLINE 1 21 | +#include 22 | 23 | float (*zimg_x_expf)(float) = expf; 24 | float (*zimg_x_logf)(float) = logf; 25 | -- 26 | 2.25.1 27 | -------------------------------------------------------------------------------- /libzimg-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libzimg-dev 2 | pkgver=3.0.5 3 | pkgrel=1 4 | pkgdesc='Scaling, colorspace conversion, and dithering library' 5 | arch=('x86_64') 6 | url="https://github.com/sekrit-twc/" 7 | license=('LGPL') 8 | source=("git+https://github.com/sekrit-twc/zimg.git" 9 | "git+https://github.com/sekrit-twc/graphengine.git" 10 | "0001-libm_wrapper-define.patch") 11 | md5sums=('SKIP' 'SKIP' 'SKIP') 12 | 13 | build() { 14 | cd $srcdir/zimg 15 | rm -rf graphengine 16 | mv $srcdir/graphengine ./ 17 | patch -p1 -i $srcdir/0001-libm_wrapper-define.patch 18 | ./autogen.sh 19 | ./configure --prefix=/opt --disable-shared --enable-static --with-pic 20 | make 21 | } 22 | 23 | package() { 24 | cd $srcdir/zimg 25 | make DESTDIR=$pkgdir install 26 | } 27 | -------------------------------------------------------------------------------- /libzvbi-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=libzvbi-dev 2 | pkgver=0.2.44 3 | pkgrel=1 4 | pkgdesc='A VBI decoding library which can be used by FFmpeg to decode DVB teletext pages and DVB teletext subtitles' 5 | arch=('x86_64') 6 | url="https://github.com/zapping-vbi/zvbi" 7 | makedepends=('libiconv-dev' 'libpng-dev') 8 | license=('BSD' 'GPL2' 'LGPL2.1' 'MIT') 9 | source=("git+https://github.com/zapping-vbi/zvbi.git") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | cd $srcdir/zvbi 14 | autoreconf -ivf 15 | ./configure --prefix=/opt \ 16 | --disable-shared \ 17 | --enable-static \ 18 | --with-pic \ 19 | --without-doxygen \ 20 | --without-x \ 21 | --disable-dvb \ 22 | --disable-bktr \ 23 | --disable-nls \ 24 | --disable-proxy 25 | make -C src 26 | } 27 | 28 | package() { 29 | cd $srcdir/zvbi 30 | DESTDIR=$pkgdir make -C src install 31 | DESTDIR=$pkgdir make SUBDIRS=. install 32 | } 33 | -------------------------------------------------------------------------------- /luajit/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=(luajit-dev luajit) 3 | pkgver=2.1.0_beta3 4 | pkgrel=1 5 | pkgdesc='Just-in-time compiler and drop-in replacement for Lua 5.1' 6 | arch=('x86_64') 7 | url="https://luajit.org/" 8 | license=('MIT') 9 | source=("https://luajit.org/download/LuaJIT-${pkgver//_/-}.tar.gz") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | cd $srcdir/LuaJIT-${pkgver//_/-} 14 | sed -i 's/-shared/-shared -Wl,--out-implib,luajit-$\{ABIVER\}.dll.a/g' src/Makefile 15 | echo "int _dowildcard = 0;" >> src/luajit.c 16 | make amalg BUILDMODE=dynamic XCFLAGS=-DLUAJIT_ENABLE_GC64 17 | } 18 | 19 | package_luajit-dev() { 20 | cd $srcdir/LuaJIT-${pkgver//_/-} 21 | make DESTDIR=$pkgdir PREFIX=/opt install 22 | rm -rf $pkgdir/opt/bin $pkgdir/opt/share $pkgdir/opt/lib/lua 23 | mv src/lua*.a $pkgdir/opt/lib 24 | } 25 | 26 | package_luajit() { 27 | export PKGEXT='.pkg.tar.xz' 28 | cd $srcdir/LuaJIT-${pkgver//_/-} 29 | mkdir -p $pkgdir/opt/bin 30 | mv src/lua*.exe $pkgdir/opt/bin 31 | mv src/lua*.dll $pkgdir/opt/bin 32 | } 33 | -------------------------------------------------------------------------------- /luajit/PKGBUILD-git: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=(luajit-dev luajit) 3 | pkgver=2.1.0_beta3 4 | pkgrel=1 5 | pkgdesc='Just-in-time compiler and drop-in replacement for Lua 5.1' 6 | arch=('x86_64') 7 | url="https://luajit.org/" 8 | license=('MIT') 9 | source=("git+https://github.com/LuaJIT/LuaJIT") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | cd $srcdir/LuaJIT 14 | echo "int _dowildcard = 0;" >> src/luajit.c 15 | make amalg BUILDMODE=dynamic XCFLAGS=-DLUAJIT_ENABLE_GC64 16 | } 17 | 18 | package_luajit-dev() { 19 | cd $srcdir/LuaJIT 20 | make DESTDIR=$pkgdir PREFIX=/opt install 21 | rm -rf $pkgdir/opt/bin $pkgdir/opt/share $pkgdir/opt/lib/lua 22 | mv src/liblua*.a $pkgdir/opt/lib 23 | } 24 | 25 | package_luajit() { 26 | export PKGEXT='.pkg.tar.xz' 27 | cd $srcdir/LuaJIT 28 | mkdir -p $pkgdir/opt/bin 29 | mv src/lua*.exe $pkgdir/opt/bin 30 | mv src/lua*.dll $pkgdir/opt/bin 31 | } 32 | -------------------------------------------------------------------------------- /luajit2/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=luajit2-dev 3 | pkgver=2.1_20250117 4 | pkgrel=1 5 | pkgdesc='Just-in-time compiler and drop-in replacement for Lua 5.1' 6 | arch=('x86_64') 7 | url="https://luajit.org/" 8 | license=('MIT') 9 | source=("git+https://github.com/openresty/luajit2" 10 | "https://raw.githubusercontent.com/shinchiro/mpv-winbuild-cmake/master/packages/luajit-0001-add-win32-utf-8-filesystem-functions.patch") 11 | md5sums=('SKIP' 'SKIP') 12 | 13 | build() { 14 | cd $srcdir/luajit2 15 | patch -p1 -i $srcdir/luajit-0001-add-win32-utf-8-filesystem-functions.patch 16 | make amalg BUILDMODE=static PREFIX=/opt \ 17 | FILE_T=luajit.exe \ 18 | CFLAGS+=' -D_WIN32_WINNT=0x0602 -DUNICODE' \ 19 | XCFLAGS='-DLUAJIT_ENABLE_LUA52COMPAT' 20 | } 21 | 22 | package() { 23 | cd $srcdir/luajit2 24 | make DESTDIR=$pkgdir PREFIX=/opt \ 25 | FILE_T=luajit.exe \ 26 | CFLAGS+=' -D_WIN32_WINNT=0x0602 -DUNICODE' \ 27 | XCFLAGS='-DLUAJIT_ENABLE_LUA52COMPAT' \ 28 | install 29 | # cp ../../*.pc $pkgdir/opt/lib/pkgconfig 30 | rm -rf $pkgdir/opt/bin $pkgdir/opt/share $pkgdir/opt/lib/lua 31 | } 32 | -------------------------------------------------------------------------------- /luajit2/luajit.pc: -------------------------------------------------------------------------------- 1 | # Package information for LuaJIT to be used by pkg-config. 2 | majver=2 3 | minver=1 4 | relver=0 5 | version=${majver}.${minver}.${relver}-beta3 6 | abiver=5.1 7 | 8 | prefix=/opt 9 | multilib=lib 10 | exec_prefix=${prefix} 11 | libdir=${exec_prefix}/${multilib} 12 | libname=luajit-${abiver} 13 | includedir=${prefix}/include/luajit-${majver}.${minver} 14 | 15 | INSTALL_LMOD=${prefix}/share/lua/${abiver} 16 | INSTALL_CMOD=${prefix}/${multilib}/lua/${abiver} 17 | 18 | Name: LuaJIT 19 | Description: Just-in-time compiler for Lua 20 | URL: http://luajit.org 21 | Version: ${version} 22 | Requires: 23 | Libs: -L${libdir} -l${libname} 24 | Libs.private: -lm -liconv 25 | Cflags: -I${includedir} 26 | -------------------------------------------------------------------------------- /lzo-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=lzo-dev 2 | pkgver=2.10 3 | pkgrel=1 4 | pkgdesc='Portable lossless data compression library' 5 | arch=('x86_64') 6 | url="https://www.oberhumer.com/opensource/lzo" 7 | license=("GPL") 8 | source=("https://fossies.org/linux/misc/lzo-$pkgver.tar.gz") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/lzo-$pkgver 13 | ./configure \ 14 | --prefix=/opt \ 15 | --disable-shared 16 | make 17 | } 18 | 19 | package() { 20 | cd $srcdir/lzo-$pkgver 21 | make DESTDIR=$pkgdir install 22 | } 23 | -------------------------------------------------------------------------------- /mbedtls-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=mbedtls-dev 2 | pkgver=3.6.3.1 3 | pkgrel=1 4 | pkgdesc='Portable cryptographic and SSL/TLS library, aka polarssl' 5 | arch=('x86_64') 6 | url="https://tls.mbed.org/" 7 | license=('Apache') 8 | source=("git+https://github.com/Mbed-TLS/mbedtls.git#tag=v$pkgver") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | eval "${att_args}" 13 | cd $srcdir/mbedtls 14 | rm -rf build && mkdir build && cd build 15 | cmake .. \ 16 | -G "Ninja" \ 17 | -DCMAKE_INSTALL_PREFIX=/opt \ 18 | -DCMAKE_BUILD_TYPE=Release \ 19 | -DENABLE_PROGRAMS=OFF \ 20 | -DENABLE_TESTING=OFF \ 21 | -DGEN_FILES=ON \ 22 | -DUSE_STATIC_MBEDTLS_LIBRARY=ON \ 23 | -DUSE_SHARED_MBEDTLS_LIBRARY=OFF \ 24 | -DINSTALL_MBEDTLS_HEADERS=ON 25 | cmake --build . 26 | } 27 | 28 | package() { 29 | cd $srcdir/mbedtls/build 30 | DESTDIR=$pkgdir cmake --install . 31 | mv $pkgdir/msys64/* $pkgdir 32 | rm -rf $pkgdir/msys64 33 | mkdir -p $pkgdir/opt/lib/pkgconfig 34 | cp ../../../*.pc $pkgdir/opt/lib/pkgconfig 35 | sed -i "s,_ver,$pkgver," $pkgdir/opt/lib/pkgconfig/*.pc 36 | } 37 | -------------------------------------------------------------------------------- /mbedtls-dev/mbedtls.pc: -------------------------------------------------------------------------------- 1 | libdir=/opt/lib 2 | includedir=/opt/include 3 | 4 | Name: mbedtls 5 | Description: mbedtls 6 | Version: _ver 7 | Libs: -L${libdir} -lmbedtls -lmbedx509 -lmbedcrypto 8 | Libs.private: -lbcrypt -lws2_32 9 | Cflags: -I${includedir} 10 | -------------------------------------------------------------------------------- /mcfgthread/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=mcfgthread 3 | pkgver=20240821 4 | pkgrel=1 5 | pkgdesc='MCF thread model' 6 | arch=('x86_64') 7 | url="https://gcc-mcf.lhmouse.com/" 8 | license=('custom') 9 | source=() 10 | md5sums=() 11 | 12 | build() { 13 | cd /d/ucrt64 14 | set -ex 15 | rm -rf ssl 16 | rm -rf share 17 | rm -rf sbin 18 | rm -rf etc 19 | rm -rf libexec 20 | find ./lib -maxdepth 1 -type f -name "*.dll.a" -exec rm -f {} + 21 | find ./bin -type f \( -name "gen*" ! -name "gendef.exe" \) -exec rm -f {} + 22 | rm -rf include/pkg* 23 | rm -rf lib/pkg* 24 | rm -rf lib/cmake* 25 | 26 | #Remove boost 27 | rm bin/b2.exe 28 | rm bin/bjam.exe 29 | rm bin/libboost* 30 | rm -rf include/boost 31 | rm lib/libboost* 32 | 33 | #Remove bzip2 34 | rm bin/bunzip2.exe 35 | rm include/bzlib.h 36 | rm lib/libbz2* 37 | 38 | #Remove ca-certificates 39 | rm bin/update-ca-trust 40 | 41 | #Remove expat 42 | rm bin/libexpat* 43 | rm bin/xmlwf.exe 44 | rm include/expat* 45 | rm lib/libexpat* 46 | 47 | #Remove gcc-fortran 48 | rm bin/*gfortran*.exe 49 | rm -rf lib/**/f951.exe 50 | rm -rf lib/**/finclude 51 | rm -rf lib/**/libcaf_single.a 52 | rm -rf lib/**/libgfortran.a 53 | rm -rf lib/**/libgfortran.spec 54 | 55 | #Remove gcc-objc 56 | rm bin/libobjc* 57 | rm -rf lib/**/cc1obj* 58 | rm -rf lib/**/objc 59 | rm -rf lib/**/libobjc.a 60 | 61 | #Remove libgccgit 62 | rm bin/libgccjit-0.dll 63 | rm -rf include/libgccgit* 64 | 65 | #Remove gdb and gdb-multiarch 66 | rm bin/gdb* 67 | 68 | #Remove gettext 69 | rm bin/autopoint 70 | rm bin/envsubst.exe 71 | rm bin/msg* 72 | rm bin/recode-sr-latin.exe 73 | rm include/autosprintf.h 74 | rm include/gettext-po.h 75 | rm include/libintl.h 76 | rm -rf lib/gettext 77 | rm lib/libasprintf* 78 | rm lib/libgettext* 79 | rm lib/libintl* 80 | 81 | #Remove iconv 82 | rm bin/iconv.exe 83 | 84 | #Remove icu 85 | rm bin/*icu* 86 | rm bin/derb.exe 87 | rm bin/makeconv.exe 88 | rm bin/uconv.exe 89 | rm -rf include/unicode 90 | rm -rf lib/*icu* 91 | 92 | #Remove libffi 93 | rm bin/libffi* 94 | rm include/ffi* 95 | rm lib/libffi* 96 | 97 | #Remove libiconv 98 | rm include/iconv.h 99 | rm include/libcharset.h 100 | rm include/localcharset.h 101 | rm lib/libcharset* 102 | rm lib/libiconv* 103 | 104 | #Remove libmangle-git 105 | rm include/libmangle* 106 | rm lib/libmangle* 107 | 108 | #Remove libsystre 109 | rm bin/libsystre* 110 | rm include/regex.h 111 | rm lib/libgnurx* 112 | rm lib/libregex* 113 | rm lib/libsystre* 114 | 115 | #Remove libtasn1 116 | rm bin/asn1* 117 | rm bin/libtasn1* 118 | rm include/libtasn1* 119 | rm lib/libtasn1* 120 | 121 | #Remove libtre-git 122 | rm bin/libtre* 123 | rm bin/x86_64-w64-mingw32-agrep.exe 124 | rm -rf include/tre 125 | rm lib/libtre* 126 | 127 | #Remove lua and tolua 128 | rm bin/*lua* 129 | rm include/lauxlib.h 130 | rm -rf include/*lua* 131 | rm -rf lib/*lua* 132 | 133 | #Remove mpdecimal 134 | rm bin/libmpdec* 135 | rm include/decimal.hh 136 | rm include/mpdecimal.h 137 | rm lib/libmpdec* 138 | 139 | #Remove ncurses 140 | rm bin/ncursesw6-config 141 | rm bin/x86_64-w64-mingw32-captoinfo.exe 142 | rm bin/x86_64-w64-mingw32-clear.exe 143 | rm bin/x86_64-w64-mingw32-infocmp.exe 144 | rm bin/x86_64-w64-mingw32-infotocap.exe 145 | rm bin/x86_64-w64-mingw32-reset.exe 146 | rm bin/x86_64-w64-mingw32-tabs.exe 147 | rm bin/x86_64-w64-mingw32-tic.exe 148 | rm bin/x86_64-w64-mingw32-toe.exe 149 | rm bin/x86_64-w64-mingw32-tput.exe 150 | rm bin/x86_64-w64-mingw32-tset.exe 151 | rm -rf include/ncur* 152 | rm lib/libform* 153 | rm lib/libmenu* 154 | rm lib/libncur* 155 | rm lib/libpanel* 156 | rm -rf lib/terminfo 157 | 158 | #Remove openssl 159 | rm bin/libcrypto* 160 | rm bin/libssl* 161 | rm bin/openssl.exe 162 | rm -rf include/openssl 163 | rm -rf lib/engines* 164 | rm lib/libcrypto* 165 | rm lib/libssl* 166 | 167 | #Remove p11-kit 168 | rm bin/*p11* 169 | rm bin/trust.exe 170 | rm -rf lib/*p11* 171 | rm -rf lib/pkcs11* 172 | rm -rf include/p11* 173 | 174 | #Remove pcre2 175 | rm bin/*pcre* 176 | rm include/pcre2* 177 | rm lib/*pcre* 178 | 179 | #Remove python 180 | rm bin/2to3* 181 | rm bin/idle* 182 | rm bin/libpython* 183 | rm bin/py* 184 | rm -rf include/python* 185 | rm -rf lib/python* 186 | 187 | #Remove readline 188 | rm bin/libhistory8.dll 189 | rm bin/libreadline* 190 | rm -rf include/readline 191 | rm lib/libhistory.a 192 | rm lib/libreadline.a 193 | 194 | #Remove sqlite3 195 | rm bin/dbhash.exe 196 | rm bin/*sql* 197 | rm include/*sql* 198 | rm -rf lib/*sql* 199 | 200 | #Remove tcl 201 | rm bin/tcl* 202 | rm include/itcl* 203 | rm include/*Stubs* 204 | rm -rf include/tcl* 205 | rm -rf include/tdb* 206 | rm -rf lib/dde* 207 | rm -rf lib/*tcl* 208 | rm -rf lib/reg* 209 | rm -rf lib/tdb* 210 | rm -rf lib/thread* 211 | 212 | #Remove termcap 213 | rm bin/libtermcap* 214 | rm include/termcap.h 215 | rm lib/libtermcap* 216 | 217 | #Remove tk 218 | rm bin/tk* 219 | rm bin/wish* 220 | rm -rf include/tk* 221 | rm -rf include/X11 222 | rm -rf lib/*tk* 223 | 224 | #Remove wineditline 225 | rm bin/edit* 226 | rm -rf include/editline 227 | rm lib/libedit* 228 | 229 | #Remove xxhash 230 | rm bin/*xxh*.exe 231 | rm include/xxh* 232 | 233 | #Remove xz 234 | rm bin/*lzma* 235 | rm bin/*xz* 236 | rm -rf include/lzma* 237 | rm lib/liblzma* 238 | 239 | #Remove zstd 240 | rm bin/*zstd*.exe 241 | rm include/zdict.h 242 | rm include/zstd* 243 | rm lib/libzstd* 244 | } 245 | 246 | package() { 247 | export PKGEXT='.pkg.tar.xz' 248 | mkdir -p $pkgdir/opt/bin 249 | cp /d/ucrt64/bin/libmcfgthread* $pkgdir/opt/bin/ 250 | strip $pkgdir/opt/bin/* 251 | } 252 | -------------------------------------------------------------------------------- /mpv-config/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=config 2 | pkgver=1.0 3 | pkgrel=1 4 | pkgdesc='MPV config files' 5 | arch=('x86_64') 6 | url="https://github.com/eko5624/mpv-config/" 7 | license=('custom') 8 | source=(git+"https://github.com/eko5624/mpv-config") 9 | options=(!strip) 10 | md5sums=('SKIP') 11 | 12 | package() { 13 | export PKGEXT='.pkg.tar.xz' 14 | mkdir -p $pkgdir/opt/mpv 15 | cd $srcdir/mpv-config 16 | mv portable_config $pkgdir/opt/mpv 17 | mv installer $pkgdir/opt/mpv 18 | mv d3dcompiler_43.dll $pkgdir/opt/mpv 19 | } 20 | -------------------------------------------------------------------------------- /mpv/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=(libmpv-git mpv-git) 3 | pkgver=0.40.0 4 | pkgrel=1 5 | pkgdesc='a free, open source, and cross-platform media player' 6 | arch=('x86_64') 7 | url='https://mpv.io/' 8 | makedepends=("angle-headers-dev" 9 | "ffmpeg-dev" 10 | "mujs-dev" 11 | "rubberband-dev" 12 | "luajit2-dev" 13 | "freetype2-dev" 14 | "fribidi-dev" 15 | "harfbuzz-dev" 16 | "libarchive-dev" 17 | "libass-dev" 18 | "libbluray-dev" 19 | "libdvdnav-dev" 20 | "libjpeg-dev" 21 | "libplacebo-dev" 22 | "libpng-dev" 23 | "libsdl2-dev" 24 | "libsixel-dev" 25 | "lcms2-dev" 26 | "shaderc-dev" 27 | "spirv-cross-dev" 28 | "vapoursynth-dev" 29 | "vulkan-dev" 30 | "zlib-dev") 31 | license=('GPL3') 32 | source=("git+https://github.com/mpv-player/mpv.git") 33 | md5sums=('SKIP') 34 | 35 | build() { 36 | eval "${mpv_cflags}" 37 | eval "${mpv_ldflags}" 38 | cd $srcdir/mpv 39 | meson setup build \ 40 | --buildtype=release \ 41 | --prefix=/opt \ 42 | --libdir='/opt/lib' \ 43 | -Dlibmpv=true \ 44 | -Dlua=enabled \ 45 | -Dopenal=enabled \ 46 | -Drubberband=enabled \ 47 | -Dsdl2=enabled \ 48 | -Dlibbluray=enabled \ 49 | -Ddvdnav=enabled \ 50 | -Degl-angle=enabled \ 51 | -Dlibarchive=enabled 52 | 53 | meson compile -C build 54 | 55 | # get latest commit sha 56 | short_sha=$(git rev-parse --short HEAD) 57 | echo $short_sha > SHORT_SHA 58 | } 59 | 60 | package_libmpv-git() { 61 | export PKGEXT='.pkg.tar.xz' 62 | mkdir -p $pkgdir/opt/libmpv/include/mpv 63 | cd $srcdir/mpv/build 64 | strip -s libmpv-2.dll 65 | mv libmpv-2.dll $pkgdir/opt/libmpv 66 | mv libmpv.dll.a $pkgdir/opt/libmpv 67 | mv ../include/mpv/client.h $pkgdir/opt/libmpv/include/mpv 68 | mv ../include/mpv/stream_cb.h $pkgdir/opt/libmpv/include/mpv 69 | mv ../include/mpv/render.h $pkgdir/opt/libmpv/include/mpv 70 | mv ../include/mpv/render_gl.h $pkgdir/opt/libmpv/include/mpv 71 | } 72 | 73 | package_mpv-git() { 74 | export PKGEXT='.pkg.tar.xz' 75 | mkdir -p $pkgdir/opt/mpv 76 | cd $srcdir/mpv/build 77 | mv mpv.exe $pkgdir/opt/mpv 78 | mv mpv.com $pkgdir/opt/mpv 79 | strip -s $pkgdir/opt/mpv/mpv.* 80 | mv ../SHORT_SHA $pkgdir/opt/mpv 81 | } 82 | -------------------------------------------------------------------------------- /msys2-config/makepkg-clang: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | /usr/bin/makepkg --config "/etc/makepkg_clang.conf" "$@" 3 | -------------------------------------------------------------------------------- /msys2-config/makepkg-gcc: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | /usr/bin/makepkg --config "/etc/makepkg_gcc.conf" "$@" 3 | -------------------------------------------------------------------------------- /msys2-config/makepkg_clang.conf: -------------------------------------------------------------------------------- 1 | # 2 | # /etc/makepkg_own.conf 3 | # 4 | 5 | ######################################################################### 6 | # SOURCE ACQUISITION 7 | ######################################################################### 8 | # 9 | #-- The download utilities that makepkg should use to acquire sources 10 | # Format: 'protocol::agent' 11 | DLAGENTS=('file::/usr/bin/curl -gqC - -o %o %u' 12 | 'ftp::/usr/bin/curl -gqfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u' 13 | 'http::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' 14 | 'https::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' 15 | 'rsync::/usr/bin/rsync --no-motd -z %u %o' 16 | 'scp::/usr/bin/scp -C %u %o') 17 | 18 | # Other common tools: 19 | # /usr/bin/snarf 20 | # /usr/bin/lftpget -c 21 | # /usr/bin/wget 22 | 23 | #-- The package required by makepkg to download VCS sources 24 | # Format: 'protocol::package' 25 | VCSCLIENTS=('bzr::bzr' 26 | 'fossil::fossil' 27 | 'git::git' 28 | 'hg::mercurial' 29 | 'svn::subversion') 30 | 31 | ######################################################################### 32 | # ARCHITECTURE, COMPILE FLAGS 33 | ######################################################################### 34 | # 35 | 36 | CARCH="x86_64" 37 | CHOST="x86_64-pc-msys" 38 | CC="clang" 39 | CXX="clang++" 40 | export C_INCLUDE_PATH="/opt/include:/opt/include/vapoursynth" 41 | export CPLUS_INCLUDE_PATH="/opt/include:/opt/include/vapoursynth" 42 | export LIBRARY_PATH="/opt/lib" 43 | PATH="/d/ucrt64/bin:/usr/bin:/c/Windows/System32:/opt/bin:$pypath:$pypath/Scripts:/d/.rustup/toolchains/stable-x86_64-pc-windows-gnu/bin" 44 | PKG_CONFIG_PATH="/opt/lib/pkgconfig" 45 | 46 | vapoursynth_generate_lib="dlltool -m i386:x86-64 -d VSScript.def -l VSScript.lib" 47 | vapoursynth_generate_lib+="; dlltool -m i386:x86-64 -d VapourSynth.def -l VapourSynth.lib" 48 | vapoursynth_pkgconfig_libs="-lVapourSynth -Wl,-delayload=VapourSynth.dll" 49 | vapoursynth_script_pkgconfig_libs="-lVSScript -Wl,-delayload=VSScript.dll" 50 | vsscript_lib="VSScript.lib" 51 | vapoursynth_lib="VapourSynth.lib" 52 | ffmpeg_extra_cflags="-Wno-error=int-conversion" 53 | ffmpeg_extra_libs="-lc++" 54 | ffmpeg_cuda_llvm=" --enable-cuda-llvm" 55 | mpv_cflags="export CFLAGS+=' -Wno-unused-command-line-argument'" 56 | mpv_ldflags="export LDFLAGS+=' -lc++'" 57 | 58 | #-- Make Flags: change this for DistCC/SMP systems 59 | MAKEFLAGS="-j$(($(nproc)+1))" 60 | 61 | ######################################################################### 62 | # BUILD ENVIRONMENT 63 | ######################################################################### 64 | # 65 | # Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign) 66 | # A negated environment option will do the opposite of the comments below. 67 | # 68 | #-- distcc: Use the Distributed C/C++/ObjC compiler 69 | #-- color: Colorize output messages 70 | #-- ccache: Use ccache to cache compilation 71 | #-- check: Run the check() function if present in the PKGBUILD 72 | #-- sign: Generate PGP signature file 73 | # 74 | BUILDENV=(!distcc color !ccache check !sign) 75 | # 76 | #-- If using DistCC, your MAKEFLAGS will also need modification. In addition, 77 | #-- specify a space-delimited list of hosts running in the DistCC cluster. 78 | #DISTCC_HOSTS="" 79 | # 80 | #-- Specify a directory for package building. 81 | #BUILDDIR=/tmp/makepkg 82 | 83 | ######################################################################### 84 | # GLOBAL PACKAGE OPTIONS 85 | # These are default values for the options=() settings 86 | ######################################################################### 87 | # 88 | # Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto) 89 | # A negated option will do the opposite of the comments below. 90 | # 91 | #-- strip: Strip symbols from binaries/libraries 92 | #-- docs: Save doc directories specified by DOC_DIRS 93 | #-- libtool: Leave libtool (.la) files in packages 94 | #-- staticlibs: Leave static library (.a) files in packages 95 | #-- emptydirs: Leave empty directories in packages 96 | #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip 97 | #-- purge: Remove files specified by PURGE_TARGETS 98 | #-- debug: Add debugging flags as specified in DEBUG_* variables 99 | #-- lto: Add compile flags for building with link time optimization 100 | # 101 | OPTIONS=(strip docs !libtool staticlibs emptydirs zipman purge !debug !lto) 102 | 103 | #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512 104 | INTEGRITY_CHECK=(sha256) 105 | #-- Options to be used when stripping binaries. See `man strip' for details. 106 | STRIP_BINARIES="--strip-all" 107 | #-- Options to be used when stripping shared libraries. See `man strip' for details. 108 | STRIP_SHARED="--strip-unneeded" 109 | #-- Options to be used when stripping static libraries. See `man strip' for details. 110 | STRIP_STATIC="--strip-debug" 111 | #-- Manual (man and info) directories to compress (if zipman is specified) 112 | MAN_DIRS=("${MINGW_PREFIX#/}"{{,/local}{,/share},/opt/*}/{man,info}) 113 | #-- Doc directories to remove (if !docs is specified) 114 | DOC_DIRS=("${MINGW_PREFIX#/}"/{,local/}{,share/}{doc,gtk-doc}) 115 | #-- Files to be removed from all packages (if purge is specified) 116 | PURGE_TARGETS=("${MINGW_PREFIX#/}"/{,share}/info/dir .packlist *.pod) 117 | 118 | ######################################################################### 119 | # PACKAGE OUTPUT 120 | ######################################################################### 121 | # 122 | # Default: put built package and cached source in build directory 123 | # 124 | #-- Destination: specify a fixed directory where all packages will be placed 125 | #PKGDEST=/var/packages-mingw64 126 | #-- Source cache: specify a fixed directory where source files will be cached 127 | #SRCDEST=/var/sources 128 | #-- Source packages: specify a fixed directory where all src packages will be placed 129 | #SRCPKGDEST=/var/srcpackages-mingw64 130 | #-- Log files: specify a fixed directory where all log files will be placed 131 | #LOGDEST=/var/makepkglogs 132 | #-- Packager: name/email of the person or organization building packages 133 | #PACKAGER="John Doe " 134 | #-- Specify a key to use for package signing 135 | #GPGKEY="" 136 | 137 | ######################################################################### 138 | # COMPRESSION DEFAULTS 139 | ######################################################################### 140 | # 141 | COMPRESSGZ=(gzip -c -f -n) 142 | COMPRESSBZ2=(bzip2 -c -f) 143 | COMPRESSXZ=(xz -c -z -T0 -) 144 | COMPRESSZST=(zstd -c -T0 --ultra -20 -) 145 | COMPRESSLRZ=(lrzip -q) 146 | COMPRESSLZO=(lzop -q) 147 | COMPRESSZ=(compress -c -f) 148 | COMPRESSLZ4=(lz4 -q) 149 | COMPRESSLZ=(lzip -c -f) 150 | 151 | ######################################################################### 152 | # EXTENSION DEFAULTS 153 | ######################################################################### 154 | # 155 | PKGEXT='.pkg.tar.zst' 156 | SRCEXT='.src.tar.zst' 157 | 158 | ######################################################################### 159 | # OTHER 160 | ######################################################################### 161 | # 162 | #-- Command used to run pacman as root, instead of trying sudo and su 163 | PACMAN_AUTH=() 164 | -------------------------------------------------------------------------------- /msys2-config/makepkg_gcc.conf: -------------------------------------------------------------------------------- 1 | # 2 | # /etc/makepkg_own.conf 3 | # 4 | 5 | ######################################################################### 6 | # SOURCE ACQUISITION 7 | ######################################################################### 8 | # 9 | #-- The download utilities that makepkg should use to acquire sources 10 | # Format: 'protocol::agent' 11 | DLAGENTS=('file::/usr/bin/curl -gqC - -o %o %u' 12 | 'ftp::/usr/bin/curl -gqfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u' 13 | 'http::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' 14 | 'https::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' 15 | 'rsync::/usr/bin/rsync --no-motd -z %u %o' 16 | 'scp::/usr/bin/scp -C %u %o') 17 | 18 | # Other common tools: 19 | # /usr/bin/snarf 20 | # /usr/bin/lftpget -c 21 | # /usr/bin/wget 22 | 23 | #-- The package required by makepkg to download VCS sources 24 | # Format: 'protocol::package' 25 | VCSCLIENTS=('bzr::bzr' 26 | 'fossil::fossil' 27 | 'git::git' 28 | 'hg::mercurial' 29 | 'svn::subversion') 30 | 31 | ######################################################################### 32 | # ARCHITECTURE, COMPILE FLAGS 33 | ######################################################################### 34 | # 35 | 36 | CARCH="x86_64" 37 | CHOST="x86_64-pc-msys" 38 | CC="gcc" 39 | CXX="g++" 40 | export C_INCLUDE_PATH="/opt/include:/opt/include/vapoursynth" 41 | export CPLUS_INCLUDE_PATH="/opt/include:/opt/include/vapoursynth" 42 | export LIBRARY_PATH="/opt/lib" 43 | PATH="/d/ucrt64/bin:/usr/bin:/c/Windows/System32:/opt/bin:$pypath:$pypath/Scripts:/d/.rustup/toolchains/stable-x86_64-pc-windows-gnu/bin" 44 | PKG_CONFIG_PATH="/opt/lib/pkgconfig" 45 | 46 | att_args="CFLAGS+=' -masm=att'; CXXFLAGS+=' -masm=att'" 47 | libjxl_unaligned_vector="export CXXFLAGS+=' -Wa,-muse-unaligned-vector-move'" 48 | libjxl_unaligned_vector+="; export CFLAGS+=' -Wa,-muse-unaligned-vector-move'" 49 | libopenmpt_cxxflags="export CXXFLAGS+=' -D_WIN32_WINNT=0x0600'" 50 | libsrt_flags="export CXXFLAGS+=' -static-libgcc -static-libstdc++'" 51 | libsrt_flags+="; export CFLAGS+=' -static-libgcc -static-libstdc++'" 52 | vapoursynth_generate_lib="dlltool -d VSScript.def -y libvsscript.a" 53 | vapoursynth_generate_lib+="; dlltool -d VapourSynth.def -y libvapoursynth.a" 54 | vapoursynth_pkgconfig_libs="-lvapoursynth" 55 | vapoursynth_script_pkgconfig_libs="-lvsscript" 56 | vsscript_lib="libvsscript.a" 57 | vapoursynth_lib="libvapoursynth.a" 58 | ffmpeg_extra_cflags="-Wno-error=incompatible-pointer-types" 59 | ffmpeg_extra_libs="-lstdc++ -lssp" 60 | ffmpeg_extra_ldflags="-static-libgcc" 61 | mpv_ldflags="export LDFLAGS+=' -Wl,--allow-multiple-definition -static -lstdc++ -lssp'" 62 | 63 | #-- Make Flags: change this for DistCC/SMP systems 64 | MAKEFLAGS="-j$(($(nproc)+1))" 65 | 66 | ######################################################################### 67 | # BUILD ENVIRONMENT 68 | ######################################################################### 69 | # 70 | # Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign) 71 | # A negated environment option will do the opposite of the comments below. 72 | # 73 | #-- distcc: Use the Distributed C/C++/ObjC compiler 74 | #-- color: Colorize output messages 75 | #-- ccache: Use ccache to cache compilation 76 | #-- check: Run the check() function if present in the PKGBUILD 77 | #-- sign: Generate PGP signature file 78 | # 79 | BUILDENV=(!distcc color !ccache check !sign) 80 | # 81 | #-- If using DistCC, your MAKEFLAGS will also need modification. In addition, 82 | #-- specify a space-delimited list of hosts running in the DistCC cluster. 83 | #DISTCC_HOSTS="" 84 | # 85 | #-- Specify a directory for package building. 86 | #BUILDDIR=/tmp/makepkg 87 | 88 | ######################################################################### 89 | # GLOBAL PACKAGE OPTIONS 90 | # These are default values for the options=() settings 91 | ######################################################################### 92 | # 93 | # Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto) 94 | # A negated option will do the opposite of the comments below. 95 | # 96 | #-- strip: Strip symbols from binaries/libraries 97 | #-- docs: Save doc directories specified by DOC_DIRS 98 | #-- libtool: Leave libtool (.la) files in packages 99 | #-- staticlibs: Leave static library (.a) files in packages 100 | #-- emptydirs: Leave empty directories in packages 101 | #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip 102 | #-- purge: Remove files specified by PURGE_TARGETS 103 | #-- debug: Add debugging flags as specified in DEBUG_* variables 104 | #-- lto: Add compile flags for building with link time optimization 105 | # 106 | OPTIONS=(strip docs !libtool staticlibs emptydirs zipman purge !debug !lto) 107 | 108 | #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512 109 | INTEGRITY_CHECK=(sha256) 110 | #-- Options to be used when stripping binaries. See `man strip' for details. 111 | STRIP_BINARIES="--strip-all" 112 | #-- Options to be used when stripping shared libraries. See `man strip' for details. 113 | STRIP_SHARED="--strip-unneeded" 114 | #-- Options to be used when stripping static libraries. See `man strip' for details. 115 | STRIP_STATIC="--strip-debug" 116 | #-- Manual (man and info) directories to compress (if zipman is specified) 117 | MAN_DIRS=("${MINGW_PREFIX#/}"{{,/local}{,/share},/opt/*}/{man,info}) 118 | #-- Doc directories to remove (if !docs is specified) 119 | DOC_DIRS=("${MINGW_PREFIX#/}"/{,local/}{,share/}{doc,gtk-doc}) 120 | #-- Files to be removed from all packages (if purge is specified) 121 | PURGE_TARGETS=("${MINGW_PREFIX#/}"/{,share}/info/dir .packlist *.pod) 122 | 123 | ######################################################################### 124 | # PACKAGE OUTPUT 125 | ######################################################################### 126 | # 127 | # Default: put built package and cached source in build directory 128 | # 129 | #-- Destination: specify a fixed directory where all packages will be placed 130 | #PKGDEST=/var/packages-mingw64 131 | #-- Source cache: specify a fixed directory where source files will be cached 132 | #SRCDEST=/var/sources 133 | #-- Source packages: specify a fixed directory where all src packages will be placed 134 | #SRCPKGDEST=/var/srcpackages-mingw64 135 | #-- Log files: specify a fixed directory where all log files will be placed 136 | #LOGDEST=/var/makepkglogs 137 | #-- Packager: name/email of the person or organization building packages 138 | #PACKAGER="John Doe " 139 | #-- Specify a key to use for package signing 140 | #GPGKEY="" 141 | 142 | ######################################################################### 143 | # COMPRESSION DEFAULTS 144 | ######################################################################### 145 | # 146 | COMPRESSGZ=(gzip -c -f -n) 147 | COMPRESSBZ2=(bzip2 -c -f) 148 | COMPRESSXZ=(xz -c -z -T0 -) 149 | COMPRESSZST=(zstd -c -T0 --ultra -20 -) 150 | COMPRESSLRZ=(lrzip -q) 151 | COMPRESSLZO=(lzop -q) 152 | COMPRESSZ=(compress -c -f) 153 | COMPRESSLZ4=(lz4 -q) 154 | COMPRESSLZ=(lzip -c -f) 155 | 156 | ######################################################################### 157 | # EXTENSION DEFAULTS 158 | ######################################################################### 159 | # 160 | PKGEXT='.pkg.tar.zst' 161 | SRCEXT='.src.tar.zst' 162 | 163 | ######################################################################### 164 | # OTHER 165 | ######################################################################### 166 | # 167 | #-- Command used to run pacman as root, instead of trying sudo and su 168 | PACMAN_AUTH=() -------------------------------------------------------------------------------- /msys2-config/msys2.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | setlocal 3 | IF NOT DEFINED MSYS2_PATH_TYPE set MSYS2_PATH_TYPE=strict 4 | IF NOT DEFINED MSYSTEM set MSYSTEM=UCRT64 5 | set CHERE_INVOKING=1 6 | D:\msys64\usr\bin\bash.exe -leo pipefail %* 7 | -------------------------------------------------------------------------------- /mujs/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=mujs-dev 2 | pkgver=1.3.6 3 | pkgrel=1 4 | pkgdesc='An embeddable Javascript interpreter in C' 5 | arch=('x86_64') 6 | url="http://mujs.com/" 7 | license=('ISC') 8 | source=("git+https://github.com/ccxvii/mujs.git" 9 | "https://raw.githubusercontent.com/shinchiro/mpv-winbuild-cmake/master/packages/mujs-0001-add-exe-to-binary-name.patch") 10 | md5sums=('SKIP' 'SKIP') 11 | 12 | build() { 13 | cd $srcdir/mujs 14 | patch -p1 -i $srcdir/mujs-0001-add-exe-to-binary-name.patch 15 | make release 16 | } 17 | 18 | package() { 19 | cd $srcdir/mujs 20 | make DESTDIR=$pkgdir prefix=/opt install 21 | } 22 | -------------------------------------------------------------------------------- /openal-soft-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=openal-soft-dev 2 | pkgver=1.24.3 3 | pkgrel=1 4 | pkgdesc='Software implementation of the OpenAL 3D audio API' 5 | arch=('x86_64') 6 | url="https://github.com/kcat/openal-soft/" 7 | license=('GPL') 8 | source=("git+https://github.com/kcat/openal-soft") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/openal-soft 13 | rm -rf build && mkdir build && cd build 14 | cmake .. \ 15 | -G "Ninja" \ 16 | -DCMAKE_INSTALL_PREFIX=/opt \ 17 | -DCMAKE_BUILD_TYPE=Release \ 18 | -DLIBTYPE=STATIC \ 19 | -DALSOFT_UTILS=OFF \ 20 | -DALSOFT_EXAMPLES=OFF \ 21 | -DALSOFT_TESTS=OFF \ 22 | -DALSOFT_BACKEND_PIPEWIRE=OFF 23 | cmake --build . 24 | } 25 | 26 | package() { 27 | cd $srcdir/openal-soft/build 28 | echo "Libs.private: -lole32 -luuid -lshlwapi" >> openal.pc 29 | DESTDIR=$pkgdir cmake --install . 30 | mv $pkgdir/msys64/* $pkgdir 31 | rm -rf $pkgdir/msys64 32 | } 33 | -------------------------------------------------------------------------------- /openssl-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=openssl-dev 2 | pkgver=3.5.0 3 | pkgrel=1 4 | pkgdesc='The Open Source toolkit for Secure Sockets Layer and Transport Layer Security' 5 | arch=('x86_64') 6 | url="https://www.openssl.org/" 7 | makedepends=('zlib-dev' 'zstd-dev') 8 | license=('spdx:Apache-2.0') 9 | source=("git+https://github.com/openssl/openssl.git#tag=openssl-$pkgver") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | eval "${att_args}" 14 | cd $srcdir/openssl 15 | ./Configure \ 16 | --prefix=/opt \ 17 | --libdir=lib \ 18 | --release \ 19 | no-autoload-config \ 20 | no-ssl3-method \ 21 | no-whirlpool \ 22 | no-filenames \ 23 | no-camellia \ 24 | enable-zstd \ 25 | no-capieng \ 26 | no-shared \ 27 | no-rmd160 \ 28 | no-module \ 29 | no-legacy \ 30 | no-tests \ 31 | mingw64 \ 32 | threads \ 33 | no-docs \ 34 | no-apps \ 35 | no-ocsp \ 36 | no-ssl3 \ 37 | no-cmac \ 38 | no-mdc2 \ 39 | no-idea \ 40 | no-cast \ 41 | no-srtp \ 42 | no-seed \ 43 | no-aria \ 44 | no-err \ 45 | no-dso \ 46 | no-dsa \ 47 | no-srp \ 48 | no-rc2 \ 49 | no-rc4 \ 50 | no-sm2 \ 51 | no-sm3 \ 52 | no-sm4 \ 53 | no-md4 \ 54 | no-cms \ 55 | no-cmp \ 56 | no-dh \ 57 | no-bf \ 58 | zlib \ 59 | enable-ec_nistp_64_gcc_128 60 | make build_sw 61 | } 62 | 63 | package() { 64 | cd $srcdir/openssl 65 | make DESTDIR=$pkgdir install_sw 66 | } -------------------------------------------------------------------------------- /opus-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=opus-dev 2 | pkgver=1.5.2 3 | pkgrel=1 4 | pkgdesc="Totally open, royalty-free, highly versatile audio codec" 5 | arch=('x86_64') 6 | url="https://github.com/xiph/opus" 7 | license=('BSD') 8 | source=("git+https://github.com/xiph/opus.git") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/opus 13 | rm -rf build && mkdir build && cd build 14 | cmake .. \ 15 | -G "Ninja" \ 16 | -DCMAKE_INSTALL_PREFIX=/opt \ 17 | -DCMAKE_BUILD_TYPE=Release \ 18 | -DOPUS_STACK_PROTECTOR=OFF \ 19 | -DOPUS_BUILD_PROGRAMS=OFF \ 20 | -DBUILD_TESTING=OFF \ 21 | -DCMAKE_C_FLAGS='-D_FORTIFY_SOURCE=0' 22 | cmake --build . 23 | } 24 | 25 | package() { 26 | cd $srcdir/opus/build 27 | DESTDIR=$pkgdir cmake --install . 28 | mv $pkgdir/msys64/* $pkgdir 29 | rm -rf $pkgdir/msys64 30 | } 31 | -------------------------------------------------------------------------------- /python-embed/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=python-embed 3 | pkgver=3.9.7 4 | pkgrel=1 5 | pkgdesc='Python mini embed package' 6 | arch=('x86_64') 7 | url="https://www.python.org/" 8 | license=('custom') 9 | source=("https://www.python.org/ftp/python/$pkgver/python-$pkgver-embed-amd64.zip") 10 | options=(!strip) 11 | md5sums=('SKIP') 12 | 13 | build() { 14 | cd $srcdir 15 | rm *.txt vc* *.cat *embed* 16 | } 17 | 18 | package() { 19 | export PKGEXT='.pkg.tar.xz' 20 | mkdir $pkgdir/opt 21 | mv $srcdir $pkgdir/opt/bin 22 | } 23 | -------------------------------------------------------------------------------- /rav1e-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=rav1e-dev 2 | pkgver=0.7.1 3 | pkgrel=1 4 | pkgdesc='The fastest and safest AV1 encoder' 5 | arch=('x86_64') 6 | url="https://github.com/xiph/rav1e/" 7 | license=('spdx:BSD-2-Clause') 8 | source=("git+https://github.com/xiph/rav1e.git#tag=v$pkgver") 9 | md5sums=('SKIP') 10 | 11 | package() { 12 | cd $srcdir/rav1e 13 | export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1 14 | export CARGO_PROFILE_RELEASE_DEBUG=false 15 | export CARGO_PROFILE_RELEASE_INCREMENTAL=false 16 | export CARGO_PROFILE_RELEASE_LTO=off 17 | cargo cinstall --manifest-path=Cargo.toml --prefix=/opt --destdir=$pkgdir --release --target x86_64-pc-windows-gnu --crt-static --library-type staticlib 18 | mv $pkgdir/msys64/* $pkgdir 19 | rm -rf $pkgdir/msys64 20 | } 21 | -------------------------------------------------------------------------------- /release-dev.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -x 3 | CURL_RETRIES="--connect-timeout 60 --retry 5 --retry-delay 5" 4 | 5 | # Delete assets 6 | asset_id=$(curl -u $GITHUB_ACTOR:$GH_TOKEN $CURL_RETRIES \ 7 | -H "Accept: application/vnd.github.v3+json" \ 8 | https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/dev \ 9 | | jq -r '.assets[] | select(.name | contains("'"$1"'")) | .id') 10 | 11 | curl -u $GITHUB_ACTOR:$GH_TOKEN $CURL_RETRIES \ 12 | -X DELETE \ 13 | -H "Accept: application/vnd.github.v3+json" \ 14 | https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/assets/$asset_id 15 | 16 | # Release assets 17 | curl -u $GITHUB_ACTOR:$GH_TOKEN $CURL_RETRIES \ 18 | -X POST \ 19 | -H "Accept: application/vnd.github.v3+json" \ 20 | https://api.github.com/repos/${GITHUB_REPOSITORY}/releases \ 21 | -d '{"tag_name": "dev"}' 22 | 23 | release_id=$(curl -u $GITHUB_ACTOR:$GH_TOKEN $CURL_RETRIES \ 24 | -H "Accept: application/vnd.github.v3+json" \ 25 | https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/dev | jq -r '.id') 26 | 27 | for f in $2/*.zst; do 28 | curl -u $GITHUB_ACTOR:$GH_TOKEN $CURL_RETRIES \ 29 | -X POST -H "Accept: application/vnd.github.v3+json" \ 30 | -H "Content-Type: $(file -b --mime-type $f)" \ 31 | https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/$release_id/assets?name=$(basename $f) --data-binary @$f; 32 | done 33 | -------------------------------------------------------------------------------- /release-latest.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -x 3 | CURL_RETRIES="--connect-timeout 60 --retry 5 --retry-delay 5" 4 | 5 | # Delete assets 6 | asset_id=($(curl -u $GITHUB_ACTOR:$GH_TOKEN $CURL_RETRIES \ 7 | -H "Accept: application/vnd.github.v3+json" \ 8 | https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/latest \ 9 | | jq -r '.assets[] | select(.name | contains("'"$1"'")) | .id' | tr -d '\r')) 10 | 11 | for id in "${asset_id[@]}"; do 12 | curl -u $GITHUB_ACTOR:$GH_TOKEN $CURL_RETRIES \ 13 | -X DELETE \ 14 | -H "Accept: application/vnd.github.v3+json" \ 15 | https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/assets/$id; 16 | done 17 | 18 | # Release assets 19 | curl -u $GITHUB_ACTOR:$GH_TOKEN $CURL_RETRIES \ 20 | -X POST \ 21 | -H "Accept: application/vnd.github.v3+json" \ 22 | https://api.github.com/repos/${GITHUB_REPOSITORY}/releases \ 23 | -d '{"tag_name": "latest"}' 24 | 25 | release_id=$(curl -u $GITHUB_ACTOR:$GH_TOKEN $CURL_RETRIES \ 26 | -H "Accept: application/vnd.github.v3+json" \ 27 | https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/latest | jq -r '.id') 28 | 29 | for f in $2/*.xz; do 30 | curl -u $GITHUB_ACTOR:$GH_TOKEN $CURL_RETRIES \ 31 | -X POST -H "Accept: application/vnd.github.v3+json" \ 32 | -H "Content-Type: $(file -b --mime-type $f)" \ 33 | https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/$release_id/assets?name=$(basename $f) \ 34 | --data-binary @$f; 35 | done 36 | -------------------------------------------------------------------------------- /release-package.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -x 3 | CURL_RETRIES="--connect-timeout 60 --retry 5 --retry-delay 5" 4 | 5 | #Get mpv latest commit sha 6 | short_sha=$(cat /d/msys64/opt/mpv/SHORT_SHA) 7 | date=$(date +%Y-%m-%d) 8 | 9 | #Release note 10 | body="Bump to mpv-player/mpv@${short_sha}\n" 11 | body+="**Compiler**: $COMPILER" 12 | 13 | curl -u $GITHUB_ACTOR:$GH_TOKEN $CURL_RETRIES \ 14 | -X POST \ 15 | -H "Accept: application/vnd.github.v3+json" \ 16 | https://api.github.com/repos/${GITHUB_REPOSITORY}/releases \ 17 | -d '{"tag_name":"'"$date"'","name":"'"$date"'","body":"'"$body"'"}' 18 | 19 | release_id=$(curl -u $GITHUB_ACTOR:$GH_TOKEN $CURL_RETRIES \ 20 | -H "Accept: application/vnd.github.v3+json" \ 21 | https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/$date | jq -r '.id') 22 | 23 | for f in *.7z; do 24 | curl -u $GITHUB_ACTOR:$GH_TOKEN $CURL_RETRIES \ 25 | -X POST -H "Accept: application/vnd.github.v3+json" \ 26 | -H "Content-Type: $(file -b --mime-type $f)" \ 27 | https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/$release_id/assets?name=$(basename $f) --data-binary @$f; 28 | done 29 | -------------------------------------------------------------------------------- /rubberband/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=rubberband-dev 2 | pkgver=4.0.0 3 | pkgrel=1 4 | pkgdesc='High quality software library for audio time-stretching and pitch-shifting' 5 | arch=('x86_64') 6 | url="https://breakfastquay.com/rubberband/" 7 | makedepends=('libsamplerate-dev') 8 | license=('GPL') 9 | source=("git+https://github.com/breakfastquay/rubberband.git") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | eval "${att_args}" 14 | cd $srcdir/rubberband 15 | meson setup build \ 16 | --prefix=/opt \ 17 | --libdir=/opt/lib \ 18 | --buildtype=release \ 19 | --default-library=static \ 20 | -Dfft=builtin \ 21 | -Dresampler=libsamplerate 22 | meson compile -C build 23 | } 24 | 25 | package() { 26 | cd $srcdir/rubberband 27 | DESTDIR=$pkgdir meson install -C build 28 | mv $pkgdir/msys64/* $pkgdir 29 | rm -rf $pkgdir/msys64 30 | } -------------------------------------------------------------------------------- /shaderc-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=shaderc-dev 3 | pkgver=2025.2 4 | pkgrel=1 5 | pkgdesc='Collection of tools, libraries and tests for shader compilation' 6 | arch=('x86_64') 7 | url="https://github.com/google/shaderc/" 8 | license=('Apache') 9 | source=("git+https://github.com/google/shaderc.git") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | cd $srcdir 14 | cp $srcdir/shaderc/DEPS ./ 15 | curl -OL https://github.com/KhronosGroup/glslang/archive/`cat DEPS | grep glslang | head -n1 | cut -d\' -f4`.tar.gz 16 | curl -OL https://github.com/KhronosGroup/SPIRV-Headers/archive/`cat DEPS | grep spirv_headers | head -n1 | cut -d\' -f4`.tar.gz 17 | curl -OL https://github.com/KhronosGroup/SPIRV-Tools/archive/`cat DEPS | grep spirv_tools | head -n1 | cut -d\' -f4`.tar.gz 18 | for f in *.gz; do tar xvf "$f"; done 19 | mv glslang* glslang 20 | mv SPIRV-Headers* spirv-headers 21 | mv SPIRV-Tools* spirv-tools 22 | cd $srcdir/shaderc 23 | sed -i '/(build-version/,+4d' CMakeLists.txt 24 | sed -i '/glslc/d' CMakeLists.txt 25 | mv $srcdir/spirv-headers third_party 26 | mv $srcdir/spirv-tools third_party 27 | mv $srcdir/glslang third_party 28 | rm -rf build && mkdir build && cd build 29 | cmake .. \ 30 | -G "Ninja" \ 31 | -DCMAKE_INSTALL_PREFIX=/opt \ 32 | -DCMAKE_BUILD_TYPE=Release \ 33 | -DSHADERC_SKIP_TESTS=ON \ 34 | -DENABLE_SPIRV_TOOLS_INSTALL=ON \ 35 | -DSHADERC_SKIP_SPVC=ON \ 36 | -DSHADERC_SKIP_INSTALL=ON \ 37 | -DSHADERC_SKIP_EXAMPLES=ON 38 | cmake --build . 39 | } 40 | 41 | package() { 42 | cd $srcdir/shaderc 43 | mkdir -p $pkgdir/opt/lib/pkgconfig 44 | cp -r libshaderc/include $pkgdir/opt 45 | cp -r libshaderc_util/include/libshaderc_util $pkgdir/opt/include 46 | cp build/libshaderc/libshaderc_combined.a $pkgdir/opt/lib 47 | cp build/shaderc_combined.pc $pkgdir/opt/lib/pkgconfig/shaderc.pc 48 | } 49 | -------------------------------------------------------------------------------- /spirv-cross-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=spirv-cross-dev 3 | pkgver=1.4.313.0 4 | pkgrel=1 5 | pkgdesc='A tool and library for parsing and converting SPIR-V to other shader languages' 6 | arch=('x86_64') 7 | url="https://github.com/KhronosGroup/SPIRV-Cross/" 8 | license=('Apache') 9 | source=("git+https://github.com/KhronosGroup/SPIRV-Cross#tag=${pkgver//./-}") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | cd $srcdir/SPIRV-Cross 14 | sed -i 's/ SHARED/ STATIC/' CMakeLists.txt 15 | sed -i '/SPVC_EXPORT_SYMBOLS/d' CMakeLists.txt 16 | rm -rf build && mkdir build && cd build 17 | export CXXFLAGS="${CXXFLAGS} -D__USE_MINGW_ANSI_STDIO" 18 | cmake .. -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=/opt -DCMAKE_BUILD_TYPE=Release \ 19 | -DSPIRV_CROSS_SHARED=ON -DSPIRV_CROSS_CLI=OFF -DSPIRV_CROSS_ENABLE_TESTS=OFF 20 | cmake --build . 21 | } 22 | 23 | package() { 24 | cd $srcdir/SPIRV-Cross/build 25 | DESTDIR=$pkgdir cmake --install . 26 | mv $pkgdir/msys64/* $pkgdir 27 | rm -rf $pkgdir/msys64 28 | } 29 | -------------------------------------------------------------------------------- /spirv-cross-dev/PKGBUILD-new: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=spirv-cross-dev 3 | pkgver=1.4.313.0 4 | pkgrel=1 5 | pkgdesc='A tool and library for parsing and converting SPIR-V to other shader languages' 6 | arch=('x86_64') 7 | url="https://github.com/KhronosGroup/SPIRV-Cross/" 8 | license=('Apache') 9 | source=("git+https://github.com/KhronosGroup/SPIRV-Cross" 10 | "https://raw.githubusercontent.com/shinchiro/mpv-winbuild-cmake/master/packages/spirv-cross-0001-static-linking-hacks.patch") 11 | md5sums=('SKIP' 'SKIP') 12 | 13 | build() { 14 | cd $srcdir/SPIRV-Cross 15 | patch -p1 -i $srcdir/spirv-cross-0001-static-linking-hacks.patch 16 | rm -rf build && mkdir build && cd build 17 | export CXXFLAGS="${CXXFLAGS} -D__USE_MINGW_ANSI_STDIO" 18 | cmake .. \ 19 | -G "Ninja" \ 20 | -DCMAKE_INSTALL_PREFIX=/opt \ 21 | -DCMAKE_BUILD_TYPE=Release \ 22 | -DSPIRV_CROSS_SHARED=ON \ 23 | -DSPIRV_CROSS_CLI=OFF \ 24 | -DSPIRV_CROSS_ENABLE_TESTS=OFF 25 | cmake --build . 26 | } 27 | 28 | package() { 29 | cd $srcdir/SPIRV-Cross/build 30 | DESTDIR=$pkgdir cmake --install . 31 | mv $pkgdir/msys64/* $pkgdir 32 | rm -rf $pkgdir/msys64 33 | } 34 | -------------------------------------------------------------------------------- /svtav1-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=svtav1-dev 2 | pkgver=3.0.2 3 | pkgrel=1 4 | pkgdesc='Scalable Video Technology AV1 encoder and decoder' 5 | arch=('x86_64') 6 | url="https://gitlab.com/AOMediaCodec/SVT-AV1" 7 | license=('Apache-2.0') 8 | source=("git+https://gitlab.com/AOMediaCodec/SVT-AV1.git#tag=v$pkgver") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/SVT-AV1 13 | rm -rf build && mkdir build && cd build 14 | cmake .. \ 15 | -G "Ninja" \ 16 | -DCMAKE_INSTALL_PREFIX=/opt \ 17 | -DCMAKE_BUILD_TYPE=Release \ 18 | -DBUILD_SHARED_LIBS=OFF \ 19 | -DENABLE_NASM=ON \ 20 | -DENABLE_AVX512=ON \ 21 | -DBUILD_DEC=OFF \ 22 | -DBUILD_TESTING=OFF \ 23 | -DBUILD_ENC=ON \ 24 | -DSVT_AV1_LTO=OFF \ 25 | -DBUILD_APPS=OFF 26 | cmake --build . 27 | } 28 | 29 | package() { 30 | cd $srcdir/SVT-AV1/build 31 | DESTDIR=$pkgdir cmake --install . 32 | mv $pkgdir/msys64/* $pkgdir 33 | rm -rf $pkgdir/msys64 34 | } 35 | -------------------------------------------------------------------------------- /uavs3d-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=uavs3d-dev 2 | pkgver=1.1 3 | pkgrel=1 4 | pkgdesc='An opensource and cross-platform avs3 decoder, supports AVS3-P2 baseline profile' 5 | arch=('x86_64') 6 | url="https://github.com/uavs3/uavs3d" 7 | license=('GPL') 8 | source=("git+https://github.com/uavs3/uavs3d.git") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/uavs3d 13 | mkdir -p build/linux && cd build/linux 14 | cmake ../.. \ 15 | -G "Ninja" \ 16 | -DCMAKE_INSTALL_PREFIX=/opt \ 17 | -DCMAKE_BUILD_TYPE=Release \ 18 | -DBUILD_SHARED_LIBS=OFF \ 19 | -DCOMPILE_10BIT=ON \ 20 | -DCMAKE_POLICY_VERSION_MINIMUM=3.5 21 | cmake --build . 22 | } 23 | 24 | package() { 25 | cd $srcdir/uavs3d/build/linux 26 | DESTDIR=$pkgdir cmake --install . 27 | mv $pkgdir/msys64/* $pkgdir 28 | rm -rf $pkgdir/msys64 29 | } 30 | -------------------------------------------------------------------------------- /vapoursynth/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=vapoursynth-dev 3 | pkgver=72 4 | pkgrel=1 5 | pkgdesc='A video processing framework with the future in mind' 6 | arch=('x86_64') 7 | url="http://www.vapoursynth.com/" 8 | license=('LGPL') 9 | source=("https://github.com/vapoursynth/vapoursynth/releases/download/R$pkgver/VapourSynth64-Portable-R$pkgver.zip") 10 | md5sums=('SKIP') 11 | 12 | package() { 13 | cd $srcdir 14 | set -x 15 | #cp ../*.def ./ 16 | 7z x wheel/*cp313* 17 | find . -type f -name "vapoursynth.dll" -print0 | xargs -0 -I {} cp {} ./VapourSynth.dll 18 | gendef VSScript.dll 19 | gendef VapourSynth.dll 20 | eval "${vapoursynth_generate_lib}" 21 | mkdir -p $pkgdir/opt/lib/pkgconfig 22 | mkdir -p $pkgdir/opt/include/vapoursynth 23 | mv sdk/include/vapoursynth/VapourSynth.h $pkgdir/opt/include/vapoursynth 24 | mv sdk/include/vapoursynth/VapourSynth4.h $pkgdir/opt/include/vapoursynth 25 | mv sdk/include/vapoursynth/VSScript.h $pkgdir/opt/include/vapoursynth 26 | mv sdk/include/vapoursynth/VSScript4.h $pkgdir/opt/include/vapoursynth 27 | cp ${vsscript_lib} $pkgdir/opt/lib 28 | cp ${vapoursynth_lib} $pkgdir/opt/lib 29 | cp ../*.pc $pkgdir/opt/lib/pkgconfig 30 | sed -i "s/_ver/$pkgver/" $pkgdir/opt/lib/pkgconfig/vapoursynth.pc 31 | sed -i "s/_ver/$pkgver/" $pkgdir/opt/lib/pkgconfig/vapoursynth-script.pc 32 | for i in $pkgdir/opt/lib/pkgconfig/*.pc; do 33 | sed -e "s|_ver|$pkgver|g" \ 34 | -e "s|@vapoursynth_pkgconfig_libs@|${vapoursynth_pkgconfig_libs}|g" \ 35 | -e "s|@vapoursynth_script_pkgconfig_libs@|${vapoursynth_script_pkgconfig_libs}|g" \ 36 | -i "$i" 37 | done 38 | } 39 | -------------------------------------------------------------------------------- /vapoursynth/VSScript.def: -------------------------------------------------------------------------------- 1 | ; 2 | ; Definition file of VSScript.dll 3 | ; Automatic generated by gendef 4 | ; written by Kai Tietz 2008 5 | ; 6 | LIBRARY "VSScript.dll" 7 | EXPORTS 8 | getVSScriptAPI@4 9 | vsscript_clearEnvironment@4 10 | vsscript_clearOutput@8 11 | vsscript_clearVariable@8 12 | vsscript_createScript@4 13 | vsscript_evaluateFile@12 14 | vsscript_evaluateScript@16 15 | vsscript_finalize@0 16 | vsscript_freeScript@4 17 | vsscript_getApiVersion@0 18 | vsscript_getCore@4 19 | vsscript_getError@4 20 | vsscript_getExitCode@4 21 | vsscript_getOutput2@12 22 | vsscript_getOutput@8 23 | vsscript_getVSApi2@4 24 | vsscript_getVSApi@0 25 | vsscript_getVariable@12 26 | vsscript_init@0 27 | vsscript_setVariable@8 28 | -------------------------------------------------------------------------------- /vapoursynth/VapourSynth.def: -------------------------------------------------------------------------------- 1 | ; 2 | ; Definition file of VapourSynth.dll 3 | ; Automatic generated by gendef 4 | ; written by Kai Tietz 2008 5 | ; 6 | LIBRARY "VapourSynth.dll" 7 | EXPORTS 8 | getVapourSynthAPI@4 9 | -------------------------------------------------------------------------------- /vapoursynth/vapoursynth-script.pc: -------------------------------------------------------------------------------- 1 | libdir=/opt/lib 2 | includedir=/opt/include/vapoursynth 3 | 4 | Name: vapoursynth-script 5 | Description: 6 | Version: _ver 7 | 8 | Requires: vapoursynth 9 | Libs: -L${libdir} @vapoursynth_script_pkgconfig_libs@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /vapoursynth/vapoursynth.pc: -------------------------------------------------------------------------------- 1 | libdir=/opt/lib 2 | includedir=/opt/include/vapoursynth 3 | 4 | Name: vapoursynth 5 | Description: 6 | Version: _ver 7 | 8 | Requires.private: zimg 9 | Libs: -L${libdir} @vapoursynth_pkgconfig_libs@ 10 | Libs.private: -L${libdir} -lzimg 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /vulkan-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=vulkan-dev 3 | pkgver=1.4.309.0 4 | pkgrel=1 5 | pkgdesc='Vulkan Header and Loader' 6 | arch=('x86_64') 7 | url="https://www.khronos.org/vulkan/" 8 | license=('APACHE') 9 | source=("git+https://github.com/KhronosGroup/Vulkan-Headers" 10 | "git+https://github.com/KhronosGroup/Vulkan-Loader" 11 | "https://raw.githubusercontent.com/shinchiro/mpv-winbuild-cmake/master/packages/vulkan-0001-cross-compile-static-linking-hacks.patch") 12 | md5sums=('SKIP' 'SKIP' 'SKIP') 13 | 14 | build() { 15 | export CFLAGS="${CFLAGS} -D__STDC_FORMAT_MACROS -DSTRSAFE_NO_DEPRECATE -D_WIN32_WINNT=0x0600 -Dparse_number=cjson_parse_number" 16 | export CPPFLAGS="${CPPFLAGS} -D__STDC_FORMAT_MACROS" 17 | export CXXFLAGS="${CXXFLAGS} -D__STDC_FORMAT_MACROS -fpermissive -D_WIN32_WINNT=0x0600" 18 | 19 | cd $srcdir/Vulkan-Headers 20 | rm -rf build && mkdir build && cd build 21 | cmake .. \ 22 | -G "Ninja" \ 23 | -DCMAKE_INSTALL_PREFIX=/opt \ 24 | -DCMAKE_BUILD_TYPE=Release \ 25 | -DVULKAN_HEADERS_ENABLE_MODULE=OFF 26 | cmake --install . --prefix=$srcdir/opt 27 | 28 | cd $srcdir/Vulkan-Loader 29 | patch -p1 -i $srcdir/vulkan-0001-cross-compile-static-linking-hacks.patch 30 | rm -rf build && mkdir build && cd build 31 | cmake .. \ 32 | -G "Ninja" \ 33 | -DCMAKE_INSTALL_PREFIX=/opt \ 34 | -DCMAKE_BUILD_TYPE=Release \ 35 | -DVULKAN_HEADERS_INSTALL_DIR="${srcdir}/opt" \ 36 | -DBUILD_STATIC_LOADER=ON \ 37 | -DUSE_GAS=ON \ 38 | -DBUILD_TESTS=OFF \ 39 | -DUSE_MASM=OFF \ 40 | -DENABLE_WERROR=OFF 41 | cmake --build . 42 | } 43 | 44 | package() { 45 | cd $srcdir/Vulkan-Headers/build 46 | DESTDIR=$pkgdir cmake --install . 47 | mv $pkgdir/msys64/* $pkgdir 48 | rm -rf $pkgdir/msys64 49 | mkdir -p $pkgdir/opt/lib/pkgconfig 50 | cd $srcdir/Vulkan-Loader/build 51 | cp loader/libvulkan.a $pkgdir/opt/lib 52 | cp loader/vulkan_own.pc $pkgdir/opt/lib/pkgconfig/vulkan.pc 53 | 54 | } 55 | -------------------------------------------------------------------------------- /vvdec-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=vvdec-dev 2 | pkgver=3.0.0 3 | pkgrel=1 4 | pkgdesc='the Fraunhofer Versatile Video Decoder' 5 | arch=('x86_64') 6 | url="https://github.com/fraunhoferhhi/vvdec" 7 | license=('BSD') 8 | source=("git+https://github.com/fraunhoferhhi/vvdec.git") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/vvdec 13 | rm -rf build && mkdir build && cd build 14 | cmake .. \ 15 | -G "Ninja" \ 16 | -DCMAKE_INSTALL_PREFIX=/opt \ 17 | -DCMAKE_BUILD_TYPE=Release \ 18 | -DBUILD_SHARED_LIBS=OFF \ 19 | -DCCACHE_FOUND=OFF \ 20 | -DVVDEC_ENABLE_LINK_TIME_OPT=OFF \ 21 | -DVVDEC_ENABLE_WERROR=OFF 22 | cmake --build . 23 | } 24 | 25 | package() { 26 | cd $srcdir/vvdec/build 27 | DESTDIR=$pkgdir cmake --install . 28 | mv $pkgdir/msys64/* $pkgdir 29 | rm -rf $pkgdir/msys64 30 | } 31 | -------------------------------------------------------------------------------- /xxhash-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=xxhash-dev 2 | pkgver=0.8.3 3 | pkgrel=1 4 | pkgdesc='Extremely fast non-cryptographic hash algorithm' 5 | arch=('x86_64') 6 | url="https://github.com/Cyan4973/xxHash" 7 | license=('BSD') 8 | source=("git+https://github.com/Cyan4973/xxHash.git") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/xxHash 13 | rm -rf work && mkdir work && cd work 14 | cmake ../build/cmake \ 15 | -G "Ninja" \ 16 | -DCMAKE_INSTALL_PREFIX=/opt \ 17 | -DCMAKE_BUILD_TYPE=Release \ 18 | -DBUILD_SHARED_LIBS=OFF \ 19 | -DDISPATCH=ON 20 | cmake --build . 21 | } 22 | 23 | package() { 24 | cd $srcdir/xxHash/work 25 | DESTDIR=$pkgdir cmake --install . 26 | mv $pkgdir/msys64/* $pkgdir 27 | rm -rf $pkgdir/msys64 28 | } 29 | -------------------------------------------------------------------------------- /xz-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | # Maintainer: nyfair 2 | pkgname=xz-dev 3 | pkgver=5.8.1 4 | pkgrel=1 5 | pkgdesc='Library and command line tools for XZ and LZMA compressed files' 6 | arch=('x86_64') 7 | url="https://tukaani.org/xz" 8 | license=('BSD') 9 | source=("git+https://github.com/tukaani-project/xz.git#tag=v$pkgver") 10 | md5sums=('SKIP') 11 | 12 | build() { 13 | eval "${att_args}" 14 | cd $srcdir/xz 15 | ./autogen.sh --no-po4a 16 | ./configure \ 17 | --prefix=/opt \ 18 | --disable-shared \ 19 | --disable-xz \ 20 | --disable-xzdec \ 21 | --disable-rpath \ 22 | --disable-lzma-links \ 23 | --disable-lzmadec \ 24 | --disable-lzmainfo \ 25 | --disable-doc 26 | make 27 | } 28 | 29 | package() { 30 | cd $srcdir/xz 31 | make DESTDIR=$pkgdir install 32 | } 33 | -------------------------------------------------------------------------------- /zlib-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=zlib-dev 2 | pkgver=2.2.4 3 | pkgrel=1 4 | pkgdesc='zlib replacement with optimizations for next generation systems' 5 | arch=('x86_64') 6 | url="https://github.com/zlib-ng/zlib-ng" 7 | license=('ZLIB') 8 | source=("git+https://github.com/zlib-ng/zlib-ng.git") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/zlib-ng 13 | rm -rf build && mkdir build && cd build 14 | cmake .. \ 15 | -G "Ninja" \ 16 | -DCMAKE_INSTALL_PREFIX=/opt \ 17 | -DCMAKE_BUILD_TYPE=Release \ 18 | -DINSTALL_PKGCONFIG_DIR=/opt/lib/pkgconfig \ 19 | -DSKIP_INSTALL_LIBRARIES=OFF \ 20 | -DBUILD_SHARED_LIBS=OFF \ 21 | -DZLIB_COMPAT=ON \ 22 | -DZLIB_ENABLE_TESTS=OFF \ 23 | -DZLIBNG_ENABLE_TESTS=OFF 24 | cmake --build . 25 | } 26 | 27 | package() { 28 | cd $srcdir/zlib-ng/build 29 | DESTDIR=$pkgdir cmake --install . 30 | mv $pkgdir/msys64/* $pkgdir 31 | rm -rf $pkgdir/msys64 32 | cp libz.a $pkgdir/opt/lib 33 | } 34 | -------------------------------------------------------------------------------- /zstd-dev/PKGBUILD: -------------------------------------------------------------------------------- 1 | pkgname=zstd-dev 2 | pkgver=1.5.7 3 | pkgrel=1 4 | pkgdesc='Zstandard - Fast real-time compression algorithm' 5 | arch=('x86_64') 6 | url="https://facebook.github.io/zstd/" 7 | license=('BSD') 8 | source=("git+https://github.com/facebook/zstd.git") 9 | md5sums=('SKIP') 10 | 11 | build() { 12 | cd $srcdir/zstd 13 | meson setup work build/meson --prefix=/opt --buildtype=release --default-library=static \ 14 | --libdir=/opt/lib \ 15 | -Dlegacy_level=0 \ 16 | -Ddebug_level=0 \ 17 | -Dbin_programs=false \ 18 | -Dzlib=disabled \ 19 | -Dlzma=disabled \ 20 | -Dlz4=disabled 21 | meson compile -C work 22 | } 23 | 24 | package() { 25 | cd $srcdir/zstd 26 | DESTDIR=$pkgdir meson install -C work 27 | mv $pkgdir/msys64/* $pkgdir 28 | rm -rf $pkgdir/msys64 29 | } 30 | --------------------------------------------------------------------------------