diff options
| author | Simon Rettberg | 2014-04-01 15:35:26 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2014-04-01 15:35:26 +0200 |
| commit | c189f9ce049cbae19aaad06ae74a642b1e0733d4 (patch) | |
| tree | a1db240f7adba119bc7469474bed73d3cd23bb58 /remote/modules/openbox/module.build | |
| parent | [vmware/vmchooser] Generalize string cleaning function (diff) | |
| parent | [config curitiba] add curitiba config (diff) | |
| download | tm-scripts-c189f9ce049cbae19aaad06ae74a642b1e0733d4.tar.gz tm-scripts-c189f9ce049cbae19aaad06ae74a642b1e0733d4.tar.xz tm-scripts-c189f9ce049cbae19aaad06ae74a642b1e0733d4.zip | |
Merge branch 'master' of simonslx:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/openbox/module.build')
| -rw-r--r-- | remote/modules/openbox/module.build | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/remote/modules/openbox/module.build b/remote/modules/openbox/module.build new file mode 100644 index 00000000..0cd6aaad --- /dev/null +++ b/remote/modules/openbox/module.build @@ -0,0 +1,36 @@ +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() { + [ ! -d "$TARGET_BUILD_DIR/etc/pango" ] && mkdir -p "$TARGET_BUILD_DIR/etc/pango" + + # 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 + perror "Could not find either pango-querymodules or pango-querymodules-64!" + fi + fi + $PANGO_QUERYMODULES_ARCH > "$TARGET_BUILD_DIR/etc/pango/pango.modules" +} |
