Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package request: mpris-timer #53914

Open
Eloitor opened this issue Jan 10, 2025 · 2 comments · May be fixed by #53923
Open

Package request: mpris-timer #53914

Eloitor opened this issue Jan 10, 2025 · 2 comments · May be fixed by #53923
Labels
request Package request

Comments

@Eloitor
Copy link
Contributor

Eloitor commented Jan 10, 2025

Package name

mpris-timer

Package homepage

https://github.com/efogdev/mpris-timer

Description

Timer app pretending to be a media player.

Does the requested package meet the package requirements?

System, Compiled

Is the requested package released?

Yes

@Eloitor Eloitor added the request Package request label Jan 10, 2025
@xavierfortier1
Copy link
Contributor

Hey, so I looked into that and this is what I came up with. I have tested it a little bit and it worked. If you would like to maintain the package, here is the template (simply change the maintainer and make a PR):

# Template file for 'play-timer'
pkgname=play-timer
version=2.0.3
revision=1
build_style=go
build_helper="gir"
go_import_path=github.com/efogdev/mpris-timer
go_package="./cmd"
go_build_tags="wayland"
hostmakedepends="gobject-introspection pkg-config wayland-devel"
makedepends="glib-devel wayland-devel alsa-lib-devel graphene-devel
 cairo-devel pango-devel gdk-pixbuf-devel gtk4-devel libadwaita-devel"
short_desc="Timer app for Linux desktop"
maintainer="name <email>"
license="MIT"
homepage="https://github.com/efogdev/mpris-timer"
changelog="https://github.com/efogdev/mpris-timer/releases"
distfiles="https://github.com/efogdev/mpris-timer/archive/${version}.tar.gz"
checksum=00045e7d0133ad911c4ddcc66af2075402bb3f96262045f9cabedb6b6f6f8a59

do_build() {
	go build -tags "${go_build_tags}" -o "${GOPATH}/bin/${pkgname}" ${go_package}
}

post_install() {
	vlicense LICENSE.txt LICENSE

	local _glibname="io.github.efogdev.mpris-timer"
	vinstall "misc/${_glibname}.desktop" 644 usr/share/applications
	vinstall "misc/${_glibname}.metainfo.xml" 644 usr/share/metainfo
	vinstall "misc/${_glibname}.gschema.xml" 644 usr/share/glib-2.0/schemas
	vinstall "internal/ui/res/icon.svg" 644 usr/share/icons/hicolor/scalable/apps "${_glibname}.svg"
}

Otherwise, I can maintain it. I'll make the PR and it will eventually land in the repo. In the meantime, you can compile it on your system and use it.

@Eloitor
Copy link
Contributor Author

Eloitor commented Jan 10, 2025

cool thanks! I can be the maintainer :)

@Eloitor Eloitor linked a pull request Jan 10, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request Package request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants