1
0
Fork 0
mirror of https://github.com/kbumsik/VirtScreen.git synced 2025-02-15 04:41:50 +00:00
VirtScreen/package/debian/Makefile.virtualenv
2018-06-17 20:14:40 -04:00

39 lines
1.2 KiB
Text

prefix = /usr
all:
: # do nothing
SHELL = /bin/bash
install:
# Create virtualenv
install -d $(DESTDIR)$(prefix)/share/virtscreen
source $(HOME)/miniconda/bin/activate && \
conda create -y --copy --prefix $(DESTDIR)$(prefix)/share/virtscreen/env python=3.6
source $(HOME)/miniconda/bin/activate && \
source activate $(DESTDIR)$(prefix)/share/virtscreen/env && \
pip install .
# Fix hashbang and move executable
sed -i "1s:.*:#!$(prefix)/share/virtscreen/env/bin/python3:" \
$(DESTDIR)$(prefix)/share/virtscreen/env/bin/virtscreen
install -D $(DESTDIR)$(prefix)/share/virtscreen/env/bin/virtscreen \
$(DESTDIR)$(prefix)/bin/virtscreen
# Delete unnecessary installed files done by setup.py
rm -rf $(DESTDIR)$(prefix)/share/virtscreen/env/lib/python3.6/site-packages/usr
# Copy desktop entry and icon
install -m 644 -D data/virtscreen.desktop \
$(DESTDIR)$(prefix)/share/applications/virtscreen.desktop
install -m 644 -D data/virtscreen.png \
$(DESTDIR)$(prefix)/share/pixmaps/virtscreen.png
clean:
: # do nothing
distclean: clean
uninstall:
: # do nothing
# override_dh_usrlocal:
# : # do nothing
.PHONY: all install clean distclean uninstall