summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3292d6d18ea0727e08145c7e81847bb317e04996 (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
# Maintainer: yjun <jerrysteve1101 at gmail dot com>

pkgname=netease-music-tui
pkgver=0.1.3
pkgrel=1
pkgdesc="Netease cloud music terminal client by rust"
arch=('x86_64' 'i686' 'aarch64' 'armv7h' 'armv6h' 'arm')
url="https://github.com/betta-cyber/netease-music-tui"
license=('MIT')
# dbus is required for mpris to work
depends=('dbus'
         'alsa-lib'
         'openssl')
makedepends=('rust')
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/betta-cyber/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('b8f3fb4dbe6785077beec1399cde402ee982230670d85b7d3ce174ca5e0bbcc9')

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

  # cargo build --release --locked --all-features --target-dir=target
  cargo build --release --all-features --target-dir=target
}

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

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