summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 92735103bae4ada2a12960c8ded556430c4c73fd (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
# Maintainer: AnySomebody <anysomebody@gmx.de>

pkgname=python-rofi-git
_gitname=python-rofi
pkgver=r18.d20b3a2
pkgrel=2
pkgdesc="A Python module to make simple GUIs with Rofi"
arch=('any')
url="https://github.com/bcbnz/python-rofi"
license=('GPL')
conflicts=('python-rofi')
provides=('python-rofi')
makedepends=('git' 'python-setuptools' 'fakeroot')
depends=('python' 'rofi')

source=("git+https://github.com/bcbnz/python-rofi.git")

sha256sums=('SKIP')

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

build() {
  cd $_gitname/

  python setup.py build
}

package() {
  cd $_gitname/

  python setup.py install --optimize=1 --prefix=/usr --root="${pkgdir}" --skip-build
}