Added InstallDir.RENAME

parent 9b4ff95b
......@@ -34,6 +34,7 @@ class InstallDir:
self.SOURCE = kwargs.get("SOURCE", None)
self.WHITELIST = kwargs.get("WHITELIST", None)
self.BLACKLIST = kwargs.get("BLACKLIST", None)
self.RENAME = kwargs.get("RENAME", None)
class File:
......@@ -274,7 +275,12 @@ class Pybuild1(Pybuild):
sourcedir, _ = os.path.splitext(sourcedir)
source = os.path.join(self.WORKDIR, sourcedir, install_dir.PATH)
dest = os.path.join(self.D, install_dir.DESTPATH)
if install_dir.RENAME is None:
dest = os.path.join(self.D, install_dir.DESTPATH)
else:
dest = os.path.join(
self.D, os.path.join(install_dir.DESTPATH, install_dir.RENAME)
)
for file in install_dir.ARCHIVES + install_dir.PLUGINS:
# Remove files that aren't going to be used.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment