imanel / deezplayer

Deezer Desktop app for Windows, Linux and macOS
https://deezplayer.imanel.org
50 stars 14 forks source link

Add deezplayer to AUR #26

Open ZeroDot1 opened 5 years ago

ZeroDot1 commented 5 years ago

Is it possible to deezplayer to add to AUR? https://aur.archlinux.org/

imanel commented 5 years ago

To be perfectly honest I have no idea how to package it for Arch Linux, as I never used it. But it shuold be possible using debtap, right?

ZeroDot1 commented 5 years ago

Debtap is one way, please have a look at the following links. https://wiki.archlinux.org/index.php/creating_packages https://www.theurbanpenguin.com/creating-arch-linux-packages/

ZeroDot1 commented 5 years ago
# Generated by ZeroDot1
# Maintainer: Bernard Potocki (imanel)
# Contributor: ZeroDot1 
pkgname=deezplayer
pkgver=2.0.2
pkgrel=1
pkgdesc="Best way to experience Deezer"
arch=('i686' 'x86_64')
url="https://deezplayer.imanel.org"
license=('')
groups=('')
depends=('alsa-lib' 'atk' 'at-spi2-atk' 'cairo' 'dbus' 'desktop-file-utils' 'expat' 'gconf' 'gdk-pixbuf2' 'glib2' 'gtk3' 'hicolor-icon-theme' 'libappindicator-gtk2' 'libcups' 'libglvnd' 'libnotify' 'libutil-linux' 'libx11' 'libxcb' 'libxcomposite' 'libxcursor' 'libxdamage' 'libxext' 'libxfixes' 'libxi' 'libxrandr' 'libxrender' 'libxss' 'libxtst' 'nspr' 'nss' 'pango')
options=('!strip' '!emptydirs')
install=${pkgname}.install
source_x86_64=("https://github.com/imanel/deezplayer/releases/download/v2.0.2/DeezPlayer-2.0.2.deb")
sha512sums_x86_64=('ba2f366801c1bb79b0411be86349d89989c95588a698ed47a216c3f25e9f09aa2fde149ade02664defb2a72116b3db7e0d62a50eaa77f1ac240cc1d6c4e9c18a')

package(){

    # Extract package data
    tar xf data.tar.xz -C "${pkgdir}"

    install -D -m644 "/opt/DeezPlayer/LICENSES.chromium.html" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

}
post_install() {
    gtk-update-icon-cache -q -t -f usr/share/icons/hicolor

    # Link to the binary
    ln -sf '/opt/DeezPlayer/deezplayer' '/usr/bin/deezplayer'
    update-desktop-database -q
}

post_upgrade() {
    post_install
}

post_remove() {
    gtk-update-icon-cache -q -t -f usr/share/icons/hicolor

    # Delete the link to the binary
    rm -f '/usr/bin/deezplayer'
    update-desktop-database -q
}
imanel commented 5 years ago

Sounds good. Are you willing to maintain this package? If so then I will keep this issue open as a reminder to ping you whenever new package version is released. Thanka!

ZeroDot1 commented 5 years ago

Sorry, I unfortunately don't have time to maintain AUR packages.