blob: 98ff95202449cef5c6deff98d8378f5db9164dea (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#!/bin/bash
fetch_source() {
:
}
build() {
COPYLIST="list_dpkg_output"
[ -e "$COPYLIST" ] && rm "$COPYLIST"
list_packet_files >> "$COPYLIST"
# FIXME: Hack: openSUSE's rpm -ql lilsts non-existant pango.modules, which makes
# tarcopy fail. We probably can't fix that, so remove it using grep....
tarcopy "$(cat "$COPYLIST" | grep -v 'pango\.modules$' | sort -u)" "${MODULE_BUILD_DIR}"
return 0
}
post_copy() {
# little Workaround, as under e.g. 64bit Suse the binary is called
# pango-querymodules-64, not pango-querymodules.
which pango-querymodules 2>/dev/null 1>&2
ERR=$?
if [[ "$ERR" -eq 0 ]]; then
PANGO_QUERYMODULES_ARCH=pango-querymodules
else
which pango-querymodules-64 2>/dev/null 1>&2
ERR=$?
if [[ "$ERR" -eq 0 ]]; then
PANGO_QUERYMODULES_ARCH=pango-querymodules-64
else
pwarning "Could not find either pango-querymodules or pango-querymodules-64!"
pwarning "Newer pango versions (1.37) deprecated this tool. Most likely all is fine."
return 0
fi
fi
[ ! -d "$TARGET_BUILD_DIR/etc/pango" ] && mkdir -p "$TARGET_BUILD_DIR/etc/pango"
$PANGO_QUERYMODULES_ARCH > "$TARGET_BUILD_DIR/etc/pango/pango.modules"
}
|