Skip to content

Instantly share code, notes, and snippets.

@eNV25
Created April 17, 2021 19:03
Show Gist options
  • Save eNV25/84e0fb22d41263cc62f44375e2a551b3 to your computer and use it in GitHub Desktop.
Save eNV25/84e0fb22d41263cc62f44375e2a551b3 to your computer and use it in GitHub Desktop.
fixed PKGBUILD for freezer
diff --git a/PKGBUILD b/PKGBUILD
index f59da3b..ed010c0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,33 +1,22 @@
# Maintainer: Xandar Null <[email protected]>
pkgname=freezer-bin
+_pkgname_=freezer
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=
+depends=(openssl libnotify libappindicator-gtk3 libxtst nss)
+conflicts=(freezer-git freezer-appimage)
source=(
- "$pkgname.desktop"
+ "$_pkgname_.desktop"
+ "$_pkgname_.sh"
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() {
@@ -40,17 +29,18 @@ package() {
# Installation
cp -r "${srcdir}/output/"* "${pkgdir}"
+
+ # Install to /usr/bin
+ install -Dm755 "$srcdir/$_pkgname_.sh" "$pkgdir/usr/bin/$_pkgname_"
# 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
-
+ install -Dm644 "$srcdir/$_pkgname_.desktop" "$pkgdir/usr/share/applications/$_pkgname_.desktop"
}
-md5sums=('SKIP'
- 'SKIP')
-md5sums_x86_64=('SKIP')
+
+sha256sums=('c14c79169a1ea69809023e8e132bd8e6bb074afa2cca3800cbbbbfb9c2388bec'
+ '780e71d3423d5d1838f144a1954216324f833673d8b48365535ad8e31da1ea98'
+ '5431bc4b525071e0d53c971eff9fa7c3a906bfe1823a7598f82df79bbfe981d7')
+sha256sums_x86_64=('bec4d9989627358ee5a8aa681a851e6cc60c654ecccd8098069107ae292ae807')
diff --git a/freezer-bin.desktop b/freezer.desktop
similarity index 100%
rename from freezer-bin.desktop
rename to freezer.desktop
diff --git a/freezer.sh b/freezer.sh
new file mode 100755
index 0000000..6684a82
--- /dev/null
+++ b/freezer.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /opt/Freezer/freezer "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment