blob: 23d58a0d738722b2e1317bea9f18fdbcee83bb1e (
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
38
39
40
41
|
# Maintainer: Midov <midov@midov.pl>
_name=matrixcli
pkgname=matrixcli-git
pkgver=2020.02.26
pkgrel=3
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}"/
# remove generic, non package-specific files:
rm -rv "${pkgdir}/usr/lib"/python*/site-packages/test/*
rmdir "${pkgdir}/usr/lib"/python*/site-packages/test
}
|