summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fc8f700c5c40cc85da600ad3bf278616b100c34f (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
# Maintainer: Philipp Wolfer <ph.wolfer@gmail.com>

pkgname=webcam-access-monitor
pkgver=0.2.0
pkgrel=1
pkgdesc="D-Bus service and Gnome Shell extension to monitor webcam access."
arch=('any')
url="https://github.com/phw/webcam-access-monitor"
license=('GPL3')
depends=('python' 'python-pyinotify' 'python-gobject' 'python-dbus' 'psmisc')
optdepends=('gnome-shell')
makedepends=()
source=("git://github.com/phw/webcam-access-monitor.git#tag=${pkgver}")
md5sums=('SKIP')
_gitname=$pkgname

package() {
  # The git repository does not yet include an install script by itself
  # so we put everything in place by hand for now.
  cd "$_gitname"
  _site_packages=`python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`

  install -d "${pkgdir}"/usr/share/gnome-shell/extensions/webcam-access-monitor@philipp.wolfer.co
  install gnome-shell-extension/* "${pkgdir}"/usr/share/gnome-shell/extensions/webcam-access-monitor@philipp.wolfer.co
  install -D service/com.uploadedlobster.WebcamAccessMonitor.service "${pkgdir}"/usr/share/dbus-1/services/com.uploadedlobster.WebcamAccessMonitor.service
  install -D service/webcam-access-monitor.py "${pkgdir}"/usr/lib/webcam-access-monitor/webcam-access-monitor.py
  install -d "${pkgdir}${_site_packages}"/webcamaccessmonitor
  install service/webcamaccessmonitor/* "${pkgdir}${_site_packages}"/webcamaccessmonitor
}