OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | # |
| 2 | # This is free software, licensed under the GNU General Public License v2. |
| 3 | # |
| 4 | |
| 5 | include $(TOPDIR)/rules.mk |
| 6 | |
| 7 | PKG_NAME:=fbsize |
| 8 | PKG_VERSION:=0.0.1 |
| 9 | PKG_RELEASE:=1 |
| 10 | |
| 11 | include $(INCLUDE_DIR)/package.mk |
| 12 | |
| 13 | define Package/fbsize |
| 14 | SECTION:=utils |
| 15 | CATEGORY:=Utilities |
| 16 | TITLE:=fbsize shows current terminal size |
| 17 | SUBMENU:=Terminal |
| 18 | endef |
| 19 | |
| 20 | define Package/fbsize/description |
| 21 | fbsize, a small utility to show current terminal size (might be handy) |
| 22 | endef |
| 23 | |
| 24 | define Build/Compile |
| 25 | $(TARGET_CC) -o $(PKG_BUILD_DIR)/fbsize ./files/fbsize.c |
| 26 | endef |
| 27 | |
| 28 | define Package/fbsize/install |
| 29 | $(INSTALL_DIR) \ |
| 30 | $(1)/usr/bin |
| 31 | |
| 32 | $(INSTALL_BIN) \ |
| 33 | $(PKG_BUILD_DIR)/fbsize \ |
| 34 | $(1)/usr/bin/fbsize |
| 35 | |
| 36 | endef |
| 37 | |
| 38 | $(eval $(call BuildPackage,fbsize)) |
| 39 |
