diff --git a/dist/debian/Makefile b/dist/debian/Makefile index 15fb20a0..46bbfadb 100644 --- a/dist/debian/Makefile +++ b/dist/debian/Makefile @@ -1,13 +1,12 @@ include ./CONFIG DEPENDS= -ARCH=amd64 -ARCH=x64 +CROSSARCH=x64 PWD=$(shell pwd) PACKAGE_DIR?=${PWD} DOCKCROSS=$(PWD)/../dockcross -R2PLUGDIR=/usr/lib/radare2/last +R2PLUGDIR=/usr/lib/radare2/$(VERSION) all: root @@ -19,8 +18,8 @@ all: root ${MAKE} deb root: - cd ../.. ; \ - $(DOCKCROSS) --image dockcross/linux-$(ARCH) bash -c \ + cd ../.. && \ + $(DOCKCROSS) --image dockcross/linux-$(CROSSARCH) bash -c \ "R2_PLUGDIR=$(R2PLUGDIR) DESTDIR=$(PWD)/root bash dist/deps.sh" mkdir -p root/$(R2PLUGDIR) cp ../../io_frida.so root/$(R2PLUGDIR) diff --git a/dist/deps.sh b/dist/deps.sh index 48c2b2e4..5329d89d 100755 --- a/dist/deps.sh +++ b/dist/deps.sh @@ -2,7 +2,6 @@ RV=2.5.0 RA=amd64 wget -c http://radare.mikelloc.com/get/${RV}/radare2_${RV}_${RA}.deb wget -c http://radare.mikelloc.com/get/${RV}/radare2-dev_${RV}_${RA}.deb -#wget -c http://www.radare.org/get/debian/radare2-dev_${RV}_${RA}.deb sudo dpkg -i radare2_${RV}_${RA}.deb sudo dpkg -i radare2-dev_${RV}_${RA}.deb