# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/validator/validator.conf # Copyright (C) 2004 - 2022 The T2 SDE Project # Copyright (C) 1998 - 2004 ROCK Linux Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- if [ $prefix_auto = 1 ]; then prefix="opt/validator" set_confopt fi # no DESTDIR var_append makeinstopt ' ' 'prefix=$root/$prefix' validator_premake() { mkdir -p $root$bindir mkdir -p $root/$prefix/share } validator_postinstall() { tar $taropt `match_source_file -p wdg-sgml-lib` -C $root/$prefix/share install -m 755 `match_source_file -p validate` $root$bindir/validate sed -i "s,/usr/local/,/$prefix/," $root$bindir/validate } hook_add premake 3 "validator_premake" hook_add postmake 3 "validator_postinstall"