@MajorMayer the new Link also ends in a 404. Maybe pastebin removes it after a short amount of time?
Thanks also for the tool @FabioLolix, will do that.
Git Clone URL: | https://aur.archlinux.org/youtube-to-mp3.git (read-only, click to copy) |
---|---|
Package Base: | youtube-to-mp3 |
Description: | Downloads audio from YouTube or Vimeo and saves it to mp3 or m4a format to listen to locally |
Upstream URL: | https://www.mediahuman.com/download.html |
Keywords: | Converter Youtube |
Licenses: | LicenseRef-custom |
Conflicts: | youtube-to-mp3 |
Submitter: | matthias-eb |
Maintainer: | matthias-eb (schinfo) |
Last Packager: | schinfo |
Votes: | 6 |
Popularity: | 0.38 |
First Submitted: | 2020-04-25 20:42 (UTC) |
Last Updated: | 2025-01-27 19:01 (UTC) |
@MajorMayer the new Link also ends in a 404. Maybe pastebin removes it after a short amount of time?
Thanks also for the tool @FabioLolix, will do that.
Thanks for the hint. Here is the new link: https://pastebin.com/47j3bpf5
md5sums_i686=("SKIP") is not a good idea.
It is fair to do since the archive is unversioned
This come from experience with a similar situation but with far more vocal users then here
This means that a new version will no longer be recognized.
New versions will not be recognized by a failure but from an updated pkgver= and package
I currently don't have the time to update my script which checks for new md5 sums
For your updated scripts you can use updpkgsums
(from pacman-contrib, the standard tool to calculate hash sums) which will download a new archive (source renaming is hourly) and makepkg will calculate the pkgver() from said archive
@MajorMayer your link is "not found" (404)
Hi @matthias-eb, thanks for putting your effort into this, but unfortunately I still experience the same error. Here are the full logs after the update: https://pastebin.com/myfaHECb
Yeah I agree but I currently don't have the time to update my script which checks for new md5 sums. Once I get around to it, I will change it back to having md5 sums with package release updates.
md5sums_i686=("SKIP")
is not a good idea.
This means that a new version will no longer be recognized.
It is very unprofessional for MediaHuman to change the package under the old version number, which results in a new CheckSum and prevents the build.
@MajorMayer please try the new version of the package and tell me if the problems are fixed now. I have updated the dependency array, which could be the reason for your problems.
The PKGBUILD has received a major overhaul (thanks to input from schinfo and FabioLolix). From now on, md5 checksums are skipped. The dependencies have been updated and the provides
and conflicts
fields are provided. The url now points to the downloads page instead of the info page of this program. pkgver()
and package()
now are way more concise and the license field has been updated.
Thanks again for the help. Best regards, matthias-eb
Can you please use the following code for PKGBUILD - it meets the standards.
# Maintainer: Matthias Eberlein <matthiaseberlein.me@gmail.com>
pkgname=youtube-to-mp3
pkgver=3.9.9.96
pkgrel=3
pkgdesc='YouTube to MP3 Converter by MediaHuman'
arch=('x86_64')
url="https://www.mediahuman.com/download.html"
license=('LicenseRef-custom')
depends=('hicolor-icon-theme'
'qt5-multimedia'
'qt5-webengine'
'qt5-declarative'
'taglib1')
provide=('youtube-to-mp3')
conflicts=('youtube-to-mp3')
source_x86_64=("${pkgname}-$(date +%F-%H).amd64.deb::https://www.mediahuman.com/download/YouTubeToMP3.amd64.deb")
sha256sums_x86_64=('bba6310f28d2fc15c2d241442cd5a71278d501d61ec16eeda47c4942eaf037c5')
pkgver() {
bsdtar -xf control.tar.xz -C .
actpkgverlong="$(cat "control" | grep "Version: ")"
actpkgver=${actpkgverlong##*: }
echo "$actpkgver"
}
package() {
bsdtar -xf data.tar.xz -C ${pkgdir}/
install -D "${pkgdir}/usr/share/doc/${pkgname}/copyright" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
install -dm755 $pkgdir/usr/bin
ln -s /opt/$_pkgname/YouTubeToMP3 "${pkgdir}/usr/bin/YouTubeToMP3"
}
Hello Matthias, I vaguely remember to get in touch with you before, this pkgbuild have several not needed things and non-optimal unorthodox practices; like:
qt5-webkit is no longer needed
Keeping the hash sums and renaming with the pkgver is not optimal for this kind of upstream source
please update like this
Pinned Comments
schinfo commented on 2024-12-11 16:17 (UTC)
I adapted the PKGBUILD again. The i686 (32 bit) was removed because Arch discontinued 32 bit Linux. Since MEDIAHUMAN constantly changes the source file without adjusting the version number, it is now fetched from my own server. Before an update, I always check whether the current version works and, if necessary, leave the old, working version on the server. This can prevent the program from no longer starting, as was the case on November 7th. The PKGBUILD is now identical to
youtube-downloader-bin
.