packages/libs/shflags/Makefile
juhosg ed081e076e packages: shflags: Fix getting sources
Freecwmp does not export a git repository for shflags anymore. This fix
makes OpenWrt get the sources directly from the svn repository of the
shflags googlecode project.

Signed-off-by: Diego López Recas <sueltalo@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@38480 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-20 15:58:26 +00:00

50 lines
1022 B
Makefile

#
# Copyright (C) 2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=shflags
PKG_REV:=133
PKG_VERSION:=2012-06-11_r$(PKG_REV)
PKG_RELEASE=1.0.x
PKG_SOURCE_PROTO:=svn
PKG_SOURCE_URL:=http://shflags.googlecode.com/svn/trunk
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=$(PKG_REV)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
include $(INCLUDE_DIR)/package.mk
define Package/shflags
SECTION:=libs
CATEGORY:=Libraries
TITLE:=shflags
DEPENDS:=+getopt
URL:=http://code.google.com/p/shflags/
endef
define Package/shflags/description
command-line flags module for Unix shell scripts
endef
define Build/Configure
endef
define Build/Compile
endef
define Build/Install
endef
define Package/shflags/install
$(INSTALL_DIR) $(1)/usr/share/shflags
$(CP) $(PKG_BUILD_DIR)/source/1.0/src/shflags $(1)/usr/share/shflags/shflags.sh
endef
$(eval $(call BuildPackage,shflags))