diff options
| author | Jonathan Bauer | 2014-03-25 15:24:04 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2014-03-25 15:24:04 +0100 |
| commit | 3d1235af060955e271be68240c0ca46bc6d81b03 (patch) | |
| tree | ef02dcc4bb8476cfeef07e2df6a38b4c29d350df /remote/modules/openbox/module.build | |
| parent | [rootfs-stage32] /var/log/openslx in tmpfiles.d (diff) | |
| download | tm-scripts-3d1235af060955e271be68240c0ca46bc6d81b03.tar.gz tm-scripts-3d1235af060955e271be68240c0ca46bc6d81b03.tar.xz tm-scripts-3d1235af060955e271be68240c0ca46bc6d81b03.zip | |
[modules] new module naming convention
rename $MODULE.{conf,build} to module.{conf,build}
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" +} |
