summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0783ce4cea5a5fe4c0dfebeb71b3e8b9673c72e1 (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
#Maintainer <dgtl_mystik AT protomail DOT ch>

pkgname=python-firecfg-git
pkgver=v0.0.5.r0.gaa324e1
pkgrel=1
pkgdesc="An improved firecfg written in python."
arch=('any')
url="https://github.com/rusty-snake/firecfg.py"
license=("GPL3")
depends=('python' 'firejail')
makedepends=('python-setuptools' 'git')
source=("${pkgname}::git+https://github.com/rusty-snake/firecfg.py.git#branch=master")

b2sums=('SKIP')

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

build() {
    cd "$srcdir/$pkgname"
    python setup.py build
}

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