summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ea34d89dc7e8e0bc1534e6c0fa749c4ade9c9ebd (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
# Maintainer: Emilien Devos <contact@emiliendevos.be>
pkgname=harmony-player
pkgver=0.8.2
pkgrel=1
pkgdesc="A next-gen music player built with Electron."
arch=('x86_64')
url="https://getharmony.xyz/"
license=('')
groups=()
depends=('gnuplot' 'gconf' 'libxss' 'libxtst' 'alsa-lib' 'nss' 'gtk2')
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
source=("harmony-$pkgver.tar.xz::https://github.com/vincelwt/harmony/releases/download/v$pkgver/harmony-$pkgver-x64.tar.xz"
        "Harmony.desktop"
        "harmony-16.png"
        "harmony-32.png"
        "harmony-256.png"
        "harmony")
md5sums=('2a9dcf0e6bf82ca1b03d492e22d19159'
         '776af71320e401646bf96a7d4c721d27'
         '9ff4e602debeaf6d88c625189342db52'
         'd3ff15f6c1dd18a81a933242aae9c892'
         '0df74ddd513dbea8d1fb130c4232bd73'
         '6fc9e4c549c010f948f0ec5906c52983')

package() {
  cd "harmony-$pkgver"

  mkdir -p "$pkgdir/opt/Harmony"
  mkdir -p "$pkgdir/usr/bin"
  mkdir -p "$pkgdir/usr/share/applications"
  mkdir -p "$pkgdir/usr/share/icons/hicolor/16x16/apps"
  mkdir -p "$pkgdir/usr/share/icons/hicolor/32x32/apps"
  mkdir -p "$pkgdir/usr/share/icons/hicolor/256x256/apps"
  cp -r * "$pkgdir/opt/Harmony/"

  cp "$srcdir/harmony" "$pkgdir/usr/bin/Harmony"
  cp "$srcdir/Harmony.desktop" "$pkgdir/usr/share/applications/"
  cp "$srcdir/harmony-16.png" "$pkgdir/usr/share/icons/hicolor/16x16/apps/harmony.png"
  cp "$srcdir/harmony-32.png" "$pkgdir/usr/share/icons/hicolor/32x32/apps/harmony.png"
  cp "$srcdir/harmony-256.png" "$pkgdir/usr/share/icons/hicolor/256x256/apps/harmony.png"
}