2 # Copyright (C) 2010-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.greenwoodsoftware.com/less
16 PKG_MD5SUM:=817bf051953ad2dea825a1cdf460caa4
18 include $(INCLUDE_DIR)/package.mk
23 TITLE:=Pager program similar to more
25 URL:=http://www.greenwoodsoftware.com/less/
28 define Package/less/description
29 Full version of GNU less utility
32 define Package/less/install
33 $(INSTALL_DIR) $(1)/bin
34 $(CP) $(PKG_BUILD_DIR)/less $(1)/bin/less
37 define Package/less/postinst
39 [ -L "$${IPKG_INSTROOT}/usr/bin/less" ] && rm -f "$${IPKG_INSTROOT}/usr/bin/less"
43 define Package/less/postrm
45 /bin/busybox less -h 2>&1 | grep -q BusyBox && ln -sf ../../bin/busybox /usr/bin/less
49 $(eval $(call BuildPackage,less))