summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 086d9fd5708a219531e268e3ccb29010b892c802 (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: Michał Wojdyła < micwoj9292 at gmail dot com >
# Contributor: Jan Oliver Oelerich <janoliver@oelerich.org>
pkgname=uwsgitop-git
pkgver=20240401
pkgrel=3
pkgdesc="uWSGI stats viewer"
arch=('any')
url="http://github.com/unbit/uwsgitop.git"
license=('MIT')
depends=('python2')
makedepends=('git' 'python2-distribute')
source=("git+https://github.com/unbit/uwsgitop.git")
b2sums=('SKIP')
_gitname="uwsgitop"

pkgver() {
  cd "$srcdir/$_gitname"
  git log -1 --format='%cd' --date=short | tr -d -- '-'
}

package() {
  cd "$srcdir/$_gitname"
  sed -i "s|#\!python|#\!/usr/bin/python2|" uwsgitop
  chmod +x uwsgitop
  python2 setup.py install --prefix=/usr --root="$pkgdir"
  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}