summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libcap-ng/libcap-ng-python_0.8.2.bb
blob: 6cea422d1136d0357036c7ed1b24bfb02dbd05df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require libcap-ng.inc

FILESEXTRAPATHS_prepend := "${THISDIR}/libcap-ng:"

SUMMARY .= " - python"

inherit lib_package autotools python3targetconfig

DEPENDS += "libcap-ng python3 swig-native"

S = "${WORKDIR}/libcap-ng-${PV}"

EXTRA_OECONF += "--with-python --with-python3"

do_install_append() {
    rm -rf ${D}${bindir}
    rm -rf ${D}${libdir}/.debug
    rm -f ${D}${libdir}/lib*
    rm -rf ${D}${libdir}/pkgconfig
    rm -rf ${D}${datadir}
    rm -rf ${D}${includedir}
}

# PACKAGES = "${PN}"

FILES_${PN} = "${libdir}/python${PYTHON_BASEVERSION}"
FILES_${PN}-dbg =+ "${PYTHON_SITEPACKAGES_DIR}/.debug/_capng.so"