summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ced1758682ab791e77bc1d6e5f4e4616046b1524 (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
# Maintainer: Ash <xash at riseup d0t net>
pkgname=dmodman-git
_pkgname=dmodman
pkgver=r306.54a0274
pkgrel=1
pkgdesc='TUI downloader & update checker for Nexusmods.com'
arch=('x86_64')
url='https://github.com/dandels/dmodman'
license=('MIT')
provides=('dmodman')
makedepends=('cargo' 'rust' 'pkgconf' 'git')
depends=('openssl' 'xdg-utils')
source=("git+https://github.com/dandels/dmodman.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$_pkgname"
  cargo build --release
}

package() {
  cd "$_pkgname"
  install -Dm755 "target/release/dmodman" "$pkgdir/usr/bin/dmodman"
}