blob: dd162bbf971f558fd69cf0a508fd6c3175f5dc6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Maintainer: Matthias Eberlein
pkgname=youtube-to-mp3
pkgver=3.9.9.49
pkgrel=2
epoch=
pkgdesc="YouTube to Mp3 converter\nDownloads audio from YouTube or Vimeo and saves it to mp3 or m4a format to listen to locally"
arch=('any')
url="https://www.mediahuman.com/youtube-to-mp3-converter/"
license=('unknown')
groups=()
depends=(
'hicolor-icon-theme>=0.17-1'
'qt5-multimedia>=5.14.1-1'
'qt5-webkit>=5.212.0alpha4-1'
'taglib>=1.11.1-3'
)
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source_i386=("$pkgname-$pkgver.deb::https://www.mediahuman.com/de/download/YouTubeToMP3.i386.deb")
source_x86_64=("$pkgname-$pkgver.deb::https://www.mediahuman.com/de/download/YouTubeToMP3.amd64.deb")
noextract=()
md5sums_i386=("7cdc5babfbc1e696142ce5e2abac6892")
md5sums_x86_64=("c0c6aee4cbc17bee25d942d6f749519b")
validpgpkeys=()
prepare() {
##Starting Point: src dir with already extracted .deb package
echo "Preparing the installation.."
if [ ! -d "$pkgname-$pkgver" ]; then
mkdir "$pkgname-$pkgver"
else
echo "Skipping creating subdirectory '$pkgname-$pkgver': Directory already exists."
fi
tar -xf "data.tar.xz" -C "$pkgname-$pkgver"
tar -xf "control.tar.gz" -C "$pkgname-$pkgver"
}
pkgver() {
cd "$pkgname-$pkgver"
actualpackagename="$(cat "control" | grep "Package:")"
if [[ ! "$actualpackagename" =~ .*"$pkgname" ]]; then
echo "Package name changed. Please inform the Maintainer."
exit -1
fi
actpkgverlong="$(cat "control" | grep "Version:")"
actpkgver=${actpkgverlong##*: }
if [[ ! "$actpkgverlong" == *"$pkgver" ]]; then
cd ..
mv "$pkgname-$pkgver.deb" "$pkgname-$actpkgver.deb"
mv "$pkgname-$pkgver" "$pkgname-$actpkgver"
cd ..
mv "$pkgname-$pkgver.deb" "$pkgname-$actpkgver.deb"
fi
echo "$actpkgver"
}
package() {
## We still start in the src dir
cd "$pkgname-$pkgver"
# Copy the binaries and application to their destination in /pkg as root folder
cp -r -i "usr" "$pkgdir/"
cp -r -i "opt" "$pkgdir/"
# Remove .deb packages
cd ../..
echo "Cleaning up.."
rm "$pkgname-$pkgver.deb"
}
|