Merge branch 'master' of github.com:pisilinux/main

This commit is contained in:
Ertuğrul Erata
2015-07-09 19:19:34 +03:00
12 changed files with 396 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
shelltools.touch("%s/ChangeLog" % get.curDIR())
autotools.autoreconf("-fi")
autotools.configure("--disable-static \
--disable-libQgpsmm \
--enable-dbus")
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
autotools.make()
def install():
autotools.install()
# We're using conf.d instead of sysconfig
pisitools.dosed("gpsd.hotplug.wrapper", "sysconfig\/", "conf.d/")
# Install UDEV files
pisitools.insinto("/lib/udev/rules.d", "gpsd.rules", "99-gpsd.rules")
pisitools.dobin("gpsd.hotplug", "/lib/udev")
pisitools.dobin("gpsd.hotplug.wrapper", "/lib/udev")
# Fix permissions
shelltools.chmod("%s/usr/lib/%s/site-packages/gps/gps.py" % (get.installDIR(), get.curPYTHON()))
pisitools.dodoc("README", "TODO", "AUTHORS", "COPYING")