blob: b67eea2fac8596966713b6f62355b435e4989565 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: xpt <user.xpt@gmail.com>
# Contributor: Serge K <serge.arch@zmail.pro>
pkgname=prey-node-client
pkgver=1.10.4
pkgrel=1
pkgdesc="Remote tracking and monitoring application for laptops, smartphones, and other electronic devices"
url="https://preyproject.com/"
arch=('x86_64' 'i686')
license=('GPL3')
depends=('nodejs' 'mpg123' 'xawtv' 'scrot' 'openssh' 'wireless_tools' 'lsb-release' 'python2' 'networkmanager' 'npm')
optdepends=('gtk3')
replaces=('prey-tracker')
# Should be used as soon as the bash client is renamed
#provides=('prey-tracker')
install='prey-node-client.install'
source=('prey-node-client.patch' 'prey_project')
source_x86_64=("https://downloads.preyproject.com/prey-client-releases/node-client/$pkgver/prey-linux-$pkgver-x64.zip")
source_i686=("https://downloads.preyproject.com/prey-client-releases/node-client/$pkgver/prey-linux-$pkgver-x86.zip")
sha256sums=('bfe1cd56443eb3e4dd49974e955ffe8ad33b5a7ec749e53cc2682bde82dceb80'
'41f29d334e7671b07cfdc848b2752ccc51710471285e8ebe61c07faa0d36160d')
sha256sums_x86_64=('669642c302fec233b100c4f1708d86ca66c38ddf2cdd2b3fe14950aae1855e50')
sha256sums_i686=('ebc8eefc497c9f4ae1f0dca42facb3c3de5310c0ee7c789a894423e66f654ab2')
package() {
cd "$srcdir/prey-$pkgver"
# Now, we use prey's node, so we don't delete bin/node
# --------------------------------
# We don't need the bundled node.js as we have it installed in the system.
# Conveniently, the bash script probes for node.js and automatically uses
# the system node if the bundled one is not found.
# rm bin/node
# Fix symlink path, Python shebangs and default-disable automatic updates
patch -p0 < ${srcdir}/prey-node-client.patch
mkdir -p "$pkgdir/opt/prey-node-client/"
cp -r ./* "$pkgdir/opt/prey-node-client/"
install -Dm644 license.txt "$pkgdir/usr/share/licenses/$pkgname/license.txt"
mkdir -p "$pkgdir/usr/bin/"
# Binary prey named as prey_project
# ln -s /opt/prey-node-client/bin/prey "$pkgdir/usr/bin/prey_project"
cp "$srcdir/prey_project" "$pkgdir/usr/bin/prey_project"
}
# vim:set ts=2 sw=2 et:
|