apk-tools.patch (1031B)
1 diff --git a/Makefile b/Makefile 2 index 4156ac6..4fd260f 100644 3 --- a/Makefile 4 +++ b/Makefile 5 @@ -51,3 +51,17 @@ tag: check 6 git tag -s v$(VERSION) -m "apk-tools-$(VERSION)" 7 8 src/: libfetch/ 9 + 10 +only-static: 11 + $(Q)$(MAKE) -f Make.rules build=libfetch libfetch/libfetch.a 12 + $(Q)$(MAKE) -f Make.rules build=src src/libapk.a src/apk.static src/apk.pc 13 + 14 +install-static: only-static 15 + $(INSTALLDIR) $(DESTDIR)$(SBINDIR) 16 + $(INSTALL) src/apk.static $(DESTDIR)$(SBINDIR) 17 + $(INSTALLDIR) $(DESTDIR)$(LIBDIR) 18 + $(INSTALL) src/libapk.a $(DESTDIR)$(LIBDIR) 19 + $(INSTALLDIR) $(DESTDIR)$(INCLUDEDIR)/apk 20 + $(INSTALL) -m644 src/*.h $(DESTDIR)$(INCLUDEDIR)/apk 21 + $(INSTALLDIR) $(DESTDIR)$(PKGCONFIGDIR) 22 + $(INSTALL) -m644 src/apk.pc $(DESTDIR)$(PKGCONFIGDIR) 23 diff --git a/src/adb_walk_adb.c b/src/adb_walk_adb.c 24 index e1a686d..09581b1 100644 25 --- a/src/adb_walk_adb.c 26 +++ b/src/adb_walk_adb.c 27 @@ -2,6 +2,7 @@ 28 29 #include <stdio.h> 30 #include <unistd.h> 31 +#include <inttypes.h> 32 #include "apk_adb.h" 33 #include "apk_applet.h" 34 #include "apk_print.h"