Pisi Linux Geliştirici Klavuzu
  • Giriş
  • Paket Yapımı
    • Örnek pspec.xml
    • Örnek actions.py dosyaları
    • Örnek translations.xml
    • Örnek package.py
    • Örnek service.py
  • ActionsAPI
  • GitHub Kullanımı
  • Gönüllü Kullanımı
  • Docker Kullanımı
  • Yerel Dizindeki Paketleri Toplu Derlemek
  • Sistemde Kurulu Paketlerin Listesini Alma
  • Yama Hazırlama
  • Docker Imajı Hazırlama
  • Docker İmajı İçe/Dışa Aktarma
  • Yeni ToolChain Oluşturma
  • Swap Alanı Oluşturma
  • elogind entegrasyonu
  • Geliştiriciler İçin Notlar
Powered by GitBook
On this page

Was this helpful?

  1. Paket Yapımı

Örnek actions.py dosyaları

autotools örneği

#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

# WorkDir = ""
# NoStrip = "/"

def setup():
    autotools.configure()

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%%s" %% get.installDIR())

    pisitools.dodoc("AUTHORS", "ChangeLog", "README*", "NEWS")

cmake örneği

#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

# WorkDir = ""

def setup():
    shelltools.makedirs("build")
    shelltools.cd("build")
    cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr", sourceDir="..")

def build():
    shelltools.cd("build")
    cmaketools.make()

def install():
    shelltools.cd("build")
    cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
    shelltools.cd("..")
    pisitools.dodoc("AUTHORS", "COPYING")

kde5 örneği

#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

# WorkDir = ""

def setup():
    kde5.configure()

def build():
    kde5.make()

def install():
    kde5.install()

    pisitools.dodoc("AUTHORS", "ChangeLog", "README*", "NEWS")

qt5 örneği

#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

# WorkDir = ""

def setup():
    qt5.configure()

def build():
    qt5.make()

def install():
    qt5.rawInstall("DESTDIR=%%s" %% get.installDIR())

    pisitools.dodoc("AUTHORS", "ChangeLog", "README*", "NEWS")

mesontools örneği

#!/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 get
from pisi.actionsapi import mesontools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
def setup():
    mesontools.configure()

def build():
    mesontools.build()
    
def check():
    mesontools.build("test")

def install():
    mesontools.install()
    pisitools.dodoc("LICENSE", "README*")
PreviousÖrnek pspec.xmlNextÖrnek translations.xml

Last updated 5 years ago

Was this helpful?