void-linux / void-packages

The Void source packages collection
https://voidlinux.org
Other
2.58k stars 2.14k forks source link

Package Request: Trebleshot-Desktop #28258

Open Boebbele opened 3 years ago

Boebbele commented 3 years ago

TrebleShot is an open-source application that allows you to send and receive files without an internet connection. The Trebleshot-Android-App ist also stored in F-Droid-Store.

I tried with this template file:

# Template file for 'trebleshot'
pkgname=trebleshot
version=0.1.0alpha2
revision=1
archs="x86_64"
wrksrc="desktop-0.1.0-alpha2"
build_style=gnu-configure
hostmakedepends="pkg-config intltool"
makedepends="cmake"
depends="qt5 kdnssd"
short_desc="A multi-platform file-sharing tool"
maintainer=""
license="GPL-2"
homepage="https://github.com/trebleshot"
distfiles="https://github.com/trebleshot/desktop/archive/0.1.0-alpha2.tar.gz"
checksum=8343658d59f183078ab0a706689c1d8362e7ea924f3f0ee4a981c5cc6f55aaa7

But it ending with this Error:

=> ERROR: trebleshot-0.1.0alpha2_1: do_configure: '${configure_script} ${configure_args}' exited with 127
=> ERROR:   in do_configure() at common/build-style/gnu-configure.sh:7

Please, can someone fix it?

astralchan commented 3 years ago

There, ugh, are many things wrong with that template. Plus, you just gave the last two lines of xbps-src error, and left out any useful information regarding the actual build errors. I'll try making a template when I get home.

Looking at upstream's releases, there are only alpha pre-releases, it might not be released yet.

Boebbele commented 3 years ago

that's very nice of you. Sorry, I'm completely new to void Linux. I have a lot to learn. I use the package on Arch Linux. it works very well.

astralchan commented 3 years ago

Here is the template if you want to maintain it:

# Template file for 'trebleshot-desktop'
pkgname=trebleshot-desktop
version=0.1.0
_version=${version}-alpha2
revision=1
wrksrc=desktop-${_version}
build_style=cmake
makedepends="qt5-devel kdnssd-devel qt5-plugin-mysql qt5-plugin-odbc qt5-plugin-pgsql qt5-plugin-sqlite qt5-plugin-tds"
short_desc="Open-Source file sharing software for Linux"
maintainer=""
license="GPL-2.0-only"
homepage="https://github.com/trebleshot/desktop"
distfiles="${homepage}/archive/${_version}.tar.gz"
checksum=8343658d59f183078ab0a706689c1d8362e7ea924f3f0ee4a981c5cc6f55aaa7

if [ "${CROSS_BUILD}" ]; then
    hostmakedepends="qt5-qmake qt5-host-tools"
fi

It passes xbps-src on x86_64-musl and aarch64-musl. I haven't tested the resulting build binary package. In maintainer, put your information that you can be reached at: name/alias <youremail>.

Boebbele commented 3 years ago

Thank you so much! I will Test it when I get Home.

Boebbele commented 3 years ago

It works perfektly! Thank you so much! I think I'am too stupid at the moment to maintain it. But I will learn!

astralchan commented 3 years ago

It works perfektly! Thank you so much! I think I'am too stupid at the moment to maintain it. But I will learn!

Nah, you can do it :) , Just make a PR to merge your template. Have the commit message be "New package: trebleshot-desktop-0.1.0" from a seperate branch on your fork.