code:
#!/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 shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def setup():
    shelltools.export("OPTIMIZER", "%s" % get.CFLAGS())
    shelltools.export("DEBUG", "-DNDEBUG")

    autotools.configure("--enable-readline=yes \
                         --enable-blkid=yes")

def build():
    autotools.make()

def install():
    autotools.rawInstall("DIST_ROOT=%s" % get.installDIR())
    autotools.rawInstall("DIST_ROOT=%s" % get.installDIR(), "install-dev")
    # Needed for building the QA testsuite
    #autotools.rawInstall("DIST_ROOT=%s" % get.installDIR(), "install-qa")

    # Nuke static libraries
    #pisitools.remove("/lib/libhandle.a")
    #pisitools.remove("/lib/libhandle.la")
    #pisitools.remove("/usr/lib/*.a")

    # Fix the symlink
    #pisitools.remove("/usr/lib/libhandle.so")
    #pisitools.dosym("/lib/libhandle.so.1", "/usr/lib/libhandle.so")

    # Set +x bit for the library
    shelltools.chmod("%s/lib/libhandle.so.*.*.*" % get.installDIR(), 0755)


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>xfsprogs</Name>
        <Homepage>http://oss.sgi.com/projects/xfs/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>app:console</IsA>
        XFS filesystem utilities
        <Description>xfsprogs contains a number of administrative utilities to work with and manage XFS filesystems.</Description>
        <Archive sha1sum="71423e44df535273a1293fd0701f380d0868fbec" type="tarxz">https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/xfsprogs-4.9.0.tar.xz</Archive>
        <BuildDependencies>
           <Dependency>libutil-linux-devel</Dependency>
           <Dependency>readline-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>xfsprogs</Name>
        <RuntimeDependencies>
            <Dependency>libutil-linux</Dependency>
            <Dependency>readline</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/lib</Path>
            <Path fileType="executable">/sbin</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>xfsprogs-devel</Name>
        Development headers for xfsprogs
        <RuntimeDependencies>
            <Dependency>libutil-linux-devel</Dependency>
            <Dependency release="current">xfsprogs</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="man">/usr/share/man/man3</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-29</Date>
            <Version>4.9.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>3.2.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-08-04</Date>
            <Version>3.2.4</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>

repo_name: ayhanyalcinsoy/main


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>xfsprogs</Name>
        <Summary xml:lang="tr">XFS dosya sistemi araçları</Summary>
        <Description xml:lang="tr">xfsprogs XFS dosya sistemini kullanmak ve yönetmek için bir dizi araç içerir.</Description>
    </Source>
</PISI>


code:
<PISI>
    <Name>hardware.emulator</Name>
</PISI>


code:
#!/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 pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

WorkDir = "playonlinux"
NoStrip = "/"

datadir = "/usr/share"

def install():
    installdir = get.installDIR()+ datadir
    pisitools.dodir(datadir)
    pisitools.dodir("%s/applications" % datadir)

    shelltools.copytree("%s/playonlinux" % get.workDIR(), "%s/" % installdir)

    pisitools.dobin("%s/playonlinux/playonlinux" % installdir)

    pisitools.domo("%s/playonlinux/lang/po/tr.po" % installdir, "tr", "pol.mo")

#    pisitools.domove("usr/share/locale/tr/LC_MESSAGES", "/usr/share/playonlinux/lang/locale/tr")

    pisitools.dodoc("%s/playonlinux/LICENCE" % installdir, "%s/playonlinux/CHANGELOG.*" % installdir)

    shelltools.move("%s/etc/PlayOnLinux.desktop" % (get.installDIR() + "/usr/share/playonlinux"), "%s/usr/share/applications/PlayOnLinux.desktop" % get.installDIR())

    shelltools.unlink("%s/usr/bin/playonlinux" % get.installDIR())

    shelltools.sym("%s/usr/share/playonlinux/playonlinux" % get.installDIR(), "%s/usr/bin/playonlinux" % get.installDIR() )

    pisitools.dosed("playonlinux", "python2.6 mainwindow.py", "python2.8 mainwindow.py")


code:
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=PlayOnLinux
GenericName=PlayOnLinux
Comment=PlayOnLinux
Type=Application
Exec=/usr/share/playonlinux/playonlinux
Icon=playonlinux
Categories=PlayOnLinux;
Name[fr_FR]=PlayOnLinux
Categories=Application;Game


code:
Index: playonlinux/etc/PlayOnLinux.desktop
===================================================================
diff -Nuar a/etc/PlayOnLinux.desktop b/etc/PlayOnLinux.desktop
--- a/etc/PlayOnLinux.desktop	2018-01-04 16:18:56.701241026 +0300
+++ b/etc/PlayOnLinux.desktop	2018-01-04 16:19:45.358237516 +0300
@@ -5,4 +5,4 @@
 Type=Application
 Exec=playonlinux %F
 Icon=playonlinux
-Categories=Utility;Emulator;
+Categories=Game;


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>playonlinux</Name>
        <Homepage>http://www.playonlinux.com</Homepage>
        <Packager>
            <Name>Ergün Salman</Name>
            <Email>poyraz76@pisilinux.org</Email>
        </Packager>
        <License>GPLv3</License>
        <Icon>PlayOnLinux</Icon>
        <IsA>app:gui</IsA>
        <IsA>app:console</IsA>
        <Summary>Tool to help Linux users run Windows games on linux</Summary>
        <Description>PlayOnLinux is a piece of sofware which allow you to install and use easily numerous games and softwares designed to run with Microsoft's Windows.</Description>
        <Archive sha1sum="009dae8e3eae62e203bee8d736b73712e4209f9e" type="targz">http://repository.playonlinux.com/PlayOnLinux/4.2.12/PlayOnLinux_4.2.12.tar.gz</Archive>
        <Patches>
            <Patch level="1">PlayOnLinux_4.1.6-fix-desktop-file.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>playonlinux</Name>
        <RuntimeDependencies>
            <Dependency>wxPython</Dependency>
            <Dependency>wine</Dependency>
            <Dependency>wget</Dependency>
            <Dependency>gnu-netcat</Dependency>
            <Dependency>icoutils</Dependency>
            <Dependency>binutils</Dependency>
            <Dependency>imagemagick</Dependency>
            <Dependency>xterm</Dependency>
            <Dependency>p7zip</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/applications</Path>
            <Path fileType="data">/usr/share/pixmaps</Path>
            <Path fileType="data">/usr/share/playonlinux</Path>
            <Path fileType="localedata">/usr/share/playonlinux/lang/</Path>
            <Path fileType="localedata">/usr/share/locale/</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/applications/PlayOnLinux.desktop">PlayOnLinux.desktop</AdditionalFile>
            <AdditionalFile owner="root" permission="0755" target="/usr/share/pixmaps/playonlinux.png">playonlinux.png</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <History>
        <Update release="3">
            <Date>2018-01-04</Date>
            <Version>4.2.12</Version>
            <Comment>Version Bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2017-04-29</Date>
            <Version>4.2.10</Version>
            <Comment>rebuild</Comment>
            <Name>Ali Algül</Name>
            <Email>aligulle3801@gmail.com</Email>
        </Update>
      <Update release="1">
            <Date>2016-07-03</Date>
            <Version>4.2.10</Version>
            <Comment>First Release</Comment>
            <Name>Ergün Salman</Name>
            <Email>poyraz76@pisilinux.org</Email>
      </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>playonlinux</Name>
        <Summary xml:lang="tr">Birçok Windows oyununu Linux'ta oynayabilmenizi sağlar</Summary>
        <Description xml:lang="tr">PlayOnLinux, Microsoft's Windows için hazırlanan çok sayıdaki oyunu ve uygulamayı Linux'ta kullanmanıza olanak sağlayan bir uygulamadır.</Description>
    </Source>
</PISI>


code:
# -*- 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

WorkDir = "wine-%s" % get.srcVERSION()

def setup():
    shelltools.system("install=wine.keyring")
    # For 32bit machines:
    #   * It get compiled with the normal options below. The emul32 are ignored
    #     on 32bit machines. Nothing is added to options variable.
    #
    # For 64bit machines:
    #   * First we compile for 64bit with the option --enable-win64. These build
    #     files are stored in the normal "work" dir
    #   * In the second run (for emul32 buildType), the 32bit part is compiled
    #     with the spesific libdir and the --with-wine64 options that is pointing
    #     to the 64bit files that was compiled in the first step (files in the work)
    #
    # More info can be obtained here: http://wiki.winehq.org/Wine64
    #shelltools.export("CPPFLAGS", "-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0")
    #shelltools.system("make -C ./wine-staging-%s/patches DESTDIR=$(pwd) install" %get.srcVERSION())
    #pisitools.flags.add("-fno-omit-frame-pointer")
    #shelltools.system("sed -i 's|OpenCL/opencl.h|CL/opencl.h|g'  configure*")

    autotools.autoreconf("-vif")
    options = "--without-capi \
               --without-oss \
               --without-opencl \
               --without-gstreamer \
               --without-hal \
               --with-dbus \
               --with-opengl \
               --with-alsa \
               --with-x \
               "

    if get.buildTYPE() == "emul32":
        shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
        options += " --with-wine64=%s/work/wine-%s/build-wine \
                     --libdir=/usr/lib32 \
                   " % (get.pkgDIR(), get.srcVERSION())

        shelltools.system("mkdir build-wine")
        shelltools.cd("build-wine")
        shelltools.system(". ../configure %s" %options)

    elif get.ARCH() == "x86_64":
        options += " --enable-win64 \
                     --libdir=/usr/lib \
                     "
        shelltools.system("mkdir build-wine")
        shelltools.cd("build-wine")
        shelltools.system(". ../configure %s" %options)

def build():
    shelltools.cd("build-wine")
    autotools.make()

def install():
    # We need especially specify libdir and dlldir prefixes. Otherwise the
    # 32bit parts overwrite the 64bit files under /usr/lib

    shelltools.cd("build-wine")

    if get.buildTYPE() == "emul32":
        autotools.install("UPDATE_DESKTOP_DATABASE=/bin/true libdir=%s/usr/lib32 dlldir=%s/usr/lib32/wine" % (get.installDIR(), get.installDIR()))
    else:
        autotools.install("UPDATE_DESKTOP_DATABASE=/bin/true libdir=%s/usr/lib dlldir=%s/usr/lib/wine" % (get.installDIR(), get.installDIR()))

    shelltools.cd("..")

    pisitools.dodoc("ANNOUNCE", "AUTHORS", "COPYING.LIB", "LICENSE*", "README", "documentation/README.*")


code:
From 2472b819eabc76376d5552bd72b4f1f3cfa589da Mon Sep 17 00:00:00 2001
From: Mike Swanson <mikeonthecomputer@gmail.com>
Date: Sun, 22 Jan 2017 10:49:44 -0800
Subject: [PATCH] programs/winhlp32: Use noyywrap for macro.lex.l and prefix

flex 2.6.3 broke the previous version, but this is a well-supported
way of achieving the same goal, used elsewhere in the Wine source too.

To avoid warnings in compilation, also set prefix="winhlp32_" --
this is consistent with how other lex files work too.

Signed-off-by: Mike Swanson <mikeonthecomputer@gmail.com>
---
 programs/winhlp32/macro.lex.l | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/programs/winhlp32/macro.lex.l b/programs/winhlp32/macro.lex.l
index 8f6945ca98..2e03660278 100644
--- a/programs/winhlp32/macro.lex.l
+++ b/programs/winhlp32/macro.lex.l
@@ -20,7 +20,8 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 %}
-%option noinput nounput never-interactive 8bit
+%option noinput nounput noyywrap never-interactive 8bit
+%option prefix="winhlp32_"
 %x quote
 %{
 #include "config.h"
@@ -367,7 +368,3 @@ WINHELP_WINDOW* MACRO_CurrentWindow(void)
 {
     return lex_data ? lex_data->window : Globals.active_win;
 }
-
-#ifndef yywrap
-int yywrap(void) { return 1; }
-#endif
--
2.11.0


code:
diff --git a/tools/winebuild/main.c b/tools/winebuild/main.c
index 16b4165..5c77267 100644
--- a/tools/winebuild/main.c
+++ b/tools/winebuild/main.c
@@ -48,10 +48,13 @@ int link_ext_symbols = 0;
 int force_pointer_size = 0;
 int unwind_tables = 0;

+#undef FORCE_POINTER_SIZE
 #ifdef __i386__
 enum target_cpu target_cpu = CPU_x86;
+#define FORCE_POINTER_SIZE
 #elif defined(__x86_64__)
 enum target_cpu target_cpu = CPU_x86_64;
+#define FORCE_POINTER_SIZE
 #elif defined(__powerpc__)
 enum target_cpu target_cpu = CPU_POWERPC;
 #elif defined(__arm__)
@@ -611,6 +614,10 @@ int main(int argc, char **argv)
     signal( SIGTERM, exit_on_signal );
     signal( SIGINT, exit_on_signal );

+#ifdef FORCE_POINTER_SIZE
+    force_pointer_size = sizeof(size_t);
+#endif
+
     output_file = stdout;
     argv = parse_options( argc, argv, spec );

diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
index 06aa200..c44d2e3 100644
--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -213,10 +213,13 @@ struct options
     strarray* files;
 };

+#undef FORCE_POINTER_SIZE
 #ifdef __i386__
 static const enum target_cpu build_cpu = CPU_x86;
+#define FORCE_POINTER_SIZE
 #elif defined(__x86_64__)
 static const enum target_cpu build_cpu = CPU_x86_64;
+#define FORCE_POINTER_SIZE
 #elif defined(__powerpc__)
 static const enum target_cpu build_cpu = CPU_POWERPC;
 #elif defined(__arm__)
@@ -1258,6 +1261,9 @@ int main(int argc, char **argv)
     opts.linker_args = strarray_alloc();
     opts.compiler_args = strarray_alloc();
     opts.winebuild_args = strarray_alloc();
+#ifdef FORCE_POINTER_SIZE
+    opts.force_pointer_size = sizeof(size_t);
+#endif

     /* determine the processor type */
     if (strendswith(argv[0], "winecpp")) opts.processor = proc_cpp;


code:
[Desktop Entry]
Icon=wine
Name=Wine


code:
[Desktop Entry]
Encoding=UTF-8
Name=Wine Task Manager
Exec=wine taskmgr
Icon=utilities-system-monitor
Terminal=false
Type=Application
Categories=Application;X-Wine;

Name[tr]=Wine Görev Yöneticisi


code:
[Desktop Entry]
Encoding=UTF-8
Name=Add/Remove Windows Programs
Exec=wine uninstaller
Icon=user-trash
Terminal=false
Type=Application
Categories=Application;X-Wine;

Name[tr]=Windows Programlarını Ekle/Kaldır


code:
[Desktop Entry]
Type=Application
Name=Windows Installer File
Name[ar]=مثبت حزم واين
Exec=wine %f
MimeType=application/x-ole-storage;text/mspg-legacyinfo;
Hidden=true


code:
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Wine OLE View
Comment=Windows OLE View
Name[ar]=عارض العناصر
Comment[ar]=لعرض العناصر البيئية في واين
Exec=wine oleview
Icon=wine
Terminal=false
Type=Application
Categories=X-Wine;


code:
[Desktop Entry]
Name=WineMine
Comment=Wine Minesweeper
Name[ar]=كانسة ألغام واين
Comment[ar]=لعبة كانسة ألغام واين
Exec=winemine
Icon=winemine
Terminal=false
Type=Application
Categories=Game;LogicGame;


code:
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Wine Help
Comment=Windows Help Browser
Name[ar]=أداة المساعدة في واين
Comment[ar]=استعراض ملفات المساعدة بتنسيقات وندوز
Exec=wine winhlp32
Icon=winhelp
Terminal=false
Type=Application
Categories=X-Wine;


code:
<!DOCTYPE Menu
  PUBLIC '-//freedesktop//DTD Menu 1.0//EN'
  'http://standards.freedesktop.org/menu-spec/menu-1.0.dtd'>
<Menu>
	<Name>Applications</Name>
	<Menu>
		<Name>wine-wine</Name>
		<Directory>Wine.directory</Directory>
		<Include>
			<Category>X-Wine</Category>
		</Include>
	</Menu>
</Menu>


code:
[Desktop Entry]
Encoding=UTF-8
Name=Wine Configuration
Exec=winecfg
Icon=configure
Terminal=false
Type=Application
Categories=Application;X-Wine;

Name[tr]=Wine Ayarları


code:
[Desktop Entry]
Encoding=UTF-8
Name=Wine File Manager
Exec=winefile
Icon=system-file-manager
Terminal=false
Type=Application
Categories=Application;X-Wine;

Name[tr]=Wine Dosya Yöneticisi


code:
#!/usr/bin/env xdg-open

[Desktop Entry]
Name=Winetricks
X-GNOME-FullName=Winetricks
Comment=Wine
Exec=/usr/bin/winetricks
Terminal=false
Type=Application
StartupNotify=false
Icon=wine
Categories=System


code:
--- a/include/windef.h	2016-02-09 05:17:54.925574387 +0000
+++ b/include/windef.h	2016-02-09 12:40:25.231866622 +0000
@@ -64,7 +64,7 @@
 #   error You need to define __stdcall for your compiler
 #  endif
 # elif defined(__x86_64__) && defined (__GNUC__)
-#  if (__GNUC__ > 5) || ((__GNUC__ == 5) && (__GNUC_MINOR__ >= 3))
+#  if (__GNUC__ > 5)
 #   define __stdcall __attribute__((ms_abi)) __attribute__((__force_align_arg_pointer__))
 #  else
 #   define __stdcall __attribute__((ms_abi))
@@ -82,7 +82,7 @@
 #   define __cdecl __attribute__((__cdecl__))
 #  endif
 # elif defined(__x86_64__) && defined (__GNUC__)
-#  if (__GNUC__ > 5) || ((__GNUC__ == 5) && (__GNUC_MINOR__ >= 3))
+#  if (__GNUC__ > 5)
 #   define __cdecl __attribute__((ms_abi)) __attribute__((__force_align_arg_pointer__))
 #  else
 #   define __cdecl __attribute__((ms_abi))