Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

linconnect-server-git

View PKGBUILD
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 49 50 51
# Maintainer : Evan Anderson <evan@thelinuxman.us>
# Contributor: Martin Wimpress <code@flexion.org>
 
pkgname=linconnect-server-git
pkgver=r91.13d3e26
pkgrel=1
pkgdesc="Displays Android notifications on the desktop using libnotify."
url="https://github.com/hauckwill/linconnect-server"
license=('GPL3')
arch=('any')
depends=('libnotify' 'python2-cherrypy' 'python2-gobject' 'pybonjour')
makedepends=('git')
source=("${pkgname}"::"git://github.com/hauckwill/linconnect-server.git")
md5sums=('SKIP')
 
pkgver() {
cd "${srcdir}/${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
 
prepare() {
cd "${srcdir}/${pkgname}"
# Create wrapper.
cat > linconnect-server <<WRAPPER
#!/bin/sh
exec python2 /usr/share/linconnect-server/linconnect_server.py
WRAPPER
chmod +x linconnect-server
# Create autostart entry.
cat > linconnect-server.desktop << DESKTOP
[Desktop Entry]
Version=1.0
Type=Application
Hidden=false
Terminal=false
Icon=phone
Name=LinConnect
Exec=linconnect-server
DESKTOP
}
 
package() {
cd "${srcdir}/${pkgname}"
install -d -m 0755 "${pkgdir}/usr/bin"
install -d -m 0755 "${pkgdir}/usr/share/linconnect-server"
install -d -m 0755 "${pkgdir}/etc/xdg/autostart/"
install -m 0755 LinConnectServer/main/linconnect_server.py "${pkgdir}/usr/share/linconnect-server/"
install -m 0644 LinConnectServer/main/index.html "${pkgdir}/usr/share/linconnect-server/"
install -m 0755 linconnect-server "${pkgdir}/usr/bin/"
install -m 0644 linconnect-server.desktop "${pkgdir}/etc/xdg/autostart/"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.