Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "OpenEmbedded RPM resolver utility" |
| 2 | DESCRIPTION = "OpenEmbedded RPM resolver - performs RPM database lookups in batches to avoid \ |
| 3 | repeated invocations of rpm on the command line." |
| 4 | DEPENDS = "rpm" |
| 5 | LICENSE = "GPLv2" |
| 6 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" |
| 7 | PR = "r2" |
| 8 | |
| 9 | SRC_URI = "file://rpmresolve.c" |
| 10 | |
| 11 | S = "${WORKDIR}" |
| 12 | |
| 13 | do_compile() { |
| 14 | ${CC} ${CFLAGS} -ggdb -I${STAGING_INCDIR}/rpm ${LDFLAGS} rpmresolve.c -o rpmresolve -lrpmbuild -lrpm -lrpmio -lrpmdb -lpopt |
| 15 | } |
| 16 | |
| 17 | do_install() { |
| 18 | install -d ${D}${bindir} |
| 19 | install -m 0755 rpmresolve ${D}${bindir} |
| 20 | } |
| 21 | |
| 22 | do_install_append_class-native() { |
| 23 | create_wrapper ${D}/${bindir}/rpmresolve \ |
| 24 | RPM_USRLIBRPM=${STAGING_LIBDIR_NATIVE}/rpm \ |
| 25 | RPM_ETCRPM=${STAGING_ETCDIR_NATIVE}/rpm \ |
| 26 | RPM_LOCALEDIRRPM=${STAGING_DATADIR_NATIVE}/locale |
| 27 | } |
| 28 | |
| 29 | BBCLASSEXTEND = "native nativesdk" |