mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2025-04-21 12:27:27 +03:00
add desktop file and use icon file, some minor cleanups
This commit is contained in:
@@ -22,7 +22,8 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
|
|
||||||
TARGET_CFLAGS += \
|
TARGET_CFLAGS += \
|
||||||
-I$(STAGING_DIR)/usr/lib/libintl/include/ \
|
-I$(STAGING_DIR)/usr/lib/libintl/include/ \
|
||||||
-I$(STAGING_DIR)/usr/lib/libiconv/include/
|
-I$(STAGING_DIR)/usr/lib/libiconv/include/ \
|
||||||
|
-I$(STAGING_DIR)/usr/include/SDL
|
||||||
|
|
||||||
TARGET_LDFLAGS += \
|
TARGET_LDFLAGS += \
|
||||||
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
|
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
|
||||||
@@ -41,8 +42,6 @@ define Package/dgclock/description
|
|||||||
Clock and date in sdl
|
Clock and date in sdl
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL
|
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(call Build/Compile/Default, \
|
$(call Build/Compile/Default, \
|
||||||
A320=1 \
|
A320=1 \
|
||||||
@@ -51,12 +50,21 @@ endef
|
|||||||
|
|
||||||
define Package/dgclock/install
|
define Package/dgclock/install
|
||||||
$(INSTALL_DIR) \
|
$(INSTALL_DIR) \
|
||||||
$(1)/usr/bin
|
$(1)/usr/bin \
|
||||||
|
$(1)/usr/share/icons \
|
||||||
|
$(1)/usr/share/applications
|
||||||
|
|
||||||
$(INSTALL_BIN) \
|
$(INSTALL_BIN) \
|
||||||
$(PKG_BUILD_DIR)/bin/a320/dgclock \
|
$(PKG_BUILD_DIR)/bin/a320/dgclock \
|
||||||
$(1)/usr/bin/
|
$(1)/usr/bin/
|
||||||
|
|
||||||
|
$(INSTALL_DATA) \
|
||||||
|
$(PKG_BUILD_DIR)/dgclock/dgclock.png \
|
||||||
|
$(1)/usr/share/icons/
|
||||||
|
|
||||||
|
$(INSTALL_DATA) \
|
||||||
|
./files/dglock.desktop \
|
||||||
|
$(1)/usr/share/applications/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,dgclock))
|
$(eval $(call BuildPackage,dgclock))
|
||||||
|
|||||||
11
dgclock/files/dgclock.desktop
Normal file
11
dgclock/files/dgclock.desktop
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=dgclock
|
||||||
|
Comment=sdl based date/time displayer
|
||||||
|
Encoding=UTF-8
|
||||||
|
Version=1.0
|
||||||
|
Type=Application
|
||||||
|
Exec=dgclock
|
||||||
|
Icon=dgclock
|
||||||
|
Terminal=false
|
||||||
|
Categories=Application
|
||||||
|
SingleInstance=false
|
||||||
Reference in New Issue
Block a user