build: Configure scripts to use the correct lib directory
When installing through the PKGBUILD, a non-blank DESTDIR is used and the ocarina-* scripts are configured to use the package directory rather than the installed directory. Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
parent
f6fd7915c9
commit
ed0ace5366
|
@ -66,7 +66,8 @@ env.Alias("tests", [version_h] + [test_list]);
|
||||||
|
|
||||||
# Install Ocarina
|
# Install Ocarina
|
||||||
scripts = os.listdir("scripts/")
|
scripts = os.listdir("scripts/")
|
||||||
lib = DESTDIR + PREFIX + "/lib/ocarina" + POSTFIX
|
baselib = PREFIX + "/lib/ocarina" + POSTFIX
|
||||||
|
lib = DESTDIR + baselib
|
||||||
bin = DESTDIR + PREFIX + "/bin/"
|
bin = DESTDIR + PREFIX + "/bin/"
|
||||||
images = lib + "/images"
|
images = lib + "/images"
|
||||||
env.Install(lib, ocarina)
|
env.Install(lib, ocarina)
|
||||||
|
@ -81,7 +82,7 @@ def process_script(target, source, env):
|
||||||
ocarina = ocarina + "-debug"
|
ocarina = ocarina + "-debug"
|
||||||
saria = saria + "-debug"
|
saria = saria + "-debug"
|
||||||
for line in open(source[0].rfile().abspath):
|
for line in open(source[0].rfile().abspath):
|
||||||
line = line.replace("%%BIN%%", lib + "/ocarina.bin")
|
line = line.replace("%%BIN%%", baselib + "/ocarina.bin")
|
||||||
line = line.replace("%%OCARINA%%", ocarina)
|
line = line.replace("%%OCARINA%%", ocarina)
|
||||||
line = line.replace("%%SARIA%%", saria)
|
line = line.replace("%%SARIA%%", saria)
|
||||||
f.write(line)
|
f.write(line)
|
||||||
|
|
Loading…
Reference in New Issue