1 DESCRIPTION = "Itsy Package Manager"
2 DESCRIPTION_libipkg = "Itsy Package Manager Library"
4 PROVIDES = "virtual/ipkg libipkg"
5 DEPENDS = "virtual/libc"
8 PACKAGES =+ "libipkg-dev libipkg "
9 FILES_libipkg-dev = "${libdir}/*.a ${libdir}/*.la ${libdir}/*.so"
10 FILES_libipkg = "${libdir}"
12 SRC_URI = "cvs://anoncvs:anoncvs@cvs.handhelds.org/cvs;module=familiar/dist/ipkg;tag=${@'V' + oe.data.getVar('PV',d,1).replace('.', '-')} \
13 file://${FILESDIR}/buffer-size.patch;patch=1;pnum=0"
14 S = "${WORKDIR}/ipkg/C"
16 inherit autotools libtool
18 pkg_postinst_ipkg () {
20 if [ "x$D" != "x" ]; then
21 install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d
22 # this needs to happen after S35mountall so that /tmp is available
23 echo -e "#!/bin/sh\nipkg-cl configure\nrm -f \$0" > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S36configure
24 chmod 755 ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S36configure
27 update-alternatives --install /usr/bin/ipkg ipkg /usr/bin/ipkg-cl 100
32 update-alternatives --remove ipkg /usr/bin/ipkg-cl
36 oe_soinstall .libs/libipkg.so.0.0.0 ${STAGING_LIBDIR}/
37 install -d ${STAGING_INCDIR}/replace/
38 install -m 0644 replace/replace.h ${STAGING_INCDIR}/replace/
41 install -m 0644 $f ${STAGING_INCDIR}/