|
|
@@ -1,20 +1,35 @@ |
|
|
|
#!/usr/bin/make -f |
|
|
|
|
|
|
|
VERSION=$(shell ls | grep \.run | head -n 1 | awk 'sub("-","\n")' | tail -n 1 | awk 'sub("-x86","\n")' | head -n 1) |
|
|
|
GCC5=$(shell cat debian/changelog | head -n 1 | grep -q v5 && echo true) |
|
|
|
|
|
|
|
ifeq ($(shell dpkg-architecture -qDEB_HOST_ARCH),amd64) |
|
|
|
ARDOUR_FILE=Ardour-$(VERSION)-x86_64-gcc5.run |
|
|
|
ARDOUR_FILE=Ardour-$(VERSION)-x86_64.run |
|
|
|
else |
|
|
|
ARDOUR_FILE=Ardour-$(VERSION)-x86-gcc5.run |
|
|
|
ARDOUR_FILE=Ardour-$(VERSION)-x86.run |
|
|
|
endif |
|
|
|
|
|
|
|
# ifeq ($(shell dpkg-architecture -qDEB_HOST_ARCH),amd64) |
|
|
|
# ARDOUR_FILE=Ardour-$(VERSION)-x86_64-gcc5.run |
|
|
|
# else |
|
|
|
# ARDOUR_FILE=Ardour-$(VERSION)-x86-gcc5.run |
|
|
|
# endif |
|
|
|
|
|
|
|
override_dh_auto_install: |
|
|
|
chmod +x $(ARDOUR_FILE) |
|
|
|
./$(ARDOUR_FILE) --target ./tmp --noexec |
|
|
|
chmod -x $(ARDOUR_FILE) |
|
|
|
|
|
|
|
ifeq ($(GCC5),true) |
|
|
|
cd tmp && \ |
|
|
|
tar -xf *-gcc5-$(VERSION).tar |
|
|
|
else |
|
|
|
cd tmp && \ |
|
|
|
tar -xf *.tar |
|
|
|
tar -xf *-gcc4-$(VERSION).tar |
|
|
|
endif |
|
|
|
|
|
|
|
# cd tmp && \ |
|
|
|
# tar -xf *.tar |
|
|
|
|
|
|
|
rm tmp/Ardour_*-*/bin/ardour5 |
|
|
|
rm tmp/Ardour_*-*/bin/*.uninstall.sh |
|
|
|