1 # Contributor: Kevin Sullivan <ksullivan@archlinux.us>
6 pkgdesc="Lightweight application that will help you track and find your laptop if it ever gets stolen."
8 url="http://preyproject.com/"
11 # DEPENDENCY NOTE: the project says curl *or* wget can be used. Also, it says scrot *or* imagemagick can be used. Also, it says the xawtv package is used for webcam stuff and mpg123 is needed for the audible alarm. You may adjust the dependencies as needed with this information.
12 depends=('wget' 'imagemagick' 'perl-io-socket-ssl' 'perl-net-ssleay' 'python2')
13 optdepends=('pygtk: for gui configuration'
14 'xawtv: webcam features'
15 'mpg123: needed for audible alarm'
17 # NOTE: if you want to exclusively use one of the below, feel free to delete the original dependency above
18 'curl: alternative to wget'
19 'scrot: alternative to imagemagick')
21 source=("http://preyproject.com/releases/$pkgver/prey-$pkgver-linux.zip")
22 md5sums=('28192a8ccf5172d7ef011aec02acec8e')
23 backup=('usr/share/prey-tracker/config')
26 # make directories and move files into /usr/share/prey-tracker/
27 mkdir -p $pkgdir/usr/share
28 cp -r $srcdir/prey $pkgdir/usr/share/$pkgname
29 cd $pkgdir/usr/share/$pkgname/
31 # prey-config.py needs to know the new name for the directory. This package sticks to "prey-tracker" for naming conventions to reduce conflicts with other packages.
32 sed -i 's/share\/prey/share\/prey-tracker/g' ./platform/linux/prey-config.py
34 # it also needs to use Python 2.x
35 sed -i 's/env\ python/env\ python2/' ./platform/linux/prey-config.py
37 # the path to iwlist has to be fixed
38 sed -i 's/sbin/usr\/sbin/g' ./modules/geo/platform/linux/functions
40 # fix a bunch of permissions manually
41 chmod -R a-x LICENSE README version pixmaps/*
44 # vim:set ts=2 sw=2 et: