blob: 204592e0af53b89fcefa7a2d066a65fddcd08019 (
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
|
# Maintainer: devome <evinedeng@hotmail.com>
_pkgname=photoprism-tensorflow
pkgname="${_pkgname}-avx2-bin"
pkgver=1.15.2
pkgrel=2
provides=("${_pkgname}" "tensorflow115")
conflicts=("${_pkgname}" "tensorflow115")
replaces=("tensorflow115")
pkgdesc="PhotoPrism Tensorflow 1.15 with CPU AVX2 support"
arch=("x86_64")
url="https://github.com/tensorflow/tensorflow"
license=('Apache-2.0')
source=("https://dl.photoprism.app/tensorflow/amd64/libtensorflow-amd64-avx2-${pkgver}.tar.gz")
sha256sums=("ceee74baa813ffb0c88cbcef24d27adb8cfe6d35e31258d2e467ead1f2bb0a34")
package() {
for so in libtensorflow.so libtensorflow_framework.so; do
install -Dm755 "lib/${so}" "${pkgdir}/usr/lib/${_pkgname}/${so}.${pkgver}"
ln -s "${so}.${pkgver}" "${pkgdir}/usr/lib/${_pkgname}/${so}.${pkgver%.*}"
ln -s "${so}.${pkgver%.*}" "${pkgdir}/usr/lib/${_pkgname}/${so}.${pkgver%%.*}"
ln -s "${so}.${pkgver%%.*}" "${pkgdir}/usr/lib/${_pkgname}/${so}"
done
}
|