mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-12-26 01:01:50 +01:00
install pre-compiled tools to /usr/lib/ARCH/patchimage/
This commit is contained in:
parent
d9032f5107
commit
6f3d9763a5
18
Makefile
18
Makefile
@ -4,11 +4,27 @@ all:
|
|||||||
install:
|
install:
|
||||||
mkdir -p $(DESTDIR)/usr/bin/
|
mkdir -p $(DESTDIR)/usr/bin/
|
||||||
mkdir -p $(DESTDIR)/usr/share/patchimage/
|
mkdir -p $(DESTDIR)/usr/share/patchimage/
|
||||||
cp -rv data database override patches scripts tools $(DESTDIR)/usr/share/patchimage/
|
cp -rv data database patches scripts $(DESTDIR)/usr/share/patchimage/
|
||||||
install -m755 patchimage.sh $(DESTDIR)/usr/bin/patchimage
|
install -m755 patchimage.sh $(DESTDIR)/usr/bin/patchimage
|
||||||
|
if [ $(shell uname -m) = x86_64 ]; then \
|
||||||
|
mkdir -p $(DESTDIR)/usr/lib/x86_64-linux-gnu/patchimage/tools ; \
|
||||||
|
mkdir -p $(DESTDIR)/usr/lib/x86_64-linux-gnu/patchimage/override ; \
|
||||||
|
cp -rv tools/*.64 tools/unp tools/ucat tools/gdown.pl tools/ignore_3dstool.txt \
|
||||||
|
$(DESTDIR)/usr/lib/x86_64-linux-gnu/patchimage/tools ; \
|
||||||
|
cp -rv override/linux64 $(DESTDIR)/usr/lib/x86_64-linux-gnu/patchimage/override ; \
|
||||||
|
else mkdir -p $(DESTDIR)/usr/lib/i386-linux-gnu/patchimage/tools ; \
|
||||||
|
mkdir -p $(DESTDIR)/usr/lib/i386-linux-gnu/patchimage/override ; \
|
||||||
|
cp -rv tools/*.32 tools/unp tools/ucat tools/gdown.pl tools/ignore_3dstool.txt \
|
||||||
|
$(DESTDIR)/usr/lib/i386-linux-gnu/patchimage/tools ; \
|
||||||
|
cp -rv override/linux32 $(DESTDIR)/usr/lib/i386-linux-gnu/patchimage/override ; \
|
||||||
|
fi
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -rf $(DESTDIR)/usr/share/patchimage
|
rm -rf $(DESTDIR)/usr/share/patchimage
|
||||||
rm -f $(DESTDIR)/usr/bin/patchimage
|
rm -f $(DESTDIR)/usr/bin/patchimage
|
||||||
|
if [ $(shell uname -m) = x86_64 ]; then \
|
||||||
|
rm -rf $(DESTDIR)/usr/lib/x86_64-linux-gnu/patchimage ; \
|
||||||
|
else rm -rf $(DESTDIR)/usr/lib/i386-linux-gnu/patchimage ; \
|
||||||
|
fi
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
22
debian/patchimage-tools-amd64.install
vendored
22
debian/patchimage-tools-amd64.install
vendored
@ -1,9 +1,13 @@
|
|||||||
usr/share/patchimage/tools/3dstool.64
|
usr/lib/x86_64-linux-gnu/patchimage/tools/gdown.pl
|
||||||
usr/share/patchimage/tools/applyppf3.64
|
usr/lib/x86_64-linux-gnu/patchimage/tools/ignore_3dstool.txt
|
||||||
usr/share/patchimage/tools/ctrtool.64
|
usr/lib/x86_64-linux-gnu/patchimage/tools/ucat
|
||||||
usr/share/patchimage/tools/titledumper.64
|
usr/lib/x86_64-linux-gnu/patchimage/tools/unp
|
||||||
usr/share/patchimage/tools/uips.64
|
usr/lib/x86_64-linux-gnu/patchimage/tools/3dstool.64
|
||||||
usr/share/patchimage/tools/wit.64
|
usr/lib/x86_64-linux-gnu/patchimage/tools/applyppf3.64
|
||||||
usr/share/patchimage/tools/wszst.64
|
usr/lib/x86_64-linux-gnu/patchimage/tools/ctrtool.64
|
||||||
usr/share/patchimage/tools/xdelta3.64
|
usr/lib/x86_64-linux-gnu/patchimage/tools/titledumper.64
|
||||||
usr/share/patchimage/override/linux64
|
usr/lib/x86_64-linux-gnu/patchimage/tools/uips.64
|
||||||
|
usr/lib/x86_64-linux-gnu/patchimage/tools/wit.64
|
||||||
|
usr/lib/x86_64-linux-gnu/patchimage/tools/wszst.64
|
||||||
|
usr/lib/x86_64-linux-gnu/patchimage/tools/xdelta3.64
|
||||||
|
usr/lib/x86_64-linux-gnu/patchimage/override/linux64
|
||||||
|
22
debian/patchimage-tools-i386.install
vendored
22
debian/patchimage-tools-i386.install
vendored
@ -1,9 +1,13 @@
|
|||||||
usr/share/patchimage/tools/3dstool.32
|
usr/lib/i386-linux-gnu/patchimage/tools/gdown.pl
|
||||||
usr/share/patchimage/tools/applyppf3.32
|
usr/lib/i386-linux-gnu/patchimage/tools/ignore_3dstool.txt
|
||||||
usr/share/patchimage/tools/ctrtool.32
|
usr/lib/i386-linux-gnu/patchimage/tools/ucat
|
||||||
usr/share/patchimage/tools/titledumper.32
|
usr/lib/i386-linux-gnu/patchimage/tools/unp
|
||||||
usr/share/patchimage/tools/uips.32
|
usr/lib/i386-linux-gnu/patchimage/tools/3dstool.32
|
||||||
usr/share/patchimage/tools/wit.32
|
usr/lib/i386-linux-gnu/patchimage/tools/applyppf3.32
|
||||||
usr/share/patchimage/tools/wszst.32
|
usr/lib/i386-linux-gnu/patchimage/tools/ctrtool.32
|
||||||
usr/share/patchimage/tools/xdelta3.32
|
usr/lib/i386-linux-gnu/patchimage/tools/titledumper.32
|
||||||
usr/share/patchimage/override/linux32
|
usr/lib/i386-linux-gnu/patchimage/tools/uips.32
|
||||||
|
usr/lib/i386-linux-gnu/patchimage/tools/wit.32
|
||||||
|
usr/lib/i386-linux-gnu/patchimage/tools/wszst.32
|
||||||
|
usr/lib/i386-linux-gnu/patchimage/tools/xdelta3.32
|
||||||
|
usr/lib/i386-linux-gnu/patchimage/override/linux32
|
||||||
|
4
debian/patchimage.install
vendored
4
debian/patchimage.install
vendored
@ -3,7 +3,3 @@ usr/share/patchimage/data
|
|||||||
usr/share/patchimage/database
|
usr/share/patchimage/database
|
||||||
usr/share/patchimage/patches
|
usr/share/patchimage/patches
|
||||||
usr/share/patchimage/scripts
|
usr/share/patchimage/scripts
|
||||||
usr/share/patchimage/tools/gdown.pl
|
|
||||||
usr/share/patchimage/tools/ignore_3dstool.txt
|
|
||||||
usr/share/patchimage/tools/ucat
|
|
||||||
usr/share/patchimage/tools/unp
|
|
||||||
|
@ -22,8 +22,13 @@ else
|
|||||||
export PATCHIMAGE_SCRIPT_DIR=/usr/share/patchimage/scripts
|
export PATCHIMAGE_SCRIPT_DIR=/usr/share/patchimage/scripts
|
||||||
export PATCHIMAGE_PATCH_DIR=/usr/share/patchimage/patches
|
export PATCHIMAGE_PATCH_DIR=/usr/share/patchimage/patches
|
||||||
export PATCHIMAGE_DATA_DIR=/usr/share/patchimage/data
|
export PATCHIMAGE_DATA_DIR=/usr/share/patchimage/data
|
||||||
export PATCHIMAGE_TOOLS_DIR=/usr/share/patchimage/tools
|
if [[ $(uname -m) == "x86_64" ]]; then
|
||||||
export PATCHIMAGE_OVERRIDE_DIR=/usr/share/patchimage/override
|
export PATCHIMAGE_TOOLS_DIR=/usr/lib/x86_64-linux-gnu/patchimage/tools
|
||||||
|
export PATCHIMAGE_OVERRIDE_DIR=/usr/lib/x86_64-linux-gnu/patchimage/override
|
||||||
|
else
|
||||||
|
export PATCHIMAGE_TOOLS_DIR=/usr/lib/i386-linux-gnu/patchimage/tools
|
||||||
|
export PATCHIMAGE_OVERRIDE_DIR=/usr/lib/i386-linux-gnu/patchimage/override
|
||||||
|
fi
|
||||||
export PATCHIMAGE_DATABASE_DIR=/usr/share/patchimage/database
|
export PATCHIMAGE_DATABASE_DIR=/usr/share/patchimage/database
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user