blob: cf8729ff17c5649846003da421233a81da962041 (
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
|
# Maintainer: xpt <user.xpt@gmail.com>
# Maintainer: Serge K <arch@phnx47.net>
pkgname=prey-node-client
pkgver=1.11.9
pkgrel=1
pkgdesc="Node.js client for the Prey anti-theft software"
url="https://github.com/prey/prey-node-client"
arch=('x86_64')
license=('GPL3')
depends=('nodejs>=16.18.0' 'mpg123' 'xawtv' 'scrot' 'openssh' 'wireless_tools' 'lsb-release' 'python' 'networkmanager' 'npm' 'gtk3' 'python-gobject')
provides=('prey-tracker')
install="${pkgname}.install"
source=("${pkgname}-${pkgver}.zip::${url}/releases/download/v${pkgver}/prey-linux-${pkgver}-x64.zip"
'prey-tracker.sh'
'disable-auto-updates.patch'
'fix-lock.patch')
sha256sums=('2c04583ffbde886340cf9834df1aa204f27bf18c5074861bf9a2b6f5ecb9da84'
'f2e837b40bea3a4e24ada3a9ef385f0db71e9c0aa9e463f9c63619563bd27ef3'
'37094af138edfa0fce31b43025a8b5e56e4a15715b4094e7ae9eea81f44c9e37'
'd4df726fb87b652b352ca44ddb78afe0e16e40dc130753d86c2cbfa92ac2781d')
prepare() {
cd "prey-${pkgver}"
patch -p0 -i "${srcdir}/disable-auto-updates.patch"
# Fix broken lock: https://github.com/prey/prey-node-client/issues/679
patch -p0 -i "${srcdir}/fix-lock.patch"
}
package() {
install -dm755 "${pkgdir}/usr/bin"
cp "${srcdir}/prey-tracker.sh" "${pkgdir}/usr/bin/prey-tracker"
install -dm755 "${pkgdir}/opt/${pkgname}"
cp -r "prey-${pkgver}/." "${pkgdir}/opt/prey-node-client"
}
# vim:set ts=2 sw=2 et:
|