summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e7e6f98068abfda6afc533d9b787bc0020221655 (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
# Maintainer: Tobias Frisch <thejackimonster@gmail.com>

pkgname=protonup-git
_realname=protonup
pkgver=0.1.4.r2.gf60ee76
pkgrel=1
pkgdesc="Install and Update Proton-GE"
arch=('any')
url="https://github.com/AUNaseef/protonup"
license=('GPL3')
depends=('python' 'python-requests')
makedepends=('python-setuptools' 'git')
provides=(protonup)
conflicts=(protonup)
options=(!emptydirs)
source=("git+https://github.com/AUNaseef/$_realname.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_realname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "$srcdir/$_realname"
  python setup.py install --root="$pkgdir/" --optimize=1
}