summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c93c0c1f03c2bd18b964eb1a28d6ee1807a3fe36 (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
36
37
# Maintainer: Midov <midov@midov.pl>

_name=matrixcli
pkgname=matrixcli-git
pkgver=2020.02.26
pkgrel=2
pkgdesc='simple matrix client based on the matrix-python-sdk'
arch=('any')
url='https://github.com/saadsolimanxyz/matrixcli'
license=('GPL3')
depends=('python')
provides=('matrixcli' 'matrix-python-sdk')
conflicts=('matrixcli' 'matrix-python-sdk')
source=("git+https://github.com/saadsolimanxyz/matrixcli.git")
sha256sums=('SKIP')

pkgver() {
	cd "${srcdir}/${_name}"
	git log -1 --format="%cd" --date=short | sed 's/-/./g'
}

build() {
	cd "${_name}"
	git submodule update --init --recursive
	git submodule update --recursive --remote
	sed -i 's|/lib/systemd/user|/usr/lib/systemd/user|' setup.py

}

package() {
	cd "${_name}"
	python setup.py install --root="$pkgdir"
	cd "${srcdir}/${_name}/python-sdk/"
	python setup.py install --root="$pkgdir"
	install -Dm644 "${srcdir}"/"${_name}"/LICENSE -t "${pkgdir}"/usr/share/licenses/"${_name}"/
}