summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7de1bdf302e82fe1143162666008a1096d9d7fec (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: vantu5z <vantu5z@mail.ru>

pkgname=python-qt-material-git
pkgver=r100.20201228
pkgrel=2
pkgdesc="This is another stylesheet for PySide6, PySide2 and PyQt5, which looks like Material Design."
url="https://github.com/UN-GCPDS/qt-material"
depends=('python>=3.6' 'python-jinja')
makedepends=('python-setuptools')
license=('BSD')
arch=('any')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=($pkgname::git+https://github.com/UN-GCPDS/qt-material.git)
sha256sums=('SKIP')

pkgver() {
	cd $pkgname
	# get number of last git commit
	_commitCount=$(git rev-list --count HEAD)
	# get time of last git commit
	_commitTime=$(git show -s --format="%ci" | grep -o "....-..-.." | sed "s/-//g")
	# add "r*.*" from package version
	echo "r$_commitCount.$_commitTime"
}

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

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