Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 1 | DEPENDS = "curl db zlib" |
| 2 | RDEPENDS_${PN} = "dpkg bash debianutils" |
| 3 | require apt.inc |
| 4 | |
| 5 | require apt-package.inc |
| 6 | |
| 7 | PACKAGECONFIG ??= "lzma" |
| 8 | PACKAGECONFIG[lzma] = "ac_cv_lib_lzma_lzma_easy_encoder=yes,ac_cv_lib_lzma_lzma_easy_encoder=no,xz" |
| 9 | PACKAGECONFIG[bz2] = "ac_cv_lib_bz2_BZ2_bzopen=yes,ac_cv_lib_bz2_BZ2_bzopen=no,bzip2" |
| 10 | PACKAGECONFIG[lz4] = "ac_cv_lib_lz4_LZ4F_createCompressionContext=yes,ac_cv_lib_lz4_LZ4F_createCompressionContext=no,lz4" |
| 11 | |
| 12 | FILES_${PN} += "${bindir}/apt-key" |
| 13 | apt-manpages += "doc/apt-key.8" |
| 14 | |
| 15 | do_install_append() { |
| 16 | #Write the correct apt-architecture to apt.conf |
| 17 | APT_CONF=${D}/etc/apt/apt.conf |
| 18 | echo 'APT::Architecture "${DPKG_ARCH}";' > ${APT_CONF} |
| 19 | oe_libinstall -so -C bin libapt-private ${D}${libdir}/ |
| 20 | } |