OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | include $(TOPDIR)/rules.mk |
| 2 | |
| 3 | PKG_NAME:=pyclock |
| 4 | PKG_VERSION:=0.0 |
| 5 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) |
| 6 | PKG_SOURCE:=$(PKG_NAME).tar.bz2 |
| 7 | PKG_SOURCE_URL:=http://slashhome.se/files/ |
| 8 | UNPACK_CMD=tar jxvf $(DL_DIR)/$(PKG_SOURCE) -C $(1) |
| 9 | |
| 10 | include $(INCLUDE_DIR)/package.mk |
| 11 | |
| 12 | define Package/pyclock |
| 13 | MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc> |
| 14 | TITLE:=pyclock |
| 15 | SECTION:=utils |
| 16 | CATEGORY:=Utilities |
| 17 | DEPENDS:=+python +pygame |
| 18 | endef |
| 19 | |
| 20 | define Package/pyclock/description |
| 21 | python digital clock |
| 22 | endef |
| 23 | |
| 24 | define Build/Compile |
| 25 | endef |
| 26 | |
| 27 | define Package/pyclock/install |
| 28 | $(INSTALL_DIR) $(1)/usr/bin |
| 29 | $(INSTALL_DIR) $(1)/usr/share/pyclock |
| 30 | |
| 31 | echo -e "\0043\0041/bin/sh\ncd /usr/share/pyclock/ && ./pyclock.py" > $(1)/usr/bin/pyclock |
| 32 | chmod +x $(1)/usr/bin/pyclock |
| 33 | |
| 34 | $(CP) $(PKG_BUILD_DIR)/COPY \ |
| 35 | $(PKG_BUILD_DIR)/data \ |
| 36 | $(PKG_BUILD_DIR)/pyclock.py \ |
| 37 | $(1)/usr/share/pyclock |
| 38 | endef |
| 39 | |
| 40 | $(eval $(call BuildPackage,pyclock)) |
| 41 |
