summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b979f28cbdded55cbe7080400b222492a03bb332 (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
# Maintainer: diced <pranaco2@gmail.com>
pkgname='dvm-git'
pkgver=1.2.0
pkgrel=1
makedepends=('rust' 'cargo')
conflicts=('discord' 'discord-canary' 'discord-ptb' 'discord-development' 'dvm')
arch=('x86_64')
pkgdesc="discord version manager for linux"
url="https://github.com/diced/dvm"
source=('git+https://github.com/diced/dvm.git#branch=trunk')
sha256sums=('SKIP')
license=('MIT')


build() {
  cd "$srcdir/dvm" || exit 1
  echo -e "$(tput bold)If build fails please install $(tput bold)$(tput setaf 2)rustup-nightly$(tput setaf 7) or run $(tput bold)$(tput setaf 2)\`rustup install nightly\`"
  cargo +nightly build --release
}

package() {
    cd "$srcdir/dvm" || exit 1
    
    install -D -o root -g root -m 755 target/release/dvm "$pkgdir/usr/bin/dvm"
}