summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 04a8f29f5a3632f9f5f25aef37d5ea619d7f9506 (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
42
43
44
# Maintainer: xiretza <xiretza+aur@xiretza.xyz>

_pkgname=outrun
pkgname="$_pkgname-git"
pkgver=r3.1e86c42
pkgrel=1
pkgdesc="Execute a local command using the processing power of another Linux machine"
arch=(any)
url="https://github.com/Overv/outrun"
license=('Apache')
depends=('python' 'python-msgpack' 'python-pyzmq' 'python-lz4' 'python-fasteners' 'python-semver' 'fuse3' 'openssh')
makedepends=('git' 'python-setuptools')
checkdepends=('python-pytest' 'python-pytest-cov' 'vagrant' 'python-vagrant')
provides=("${pkgname%%-git}=$pkgver")
conflicts=("${pkgname%%-git}")
source=(
	"git+$url.git"
)
sha256sums=('SKIP')

pkgver() {
	cd "$_pkgname"

	#git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$_pkgname"

	python setup.py build
}

check() {
	cd "$_pkgname"

	pytest
}

package() {
	cd "$_pkgname"

	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}