summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8698fd94ac0b4b90274d746b73f4d42b351ef3df (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
# Maintainer: Your Name <youremail@domain.com>
_name="syft-proto"
pkgname="python-"$_name"-git"
pkgdesc="PySyft protocol constants."
url="https://github.com/OpenMined/syft-proto"
pkgrel=1
arch=('any')
license=('APACHE')
depends=('python')
makedepends=('python-setuptools')
source=("$_name::git+https://github.com/OpenMined/syft-proto.git")
sha512sums=('SKIP')

pkgver=r104.e6f5361
pkgver() {
	cd "$_name"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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

package() {
	cd "$srcdir/$_name"
	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}