blob: ae0bce933dd39ce37804712ca4f02713f56d2c92 [file] [log] [blame]
Patrick Williamsc0f7c042017-02-23 20:41:17 -06001DEPENDS = "curl db zlib"
2RDEPENDS_${PN} = "dpkg bash debianutils"
3require apt.inc
4
5require apt-package.inc
6
7PACKAGECONFIG ??= "lzma"
8PACKAGECONFIG[lzma] = "ac_cv_lib_lzma_lzma_easy_encoder=yes,ac_cv_lib_lzma_lzma_easy_encoder=no,xz"
9PACKAGECONFIG[bz2] = "ac_cv_lib_bz2_BZ2_bzopen=yes,ac_cv_lib_bz2_BZ2_bzopen=no,bzip2"
10PACKAGECONFIG[lz4] = "ac_cv_lib_lz4_LZ4F_createCompressionContext=yes,ac_cv_lib_lz4_LZ4F_createCompressionContext=no,lz4"
11
12FILES_${PN} += "${bindir}/apt-key"
13apt-manpages += "doc/apt-key.8"
14
15do_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}