summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 519a01f4a741d4ab36d6b8e8f92908e87a97cefc (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: trougnouf (Benoit Brummer) <trougnouf@gmail.com>

pkgname=python-tensorflow-compression-git
pkgver=1.3+15+gf09afc8
pkgrel=3
pkgdesc="Data compression in TensorFlow"
url="https://github.com/tensorflow/compression"
license=('APACHE')
arch=('any')
depends=('python-tensorflow' 'python-scipy' 'python-tensorflow-probability')
source=("git+${url}" 'arch_compression.patch')
sha256sums=('SKIP' 'b1d53c6b6d57ba70a8d5eda237032ce0c1d5676f222a0a4e464167300b34209b')
_name=compression

pkgver() {
  cd ${srcdir}/${_name}
  git describe --tags | sed 's/-/+/g;s/v//;'
}

prepare() { 
    cd ${_name}
    patch --forward --strip=1 --input="${srcdir}/${source[1]}"
}

build() {
  cd ${srcdir}/${_name}
  bazel --output_user_root "${srcdir}/build" run -c opt :build_pip_pkg
}

package() {
  PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps ${srcdir}/whl/*.whl
}



# vim:set ts=2 sw=2 et: