community/avisynthplus to 3.7.1.a-1

This commit is contained in:
Kevin Mihelich 2022-01-22 15:10:33 +00:00
parent b04dce9c0c
commit 88dcdbe2db
1 changed files with 6 additions and 5 deletions

View File

@ -4,7 +4,8 @@
# - explicitly link v5/v6 with libatomic
pkgname=avisynthplus
pkgver=3.7.1
pkgver=3.7.1.a
_srcver="${pkgver%.[[:alpha:]]}${pkgver##*.}"
pkgrel=1
pkgdesc='An improved version of the AviSynth frameserver'
arch=('x86_64')
@ -13,14 +14,14 @@ license=('GPL')
depends=('gcc-libs' 'hicolor-icon-theme')
optdepends=('devil: for ImageSeq plugin')
makedepends=('cmake' 'devil')
source=("https://github.com/AviSynth/AviSynthPlus/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
source=("https://github.com/AviSynth/AviSynthPlus/archive/v${_srcver}/${pkgname}-${_srcver}.tar.gz"
'avisynthplus.xml')
sha256sums=('96c5043512ecf8dca7a6257b8a54a28dcb8fea454d0dc5a9fd6f61cceda6bbef'
sha256sums=('e4347d8d62bf702abdbd93a98d02838a5089592908626883b8c17a82c8fb2a41'
'c4b270a3df7fbe1c153400215169c4ae4cae3b7a8710c843393e3a6ed0fd8a3e')
build() {
[[ $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-${_srcver}" \
-DCMAKE_BUILD_TYPE:STRING='None' \
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-Wno-dev
@ -38,5 +39,5 @@ package() {
_res="$(sed 's/[[:alpha:]]*\([0-9]\+\)\.png/\1/' <<< "${_icon##*/}")"
[ -n "$_res" ] && install -D -m644 "$_icon" \
"${pkgdir}/usr/share/icons/hicolor/${_res}x${_res}/mimetypes/avisynthplus-script.png"
done < <(find "AviSynthPlus-${pkgver}/distrib/Icons/Rastered" -type f -name 'AvsPlusIcon*.png' -print0)
done < <(find "AviSynthPlus-${_srcver}/distrib/Icons/Rastered" -type f -name 'AvsPlusIcon*.png' -print0)
}