libevhtp: do not delete source package, download through Git instead
Signed-off-by: Gergely Kiss <mail.gery@gmail.com>
This commit is contained in:
parent
0cb2b6d41e
commit
39e937fae7
1 changed files with 7 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (C) 2007-2015 OpenWrt.org
|
# Copyright (C) 2007-2016 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
|
@ -9,12 +9,14 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libevhtp
|
PKG_NAME:=libevhtp
|
||||||
PKG_VERSION:=1.2.10
|
PKG_VERSION:=1.2.10
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
PKG_LICENSE:=BSD-3-Clause
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_VERSION).tar.gz
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://github.com/ellzey/libevhtp/archive/
|
PKG_SOURCE_URL:=https://github.com/ellzey/libevhtp.git
|
||||||
PKG_MD5SUM:=e7261c7e34654f78047431d169b88806
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
PKG_SOURCE_VERSION:=ba4c44eed1fb7a5cf8e4deb236af4f7675cc72d5
|
||||||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||||
|
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
|
@ -37,18 +39,10 @@ endef
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/cmake.mk
|
include $(INCLUDE_DIR)/cmake.mk
|
||||||
|
|
||||||
Hooks/Prepare/Post += delete_source_package
|
|
||||||
|
|
||||||
define delete_source_package
|
|
||||||
# deleting source package as its filename is ambiguous
|
|
||||||
rm -f $(DL_DIR)/$(PKG_SOURCE)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/{include,lib}
|
$(INSTALL_DIR) $(1)/usr/{include,lib}
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libevhtp.so* $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libevhtp.so* $(1)/usr/lib/
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/libevhtp/install
|
define Package/libevhtp/install
|
||||||
|
|
Loading…
Reference in a new issue