[arch-commits] Commit in avisynthplus/repos/community-x86_64 (3 files)

Daniel Bermond dbermond at gemini.archlinux.org
Wed Nov 24 01:07:31 UTC 2021


    Date: Wednesday, November 24, 2021 @ 01:07:31
  Author: dbermond
Revision: 1054532

archrelease: copy trunk to community-x86_64

Added:
  avisynthplus/repos/community-x86_64/PKGBUILD
    (from rev 1054531, avisynthplus/trunk/PKGBUILD)
  avisynthplus/repos/community-x86_64/avisynthplus.xml
    (from rev 1054531, avisynthplus/trunk/avisynthplus.xml)
Deleted:
  avisynthplus/repos/community-x86_64/PKGBUILD

------------------+
 PKGBUILD         |   70 +++++++++++++++++++++++++++++++++--------------------
 avisynthplus.xml |    9 ++++++
 2 files changed, 53 insertions(+), 26 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-24 01:07:01 UTC (rev 1054531)
+++ PKGBUILD	2021-11-24 01:07:31 UTC (rev 1054532)
@@ -1,26 +0,0 @@
-# Maintainer: Daniel Bermond <dbermond at archlinux.org>
-
-pkgname=avisynthplus
-pkgver=3.7.0
-pkgrel=1
-pkgdesc='An improved version of the AviSynth frameserver'
-arch=('x86_64')
-url='https://avs-plus.net/'
-license=('GPL')
-depends=('gcc-libs')
-optdepends=('devil: for ImageSeq plugin')
-makedepends=('cmake' 'devil')
-source=("https://github.com/AviSynth/AviSynthPlus/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('8906d9e46dc90a194413d69b710e3106c0aafddc0c5c62004885d0c3beb79862')
-
-build() {
-    cmake -B build -S "AviSynthPlus-${pkgver}" \
-        -DCMAKE_BUILD_TYPE:STRING='None' \
-        -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-        -Wno-dev
-    make -C build
-}
-
-package() {
-    make -C build DESTDIR="$pkgdir" install
-}

Copied: avisynthplus/repos/community-x86_64/PKGBUILD (from rev 1054531, avisynthplus/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-11-24 01:07:31 UTC (rev 1054532)
@@ -0,0 +1,44 @@
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+
+pkgname=avisynthplus
+pkgver=3.7.0
+pkgrel=2
+pkgdesc='An improved version of the AviSynth frameserver'
+arch=('x86_64')
+url='https://avs-plus.net/'
+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"
+        '010-avisynthplus-gcc11-fix.patch'::'https://github.com/AviSynth/AviSynthPlus/commit/a1e33be91dfa48b8db5ee358ea4fcea952e80e4f.patch'
+        'avisynthplus.xml')
+sha256sums=('8906d9e46dc90a194413d69b710e3106c0aafddc0c5c62004885d0c3beb79862'
+            '6eb2b108c4689a5ca71e6c3da5af62fd2fb717bdcf4835a3a38eb67159d80072'
+            'c4b270a3df7fbe1c153400215169c4ae4cae3b7a8710c843393e3a6ed0fd8a3e')
+
+prepare() {
+    patch -d "AviSynthPlus-${pkgver}" -Np1 -i "${srcdir}/010-avisynthplus-gcc11-fix.patch"
+}
+
+build() {
+    cmake -B build -S "AviSynthPlus-${pkgver}" \
+        -DCMAKE_BUILD_TYPE:STRING='None' \
+        -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
+        -Wno-dev
+    make -C build
+}
+
+package() {
+    make -C build DESTDIR="$pkgdir" install
+    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"
+    done < <(find "AviSynthPlus-${pkgver}/distrib/Icons/Rastered" -type f -name 'AvsPlusIcon*.png' -print0)
+}

Copied: avisynthplus/repos/community-x86_64/avisynthplus.xml (from rev 1054531, avisynthplus/trunk/avisynthplus.xml)
===================================================================
--- avisynthplus.xml	                        (rev 0)
+++ avisynthplus.xml	2021-11-24 01:07:31 UTC (rev 1054532)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+  <mime-type type="text/x-avs">
+    <glob pattern="*.avs"/>
+    <glob pattern="*.avsi"/>
+    <icon name="avisynthplus-script"/>
+    <comment>AviSynthPlus script</comment>
+  </mime-type>
+</mime-info>



More information about the arch-commits mailing list