blob: 8d128adb71312f9cbf048e795991c88cf230250e (
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
|
# Contributor: Jonne Haß <me@mrzyx.de>
pkgname=python-piwikapi
pkgver=0.4.0
pkgrel=1
pkgdesc="Python implementation of the Piwik tracking and the analytics API"
arch=('any')
url="http://piwikapi.readthedocs.org"
license=('BSD')
depends=('python')
options=(!emptydirs)
source=("https://github.com/matomo-org/piwik-python-api/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('0e4ee69c3e98337a742fc485f35af2e71f74ed637af3678b1f6eee964f6043ef')
prepare() {
cd piwik-python-api-$pkgver
sed -e 's/README.md/README.rst/g' -i setup.py
}
build() {
cd piwik-python-api-$pkgver
python setup.py build
}
package() {
cd piwik-python-api-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|