2021-01-20 20:48:02 +00:00
|
|
|
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - explicitly link v5/v6 with libatomic
|
|
|
|
|
|
|
|
pkgname=avisynthplus
|
2022-01-22 15:10:33 +00:00
|
|
|
pkgver=3.7.1.a
|
|
|
|
_srcver="${pkgver%.[[:alpha:]]}${pkgver##*.}"
|
2022-01-03 17:39:07 +00:00
|
|
|
pkgrel=1
|
2021-01-20 20:48:02 +00:00
|
|
|
pkgdesc='An improved version of the AviSynth frameserver'
|
|
|
|
arch=('x86_64')
|
|
|
|
url='https://avs-plus.net/'
|
|
|
|
license=('GPL')
|
2021-11-24 02:39:13 +00:00
|
|
|
depends=('gcc-libs' 'hicolor-icon-theme')
|
2021-01-20 20:48:02 +00:00
|
|
|
optdepends=('devil: for ImageSeq plugin')
|
|
|
|
makedepends=('cmake' 'devil')
|
2022-01-22 15:10:33 +00:00
|
|
|
source=("https://github.com/AviSynth/AviSynthPlus/archive/v${_srcver}/${pkgname}-${_srcver}.tar.gz"
|
2021-11-24 02:39:13 +00:00
|
|
|
'avisynthplus.xml')
|
2022-01-22 15:10:33 +00:00
|
|
|
sha256sums=('e4347d8d62bf702abdbd93a98d02838a5089592908626883b8c17a82c8fb2a41'
|
2021-11-24 02:39:13 +00:00
|
|
|
'c4b270a3df7fbe1c153400215169c4ae4cae3b7a8710c843393e3a6ed0fd8a3e')
|
|
|
|
|
2021-01-20 20:48:02 +00:00
|
|
|
build() {
|
|
|
|
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && echo "target_link_libraries(AvsCore atomic)" >> "AviSynthPlus-${pkgver}/avs_core/CMakeLists.txt"
|
2022-01-22 15:10:33 +00:00
|
|
|
cmake -B build -S "AviSynthPlus-${_srcver}" \
|
2021-01-20 20:48:02 +00:00
|
|
|
-DCMAKE_BUILD_TYPE:STRING='None' \
|
|
|
|
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
|
|
|
|
-Wno-dev
|
|
|
|
make -C build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
make -C build DESTDIR="$pkgdir" install
|
2021-11-24 02:39:13 +00:00
|
|
|
install -D -m644 avisynthplus.xml -t "${pkgdir}/usr/share/mime/packages"
|
|
|
|
|
|
|
|
local _icon
|
|
|
|
local _res
|
|
|
|
while read -r -d '' _icon
|
|
|
|
do
|
|
|
|
_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"
|
2022-01-22 15:10:33 +00:00
|
|
|
done < <(find "AviSynthPlus-${_srcver}/distrib/Icons/Rastered" -type f -name 'AvsPlusIcon*.png' -print0)
|
2021-01-20 20:48:02 +00:00
|
|
|
}
|