Browse Source

howdy: clean up dependencies and conflicts

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
master
Steven Noonan 5 months ago
parent
commit
a7d3da5d81
Signed by: steven GPG Key ID: 408EEB508ED0CD4D
  1. 22
      howdy/PKGBUILD

22
howdy/PKGBUILD

@ -11,7 +11,9 @@ depends=(
'opencv'
'hdf5'
'pam-python'
'python-dlib'
'python-pillow'
'python-face_recognition'
'python-face_recognition_models'
'python-click'
'python-numpy'
@ -33,32 +35,14 @@ pkgver() {
git describe --long --tags | sed 's/^v//;s/-/+/g'
}
prepare() {
# Preparing dlib with GPU here
git clone --depth 1 https://github.com/davisking/dlib.git dlib_clone
}
build() {
# Building dlib with GPU
cd dlib_clone
python setup.py build
}
package() {
PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps face_recognition
# Installing dlib with GPU
cd dlib_clone
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
cd ..
# Installing the proper license files and the rest of howdy
cd howdy
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
mkdir -p "$pkgdir/usr/lib/security/howdy"
cp -r src/* "$pkgdir/usr/lib/security/howdy"
mkdir -p "$pkgdir/usr/bin"
ln -s /lib/security/howdy/cli.py "$pkgdir/usr/bin/howdy"
ln -s ../lib/security/howdy/cli.py "$pkgdir/usr/bin/howdy"
chmod +x "$pkgdir/usr/lib/security/howdy/cli.py"
mkdir -p "$pkgdir/usr/share/bash-completion/completions"
cp autocomplete/howdy "$pkgdir/usr/share/bash-completion/completions/howdy"

Loading…
Cancel
Save