From 92c21432756b841ed5899638d4e8225b40642515 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Thu, 25 Jul 2019 07:52:11 +0000 Subject: [PATCH] shared-mime-info: new package at 1.12 --- testing/shared-mime-info/build | 16 +++++++++ testing/shared-mime-info/checksums | 2 ++ testing/shared-mime-info/files/intltool | 45 +++++++++++++++++++++++++ testing/shared-mime-info/sources | 2 ++ testing/shared-mime-info/version | 1 + 5 files changed, 66 insertions(+) create mode 100755 testing/shared-mime-info/build create mode 100644 testing/shared-mime-info/checksums create mode 100755 testing/shared-mime-info/files/intltool create mode 100644 testing/shared-mime-info/sources create mode 100644 testing/shared-mime-info/version diff --git a/testing/shared-mime-info/build b/testing/shared-mime-info/build new file mode 100755 index 00000000..247e8189 --- /dev/null +++ b/testing/shared-mime-info/build @@ -0,0 +1,16 @@ +#!/bin/sh -e + +for i in merge update extract perl; do + ln -sf intltool "intltool-fake/intltool-$i" +done + +export INTLTOOL_PERL="$PWD/intltool-fake/intltool-perl" +export PATH="$PATH:$PWD/intltool-fake" + +./configure \ + --prefix=/usr \ + --disable-nls \ + --disable-update-mimedb + +make +make DESTDIR="$1" install diff --git a/testing/shared-mime-info/checksums b/testing/shared-mime-info/checksums new file mode 100644 index 00000000..4ccd7021 --- /dev/null +++ b/testing/shared-mime-info/checksums @@ -0,0 +1,2 @@ +18b2f0fe07ed0d6f81951a5fd5ece44de9c8aeb4dc5bb20d4f595f6cc6bd403e shared-mime-info-1.12.tar.xz +0dbea64d9a578d2448bf3a5ddf1ed97931cb3d7250eefbad2f75f0f8b5fdfc17 intltool diff --git a/testing/shared-mime-info/files/intltool b/testing/shared-mime-info/files/intltool new file mode 100755 index 00000000..744d50ed --- /dev/null +++ b/testing/shared-mime-info/files/intltool @@ -0,0 +1,45 @@ +#!/bin/sh +die() { echo "$1" >&2 ; exit 1 ; } +respond() { echo "$1" >&1 ; exit 0 ; } + +tool=$(basename $0) +test "$1" = --version && respond "$tool (intltool 9.99.9)" + +case "$tool" in +intltool-merge*) ;; +intltool-perl*) +test "$1" = -v && respond "This is not perl 5, version 99, subversion 9 (v5.99.9)" +test "$1" = -e && { +if test -n "$2" && test -z "$3" ; then + test "$2" = "require XML::Parser" && exit 0 + printf "%s" "$2"|grep '^use 5\.[0-9]*\.[0-9]*;$' >/dev/null && exit 0 +fi +die "$0: unsupported usage" +} +test "$2" = "printf '%vd', $^V" && respond "5.99.9" +test "$2" = "require XML::Parser" && exit 0 +printf "%s" "$2" | grep '^use [0-9].[0-9].[0-9];$'>/dev/null 2>&1 && exit 0 +die "$0: unsupported usage" ;; +*) die "$0: requested functionality not implemented" ;; +esac + +larg= +sarg= +while test -n "$1" ; do + case "$1" in + -x|-u|-d) shift ; continue ;; + -c) shift ; shift ; continue ;; + esac + sarg="$larg" + larg="$1" + shift +done +test -z "$sarg" && die "$0: need at least 2 args" +test -r "$sarg" || die "$0: no read perms for $sarg" +if printf "%s" "$sarg"|grep "\.xml\.in$" >/dev/null 2>&1 ; then + sed -e 's,<_\([-A-Za-z0-9_]*\)>,<\1>,g' \ + -e 's,,,g' \ + < "$sarg" > "$larg" +else + sed 's/^_//' < "$sarg" > "$larg" +fi diff --git a/testing/shared-mime-info/sources b/testing/shared-mime-info/sources new file mode 100644 index 00000000..8535fe82 --- /dev/null +++ b/testing/shared-mime-info/sources @@ -0,0 +1,2 @@ +https://gitlab.freedesktop.org/xdg/shared-mime-info/uploads/80c7f1afbcad2769f38aeb9ba6317a51/shared-mime-info-1.12.tar.xz +files/intltool intltool-fake/ diff --git a/testing/shared-mime-info/version b/testing/shared-mime-info/version new file mode 100644 index 00000000..44724bd8 --- /dev/null +++ b/testing/shared-mime-info/version @@ -0,0 +1 @@ +1.12 1