python-dns: update compile rule and add PyPackage rules
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
parent
50bbabec9f
commit
0bfec165fa
1 changed files with 5 additions and 5 deletions
|
@ -34,13 +34,13 @@ define Package/python-dns/description
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
$(call Build/Compile/PyMod,,\
|
||||||
|
install --prefix="$(PKG_INSTALL_DIR)/usr" \
|
||||||
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python-dns/install
|
define PyPackage/python-dns/filespec
|
||||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
+|/usr/lib/python$(PYTHON_VERSION)/site-packages
|
||||||
$(CP) $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/dns/* \
|
|
||||||
$(1)$(PYTHON_PKG_DIR)
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call PyPackage,python-dns))
|
$(eval $(call PyPackage,python-dns))
|
||||||
|
|
Loading…
Reference in a new issue