Root/pyclock/Makefile

1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=pyclock
4PKG_VERSION:=0.0
5PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
6PKG_SOURCE:=$(PKG_NAME).tar.bz2
7PKG_SOURCE_URL:=http://slashhome.se/files/
8UNPACK_CMD=tar jxvf $(DL_DIR)/$(PKG_SOURCE) -C $(1)
9
10include $(INCLUDE_DIR)/package.mk
11
12define Package/pyclock
13    MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
14    TITLE:=pyclock
15    SECTION:=utils
16    CATEGORY:=Utilities
17    DEPENDS:=+python +pygame
18endef
19
20define Package/pyclock/description
21    python digital clock
22endef
23
24define Build/Compile
25endef
26
27define 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
38endef
39
40$(eval $(call BuildPackage,pyclock))
41

Archive Download this file



interactive