community/avisynthplus to 3.7.1-1

This commit is contained in:
David Beauchamp 2022-01-03 12:39:07 -05:00
parent bd2bd889f7
commit e6d2993a65

View file

@ -4,8 +4,8 @@
# - explicitly link v5/v6 with libatomic # - explicitly link v5/v6 with libatomic
pkgname=avisynthplus pkgname=avisynthplus
pkgver=3.7.0 pkgver=3.7.1
pkgrel=2 pkgrel=1
pkgdesc='An improved version of the AviSynth frameserver' pkgdesc='An improved version of the AviSynth frameserver'
arch=('x86_64') arch=('x86_64')
url='https://avs-plus.net/' url='https://avs-plus.net/'
@ -14,16 +14,10 @@ depends=('gcc-libs' 'hicolor-icon-theme')
optdepends=('devil: for ImageSeq plugin') optdepends=('devil: for ImageSeq plugin')
makedepends=('cmake' 'devil') makedepends=('cmake' 'devil')
source=("https://github.com/AviSynth/AviSynthPlus/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz" source=("https://github.com/AviSynth/AviSynthPlus/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
'010-avisynthplus-gcc11-fix.patch'::'https://github.com/AviSynth/AviSynthPlus/commit/a1e33be91dfa48b8db5ee358ea4fcea952e80e4f.patch'
'avisynthplus.xml') 'avisynthplus.xml')
sha256sums=('8906d9e46dc90a194413d69b710e3106c0aafddc0c5c62004885d0c3beb79862' sha256sums=('96c5043512ecf8dca7a6257b8a54a28dcb8fea454d0dc5a9fd6f61cceda6bbef'
'6eb2b108c4689a5ca71e6c3da5af62fd2fb717bdcf4835a3a38eb67159d80072'
'c4b270a3df7fbe1c153400215169c4ae4cae3b7a8710c843393e3a6ed0fd8a3e') 'c4b270a3df7fbe1c153400215169c4ae4cae3b7a8710c843393e3a6ed0fd8a3e')
prepare() {
patch -d "AviSynthPlus-${pkgver}" -Np1 -i "${srcdir}/010-avisynthplus-gcc11-fix.patch"
}
build() { build() {
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && echo "target_link_libraries(AvsCore atomic)" >> "AviSynthPlus-${pkgver}/avs_core/CMakeLists.txt" [[ $CARCH == "arm" || $CARCH == "armv6h" ]] && echo "target_link_libraries(AvsCore atomic)" >> "AviSynthPlus-${pkgver}/avs_core/CMakeLists.txt"
cmake -B build -S "AviSynthPlus-${pkgver}" \ cmake -B build -S "AviSynthPlus-${pkgver}" \