summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5e07fc09f14800879d1b519a3d7f7b3f784e1be5 (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
# Maintainer: bobpaul

_pkgbase=python-mautrix
pkgname=${_pkgbase}-git
pkgver=r413.5cf9d7c
pkgrel=0
pkgdesc="A Python 3 asyncio Matrix framework. This tracks the latest commit and is often broken"
url="https://github.com/tulir/mautrix-python"
depends=('python')
makedepends=('python3' 'python-setuptools')
provides=(python-mautrix)
conflicts=(python-mautrix python-mautrix-latest)
license=('MPL2')
arch=('any')
source=("mautrix-python::git+https://github.com/tulir/mautrix-python")
#source=("mautrix-python::git+https://github.com/tulir/mautrix-python#tag=v0.6.0-rc5")
sha256sums=('SKIP')

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

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

package() {
  cd "$srcdir/mautrix-python"
  python setup.py install --root="$pkgdir" --optimize=1
  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}