blob: 19642efc50ef4e09607362d7ffc12567108a5046 (
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: xeonds <xeonds@stu.xidian.edu.cn>
pkgname=python-etcpak-git
pkgver=r40.3def800
pkgrel=1
pkgdesc="A python wrapper for wolfpld/etcpak"
arch=('x86_64')
url="https://github.com/K0lb3/etcpak"
license=('MIT')
provides=('python-etcpak-git')
conflicts=()
depends=()
checkdepends=('python-pytest' 'python-pytest-cov')
source=("git+https://github.com/K0lb3/etcpak.git")
md5sums=('SKIP')
prepare() {
cd "${srcdir}/etcpak"
git submodule update --init --recursive # Initialize and update submodules
}
pkgver() {
cd etcpak
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
check() {
cd etcpak
pytest -v --cov || true
}
package() {
cd etcpak
python setup.py install --root="$pkgdir/" --prefix=/usr --optimize=1
}
|