mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-22 23:30:05 -07:00
shared-mime-info: new package at 1.12
This commit is contained in:
parent
d35d9e922e
commit
92c2143275
16
testing/shared-mime-info/build
Executable file
16
testing/shared-mime-info/build
Executable file
@ -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
|
2
testing/shared-mime-info/checksums
Normal file
2
testing/shared-mime-info/checksums
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
18b2f0fe07ed0d6f81951a5fd5ece44de9c8aeb4dc5bb20d4f595f6cc6bd403e shared-mime-info-1.12.tar.xz
|
||||||
|
0dbea64d9a578d2448bf3a5ddf1ed97931cb3d7250eefbad2f75f0f8b5fdfc17 intltool
|
45
testing/shared-mime-info/files/intltool
Executable file
45
testing/shared-mime-info/files/intltool
Executable file
@ -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,</_\([-A-Za-z0-9_]*\)>,</\1>,g' \
|
||||||
|
< "$sarg" > "$larg"
|
||||||
|
else
|
||||||
|
sed 's/^_//' < "$sarg" > "$larg"
|
||||||
|
fi
|
2
testing/shared-mime-info/sources
Normal file
2
testing/shared-mime-info/sources
Normal file
@ -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/
|
1
testing/shared-mime-info/version
Normal file
1
testing/shared-mime-info/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1.12 1
|
Loading…
Reference in New Issue
Block a user