diff options
author | xpt | 2015-06-10 23:27:57 -0300 |
---|---|---|
committer | xpt | 2015-06-10 23:27:57 -0300 |
commit | 65c3341d64d28140faea5531689443c704e364f0 (patch) | |
tree | af6d21ab2e35504d6d4e07637b2f87bc850ba2a5 /PKGBUILD | |
download | aur-65c3341d64d28140faea5531689443c704e364f0.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b4f7d734589e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: xpt <user.xpt@gmail.com> +pkgname=prey-node-client +pkgver=1.3.10 +pkgrel=1 +pkgdesc="Remote tracking and monitoring application for laptops, smartphones, and other electronic devices" +url="https://preyproject.com/" +arch=('x86_64' 'i686') +license=('GPLv3') +depends=('nodejs' 'mpg123' 'xawtv' 'scrot' 'openssh' 'wireless_tools' 'lsb-release' 'python2' 'pygtk' 'networkmanager') +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') +source_x86_64=("https://s3.amazonaws.com/prey-releases/node-client/${pkgver}/prey-linux-${pkgver}-x64.zip") +source_i686=("https://s3.amazonaws.com/prey-releases/node-client/${pkgver}/prey-linux-${pkgver}-x86.zip") +sha256sums=('1b296df026b6f2fd4278e4457e20e305122c69f524dfa39ed5e4e559de536252') +sha256sums_x86_64=('2173450552360ec9b9e1520179e4a9a751d04b8daf21f007e3f344e56d505ce3') +sha256sums_i686=('a31b24c9ff094e02078a6b5f5e274e32e0696ae0165c9a04bd23448ff66da1ad') + + +package() { + cd "${srcdir}/prey-${pkgver}" + + # 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 < ../../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/" + ln -s /opt/prey-node-client/bin/prey "$pkgdir/usr/bin/prey" +} + +# vim:set ts=2 sw=2 et: |