summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d3c3a55c92a16ce66d64acab6ab257f14021efcb (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Maintainer:  Yangtse Su <yangtsesu@gmail.com>, Carson McManus <carson.mcmanus1@gmail.com>

_gitname=steamguard-cli
pkgname="$_gitname"-git
pkgver=0.3.5.0.r0.2b50148
pkgrel=1
pkgdesc="A linux utility for setting up and using Steam Mobile Authenticator (AKA Steam 2FA) on the command line"
arch=('any')
url="https://github.com/dyc3/steamguard-cli"
license=('MIT')
depends=('mono')
makedepends=('git' 'nuget')

provides=('steamguard-cli')
conflicts=('steamguard-cli')
options=('!strip')
source=('git+https://github.com/dyc3/steamguard-cli.git'
        'git+https://github.com/dyc3/SteamAuth.git'
	'steamguard')
md5sums=('SKIP'
         'SKIP'
	 'c2589e487f84f100c62910cc2d43fc2e')

prepare() {
  cd $_gitname
  git submodule init
  git config submodule.SteamAuth.url $srcdir/SteamAuth
  git submodule update
}

pkgver () {
  cd $_gitname
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
 
build() {
  cd $_gitname
  make
}
 
package() {
  cd $_gitname
  install -Dm755 build/steamguard "$pkgdir/usr/lib/$_gitname/steamguard"
  install -Dm644 build/Newtonsoft.Json.dll "$pkgdir/usr/lib/$_gitname/Newtonsoft.Json.dll"
  install -Dm644 build/SteamAuth.dll "$pkgdir/usr/lib/$_gitname/SteamAuth.dll"
  install -Dm644 bash-tab-completion "$pkgdir/etc/bash_completion.d/steamguard"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_gitname/LICENSE"
  install -Dm755 "$srcdir/steamguard" "$pkgdir/usr/bin/steamguard"
}