summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f59da3b339f46843ee9b0067fa937a1a88864d71 (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
# Maintainer: Xandar Null <xandar.null@gmail.com>

pkgname=freezer-bin
pkgver=1.1.18
pkgrel=2
epoch=
pkgdesc="Free HQ music streaming app (Official)"
arch=(x86_64)
url="https://git.rip/freezer/freezerpc"
license=('GPL')
groups=()
depends=()
makedepends=()
checkdepends=()
optdepends=()
provides=(freezer-bin)
conflicts=(freezer-git)
replaces=()
backup=()
options=()
install=
changelog=
source=(
	"$pkgname.desktop"
	https://git.freezer.life/exttex/freezerpc/raw/branch/master/app/assets/icon.png
)
source_x86_64=("https://files.freezer.life/0:/PC/1.1.18/freezer_1.1.18_amd64.deb")
noextract=()
validpgpkeys=()


build() {
	
	# Extraction
	mkdir -p "${srcdir}/output"
	tar -xvf "${srcdir}/data.tar.xz" -C "${srcdir}/output"
}

package() {

	# Installation
	cp -r "${srcdir}/output/"* "${pkgdir}"

	# Desktop launcher
	install -dm755 "$pkgdir/usr/share/pixmaps/"
	install -dm755 "$pkgdir/usr/share/applications/"
	install -Dm644 "$srcdir/icon.png" "$pkgdir/usr/share/pixmaps/freezer.png"
	install -Dm644 "$srcdir/freezer-bin.desktop" "$pkgdir/usr/share/applications/freezer.desktop"
	install -dm755 "$pkgdir/$HOME/Desktop/"
	cp -r "${srcdir}"/freezer-bin.desktop "${pkgdir}"$HOME/Desktop
	sudo -S ln -sf /opt/Freezer/freezer /usr/local/bin/freezer

}
md5sums=('SKIP'
         'SKIP')
md5sums_x86_64=('SKIP')