Added GMU as a package

This commit is contained in:
DrUm78
2023-08-12 16:56:47 +02:00
parent 3fb400facd
commit bf4478e04b
87 changed files with 490 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
config BR2_PACKAGE_GMU
bool "gmu"
default y
select BR2_PACKAGE_SDL
help
A multi-format music player
https://github.com/jhe2/gmu

38
FunKey/package/gmu/gmu.mk Normal file
View File

@@ -0,0 +1,38 @@
################################################################################
#
# gmu
#
################################################################################
GMU_VERSION = v1.0-funkey-s
GMU_SITE_METHOD = git
GMU_SITE = https://github.com/DrUm78/gmu.git
GMU_LICENSE = GPL-2.1+
GMU_LICENSE_FILES = LICENSE
GMU_DEPENDENCIES = sdl
define GMU_BUILD_CMDS
(cd $(@D); \
sed -i -e 's|rm -rf|#rm -rf|g' package; \
sed -i -e 's|make -f Makefile.funkey clean|#make -f Makefile.funkey clean|g' package; \
chmod +x package; \
./package \
)
endef
define GMU_INSTALL_TARGET_CMDS
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/bin/gmu/decoders
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/bin/gmu/frontends
$(INSTALL) -m 0755 $(@D)/opk/gmu $(TARGET_DIR)/usr/bin/gmu
$(INSTALL) -m 0755 $(@D)/opk/decoders/* $(TARGET_DIR)/usr/bin/gmu/decoders
$(INSTALL) -m 0755 $(@D)/opk/frontends/* $(TARGET_DIR)/usr/bin/gmu/frontends
endef
define GMU_CREATE_OPK
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/local/share/OPKs/Applications
$(HOST_DIR)/usr/bin/mksquashfs $(GMU_PKGDIR)/opk $(TARGET_DIR)/usr/local/share/OPKs/Applications/gmu_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
endef
GMU_POST_INSTALL_TARGET_HOOKS += GMU_CREATE_OPK
$(eval $(generic-package))

View File

@@ -0,0 +1,6 @@
[Desktop Entry]
Name=GMU
Comment=A multi-format music player
Exec=/usr/bin/gmu/gmu.dge
Icon=gmu
Categories=applications

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB