summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 30b6543daa27fb2f158a528c5b6d3d30b8179588 (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
# Maintainer: yjun <jerrysteve1101@gmail.com>

pkgname=musicfox
pkgver=1.2.0
pkgrel=2
pkgdesc="netease cloud music terminal client written in Dart."
arch=('x86_64')
url="https://github.com/anhoder/musicfox"
license=('MIT')
depends=('mpg123'
         'libnotify')
makedepends=('dart')
# strip option could destroy the executable :
# https://github.com/dart-lang/sdk/issues/38731
options=('!strip')
source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/${pkgver}.tar.gz")
sha256sums=('be84b4db8841f9b03e86a70b9000c7a1fa8db417641e460f6d810b0959bc0fd5')


build() {
  cd ${pkgname}-${pkgver}

  # get dependency
  dart pub get

  # start build
  mkdir -p ${srcdir}/build
  dart compile exe -o ${srcdir}/build/${pkgname} bin/main.dart
}

package() {
  install -Dm755 build/${pkgname} -t ${pkgdir}/usr/bin
  install -Dm644 ${pkgname}-${pkgver}/LICENSE -t ${pkgdir}/usr/share/licenses/${pkgname}
}

# vim: set sw=2 ts=2 et: