3 # http://handhelds.org/packages/ipkg-utils
9 PKG_SOURCE_SITE
:= http
://handhelds.org
/packages
/ipkg-utils
/
10 PKG_SOURCE_FILE
:= $(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
11 PKG_SOURCE_CAT
:= zcat
12 PKG_SOURCE_DIR
:= $(PKG_NAME
)-$(PKG_VERSION
)
14 include $(TOPDIR
)/rules.mk
16 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_SOURCE_DIR
)
19 $(DL_DIR
)/$(PKG_SOURCE_FILE
):
21 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(PKG_SOURCE_FILE
) x
$(PKG_SOURCE_SITE
)
23 $(PKG_BUILD_DIR
)/.unpacked
: $(DL_DIR
)/$(PKG_SOURCE_FILE
)
24 mkdir
-p
$(TOOL_BUILD_DIR
)
25 $(PKG_SOURCE_CAT
) $(DL_DIR
)/$(PKG_SOURCE_FILE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
26 touch
$(PKG_BUILD_DIR
)/.unpacked
28 $(PKG_BUILD_DIR
)/.patched
: $(PKG_BUILD_DIR
)/.unpacked
29 $(PATCH
) $(PKG_BUILD_DIR
) $(PKG_VERSION
)/ \
*.patch
30 touch
$(PKG_BUILD_DIR
)/.patched
32 $(STAGING_DIR
)/usr
/bin
/ipkg-build
: $(PKG_BUILD_DIR
)/.patched
33 mkdir
-p
$(STAGING_DIR
)/etc
34 echo
"dest root /" > $(STAGING_DIR
)/etc
/ipkg.conf
35 echo
"option offline_root $(TARGET_DIR)" >> $(STAGING_DIR
)/etc
/ipkg.conf
36 mkdir
-p
$(STAGING_DIR
)/usr
/bin
37 install -m0755
$(PKG_BUILD_DIR
)/ipkg-build
$(STAGING_DIR
)/usr
/bin
38 install -m0755
$(PKG_BUILD_DIR
)/ipkg-buildpackage
$(STAGING_DIR
)/usr
/bin
39 install -m0755
$(PKG_BUILD_DIR
)/ipkg-make-index
$(STAGING_DIR
)/usr
/bin
40 install -m0755
$(PKG_BUILD_DIR
)/ipkg.py
$(STAGING_DIR
)/usr
/bin
42 source
: $(DL_DIR
)/$(PKG_SOURCE_FILE
)
44 prepare
: $(PKG_BUILD_DIR
)/.patched
48 install: $(STAGING_DIR
)/usr
/bin
/ipkg-build
51 rm -f
$(STAGING_DIR
)/etc
/ipkg.conf
52 rm -f
$(STAGING_DIR
)/usr
/bin
/ipkg
*
53 rm -rf
$(PKG_BUILD_DIR
)
This page took 0.050497 seconds and 5 git commands to generate.