From 0ee5ece4c8811e8a25a8dce678e511eb10027378 Mon Sep 17 00:00:00 2001 From: aydemir Date: Thu, 20 Aug 2015 21:52:34 +0300 Subject: [PATCH] lookandfeel --- .../artwork-pisilinux-release/actions.py | 28 +++++ .../files/35-example-content.sh | 22 ++++ .../artwork-pisilinux-release/pspec.xml | 107 ++++++++++++++++++ .../translations.xml | 13 +++ 4 files changed, 170 insertions(+) create mode 100644 desktop/lookandfeel/artwork-pisilinux-release/actions.py create mode 100644 desktop/lookandfeel/artwork-pisilinux-release/files/35-example-content.sh create mode 100644 desktop/lookandfeel/artwork-pisilinux-release/pspec.xml create mode 100644 desktop/lookandfeel/artwork-pisilinux-release/translations.xml diff --git a/desktop/lookandfeel/artwork-pisilinux-release/actions.py b/desktop/lookandfeel/artwork-pisilinux-release/actions.py new file mode 100644 index 0000000000..64a202992f --- /dev/null +++ b/desktop/lookandfeel/artwork-pisilinux-release/actions.py @@ -0,0 +1,28 @@ +#!/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 + +import os + +WorkDir="." + +def fixperms(d): + for root, dirs, files in os.walk(d): + for name in dirs: + shelltools.chmod(os.path.join(root, name), 0755) + for name in files: + shelltools.chmod(os.path.join(root, name), 0644) + +def setup(): + fixperms("%s-%s/wallpapers" % (get.srcNAME(), get.srcVERSION())) + +def install(): + pisitools.insinto("%s/share/" % get.defaultprefixDIR(), "%s-%s/wallpapers" % (get.srcNAME(), get.srcVERSION())) + + pisitools.insinto("%s/share/" % get.defaultprefixDIR(), "sample-files", "example-content") \ No newline at end of file diff --git a/desktop/lookandfeel/artwork-pisilinux-release/files/35-example-content.sh b/desktop/lookandfeel/artwork-pisilinux-release/files/35-example-content.sh new file mode 100644 index 0000000000..cc206f7742 --- /dev/null +++ b/desktop/lookandfeel/artwork-pisilinux-release/files/35-example-content.sh @@ -0,0 +1,22 @@ +XDG_CONFIG=$HOME/.config/user-dirs.dirs +EXAMPLE_CREATION_FILE=$HOME/.local/example-content-created + +mksym() +{ + eval target=\$XDG_$(basename $1)_DIR + + for source in $1/*; do + test -f "$source" && ln -sf "$source" "$target/" + done +} + +if [[ -f $XDG_CONFIG && ! -f $EXAMPLE_CREATION_FILE ]]; then + + . $XDG_CONFIG + + for d in /usr/share/example-content/*; do + mksym $d + done + + touch $EXAMPLE_CREATION_FILE +fi diff --git a/desktop/lookandfeel/artwork-pisilinux-release/pspec.xml b/desktop/lookandfeel/artwork-pisilinux-release/pspec.xml new file mode 100644 index 0000000000..af3c96f075 --- /dev/null +++ b/desktop/lookandfeel/artwork-pisilinux-release/pspec.xml @@ -0,0 +1,107 @@ + + + + + artwork-pisilinux-release + http://www.pisilinux.org/ + + PisiLinux Community + admins@pisilinux.org + + GPLv2 + + public-domain + CCPL-Attribution-ShareAlike-3.0 + CCPL-Attribution-3.0 + data + Artwork for Pisi Linux releases + This package contains additional artwork (like wallpapers) intended for Pisi Linux releases. + http://source.pisilinux.org/1.0/artwork-pisilinux-release-1.2.tar.xz + http://source.pisilinux.org/1.0/sample-files-20130323.tar.xz + + + + artwork-pisilinux-release + + /usr/share/wallpapers + + + + + example-content + Example files for Pisi Linux + + /usr/share/example-content + /etc/X11/Xsession.d + + + 35-example-content.sh + + + + + + 2015-03-04 + 1.2 + Add new wallpapers. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2014-08-04 + 0.2 + Add new wallpapers. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2014-02-07 + 0.2 + Add new wallpapers, example contents. + Serdar Soytetir + kaptann@pisilinux.org + + + 2013-09-18 + 1.0 + add more izmir themes. + Erdinç Gültekin + erdincgultekin@pisilinux.org + + + 2013-09-18 + 1.0 + add izmir theme. + Erdinç Gültekin + erdincgultekin@pisilinux.org + + + 2013-08-27 + 1.0 + Gönüllü çalışmalar eklendi. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2013-08-26 + 1.0 + Release bump. + Serdar Soytetir + kaptan@pisilinux.org + + + 2013-03-22 + 1.0 + bump for pisi Linux + Erdinç Gültekin + erdincgultekin@pisilinux.org + + + 2013-01-31 + 2013.1 + First release + Demiray Muhterem + bilgi@bilgegunluk.com + + + \ No newline at end of file diff --git a/desktop/lookandfeel/artwork-pisilinux-release/translations.xml b/desktop/lookandfeel/artwork-pisilinux-release/translations.xml new file mode 100644 index 0000000000..e9ffb9b9e1 --- /dev/null +++ b/desktop/lookandfeel/artwork-pisilinux-release/translations.xml @@ -0,0 +1,13 @@ + + + + artwork-pisilinux-release + Pisi Linux sürümleri için sanatsal içerik + Bu paket Pisi Linux sürümleri için hazırlanmış sanatsal çalışmalar içerir. + + + + example-content + Pisi Linux ile beraber dağıtılan örnek dosyalar + + \ No newline at end of file