Kaydet (Commit) 64e15d37 authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

Desktop enviromentler oluşturulmadan önce atılan son commit.

üst 86278b07
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from inary.actionsapi import shelltools
from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import get
def setup():
shelltools.export("EMACS", "no")
autotools.configure("--disable-static")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
inarytools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README")
DOCTYPE INARY SYSTEM "http://www.sulin.org/projeler/inary/inary-spec.dtd">
<INARY>
<Source>
<Name>desktop-file-utils</Name>
<Homepage>http://www.freedesktop.org/software/desktop-file-utils/</Homepage>
<Packager>
<Name>Suleyman Poyraz</Name>
<Email>zaryob.dev@gmail.com</Email>
</Packager>
<License>GPLv2</License>
<IsA>library</IsA>
<Summary>Command line utilities to work with desktop menu entries</Summary>
<Description>desktop files are used to describe an application for inclusion in GNOME or KDE menus. This package contains desktop-file-validate which checks whether a .desktop file complies with the specification and desktop-file-install which installs a desktop file to the standard directory, optionally fixing it up in the process.</Description>
<Archive sha1sum="10e9df65fdf2b896ce4d5f16616ea0df7c01d8f8" type="tarxz">http://freedesktop.org/software/desktop-file-utils/releases/desktop-file-utils-0.23.tar.xz</Archive>
<BuildDependencies>
<Dependency>glib2-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>desktop-file-utils</Name>
<RuntimeDependencies>
<Dependency>glib2</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="man">/usr/share/man/man1/</Path>
</Files>
<Provides>
<SCOM script="pakhandler.py">System.PackageHandler</SCOM>
</Provides>
</Package>
<History>
<Update release="1">
<Date>2019-04-19</Date>
<Version>0.23</Version>
<Comment>First release</Comment>
<Name>Suleyman Poyraz</Name>
<Email>zaryob.dev@gmail.com</Email>
</Update>
</History>
</INARY>
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import piksemel
import os
def updateData(filepath):
parse = piksemel.parse(filepath)
for icon in parse.tags("File"):
path = icon.getTagData("Path")
if path.startswith("usr/share/applications"):
os.system("/usr/bin/update-desktop-database -q")
return
def setupPackage(metapath, filepath):
updateData(filepath)
def cleanupPackage(metapath, filepath):
pass
def postCleanupPackage(metapath, filepath):
updateData(filepath)
<INARY>
<Source>
<Name>desktop-file-utils</Name>
<Summary xml:lang="tr">Masaüstü menü girdilerini yönetmek için komut satırı araçları</Summary>
</Source>
</INARY>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment