summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5bd2629bc2a8977b5f63471a917f7456a65eabbf (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
# Maintainer: Nacho Barrientos <nacho@criptonita.com>
# Maintainer: pancho horrillo <pancho at pancho dot name>
_pkgname=oauth2ms
pkgname=${_pkgname}-git
pkgrel=1
pkgver=r10.a1ef0cabfdea
pkgdesc="XOAUTH2 compatible O365 token fetcher"
arch=('any')
url="https://github.com/harishkrupo/$_pkgname"
license=('Apache')
makedepends=('git')
depends=('python-pyxdg' 'python-msal' 'python-gnupg')
source=(git+$url.git)
md5sums=('SKIP')

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

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