Last active
December 30, 2015 16:49
-
-
Save Mic92/7857058 to your computer and use it in GitHub Desktop.
Refactored PKGBUILD for linconnect-server-git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[connection] | |
port = 9090 | |
enable_bonjour = 1 | |
[other] | |
enable_instruction_webpage = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Evan Anderson <[email protected]> | |
pkgname=linconnect-server-git | |
pkgver=r64.4ba6a58 | |
pkgrel=1 | |
pkgdesc="Server for the linconnect android application the mirrors android notifications to desktop using libnotify" | |
url="https://github.com/hauckwill/linconnect-server" | |
license=('GPL3') | |
arch=('any') | |
groups=(network) | |
depends=('python2' 'python2-cherrypy' 'python2-gobject' 'pybonjour' 'libnotify') | |
makedepends=('git') | |
source=("master"::'git://github.com/hauckwill/linconnect-server.git' | |
"conf.ini") | |
md5sums=('SKIP' | |
'a632bf12e88e7778d7bd1a52c6e4a77b') | |
pkgver() { | |
cd "$srcdir/master" | |
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
package() { | |
mkdir -p $pkgdir/usr/{bin,share/} | |
cp -r $srcdir/master/LinConnectServer/main/ $pkgdir/usr/share/linconnect-server | |
install -m0644 $srcdir/conf.ini $pkgdir/usr/share/linconnect-server | |
cat >$pkgdir/usr/bin/linconnect-server <<EOF | |
#!/bin/sh | |
exec python2 /usr/share/linconnect-server/linconnect_server.py | |
EOF | |
chmod +x $pkgdir/usr/bin/linconnect-server | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment