summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d15eea70c3f7d20d8c7406389250f1e27d19a53 (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
# Maintainer: Alexander Konarev (avkonarev) <AVKonarev@gmail.com>

pkgname=dmusic
pkgver=0.4
pkgrel=1
pkgdesc="Compact and native Yandex Music client"
arch=('i686' 'x86_64')
url="https://github.com/levovix0/DMusic"
license=('GPL3')
arch=('x86_64')
source=("https://github.com/levovix0/DMusic/archive/refs/tags/$pkgver.zip"
        "DMusic.desktop")
sha256sums=('c79b524655bea77016cb57f449c08cf68db4169d10f33fe6932a8cbd01ef525e'
            '5aa2b3210f93963c825373195aae8adaa75edf9c82c59d657c0c3250a37c3a8a')
depends=(
  'taglib' 
  'qt5-base' 
  'qt5-declarative' 
  'qt5-multimedia'  
  'qt5-quickcontrols' 
  'qt5-quickcontrols2'
  'qt5-graphicaleffects'
  'qt5-svg'
  'openssl-1.1')

makedepends=('nim')

prepare(){
  cd $srcdir/DMusic-$pkgver
  [ -d build ] || mkdir build
}

build(){
  cd $srcdir/DMusic-$pkgver
  nimble build -yd:release
}

package() {
    cd $srcdir/DMusic-$pkgver
    install -dm755 $pkgdir/usr/bin
    install -Dm755 dmusic $pkgdir/usr/bin/

    install -dm755 $pkgdir/usr/share/DMusic
    install -Dm755 {resources/app.svg,LICENSE} $pkgdir/usr/share/DMusic
    
    install -dm755  $pkgdir/usr/share/applications
    install -Dm755 ../DMusic.desktop $pkgdir/usr/share/applications
}