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

pkgname=netease-music-tui
pkgver=0.1.2
pkgrel=2
pkgdesc="netease cloud music terminal client by rust"
arch=('any')
url="https://github.com/betta-cyber/netease-music-tui"
license=('MIT')
depends=('dbus' 'alsa-lib')
makedepends=('rust')
provides=('netease-music-tui-bin')
conflicts=('netease-music-tui-bin')
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/betta-cyber/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('5021c8c9d204b439453a1d3aaacc4802a685988c2cb376d057c48a3dbcc74514')

build() {
  cd ${pkgname}-${pkgver}
  cargo build --release --all-features
  # cargo build --release --all-features --locked
}

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

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