blob: fae68c9f60610325eb41c91f37f3b6aa4f243b0b (
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
|
# Maintainer: Brad Erhart <brae.04+aur@gmail.com>
# Contributor: Adriaan Zonnenberg <amz@adriaan.xyz>
pkgname=musixmatch-bin
_pkgname=musixmatch
pkgver=3.6.0
pkgrel=1
pkgdesc='Lyrics platform where users can search and share lyrics'
arch=('x86_64')
url='https://about.musixmatch.com/apps'
license=('custom')
depends=('desktop-file-utils' 'gconf' 'hicolor-icon-theme' 'libnotify' 'libxtst' 'nss')
optdepends=('spotify: Display the lyrics of the currently playing song')
source=('eula.md')
sha256sums=('98debf3d134d676f8188406d03b880c0ccde743b882b8d1e0bcaf02dd2eb0705')
prepare() {
curl 'https://download-app.musixmatch.com/' -A 'Linux x86_64' -D headers.txt -Lf -o linux_amd64.deb
}
pkgver() {
# Extract the version from the filename.
grep -oiP 'content-disposition: attachment; filename=.*musixmatch_\K([0-9.]+)(?=_amd64.deb.*)' headers.txt
}
package() {
ar vx "./linux_amd64.deb"
tar xaf data.tar.xz -C "$pkgdir"
mkdir -p "${pkgdir}/usr/bin"
ln -s /opt/Musixmatch/$_pkgname "$pkgdir/usr/bin/$_pkgname"
install -D -m644 eula.md "$pkgdir/usr/share/licenses/$pkgname/eula.md"
}
|