Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
linconnect-server-git
# 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/"
}
@madc

pybonjour should now be python2-pybonjour

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.