minirok-2.1/ 0000755 0001750 0001750 00000000000 11265736104 011471 5 ustar dato dato minirok-2.1/config/ 0000755 0001750 0001750 00000000000 11265733622 012740 5 ustar dato dato minirok-2.1/config/minirok_append.desktop 0000644 0001750 0001750 00000000320 11265733622 017325 0 ustar dato dato [Desktop Entry]
Type=Service
Actions=appendToPlaylist;
X-KDE-ServiceTypes=KonqPopupMenu/Plugin;audio/*
[Desktop Action appendToPlaylist]
Name=Append to Minirok playlist
Exec=minirok --append %U
Icon=minirok
minirok-2.1/config/minirok.desktop 0000644 0001750 0001750 00000000364 11265733622 016006 0 ustar dato dato [Desktop Entry]
Type=Application
Name=Minirok
Exec=minirok %U
Icon=minirok
Encoding=UTF-8
Terminal=false
Categories=Qt;KDE;AudioVideo;Audio;Player;
MimeType=audio/vorbis;audio/x-flac;audio/x-mp3;audio/x-musepack;audio/x-oggflac;audio/x-vorbis;
minirok-2.1/config/minirokui.rc 0000644 0001750 0001750 00000001211 11265733622 015267 0 ustar dato dato
Playlist Toolbar
minirok-2.1/minirok.xml 0000644 0001750 0001750 00000013775 11265733622 013702 0 ustar dato dato
AdeodatoSimódato@net.com.org.es2007-09-04minirok1miniroka small music player written in PythonminirokoptionsfileDESCRIPTION
Minirok is a small music player written in Python for the K
Desktop Environment. To start it, select it from the applications
menu, or type minirok in a terminal.
To reproduce music, first type in the combo box at the left the
directory where music is located, and press enter, or select "Open
directory" from the File menu. Available audio files will be shown
in a tree structure. Locate the files you want to play, and use
drag and drop to append them to the playlist in the right. You can
also press double click in a file or a folder to append it to the
existing playlist.
Both the tree view and the playlist have search line widgets above
them. Typing text in them will reduce the shown items to those
matching the introduced words. If you press enter after a search
in the tree view completes, the visible items will be appended to
the playlist. If you press enter in the playlist search line, the
first visible track will be played.
You can modify the order in which the tracks are played by
enqueueing them in a different order. For this, press right button
click on a track, and select "Enqueue track". Or press Control +
RightButtonClick on the track to enqueue.
Similarly, you can signal that playing should stop after a certain
track. To do this, select "Stop playing after this track" in the
contextual menu as above, or press Control + MiddleButtonClick.
If you make changes to the filesystem, you can quickly refresh the
tree view by clicking on the refresh button next to the combo box
with the directory name. A key can be also configurated to do
this, F5 by default.
DBUS INTERFACE
Minirok offers a DBus interface to control the player and various
other bits. At the moment a single object /Player is provided,
under the org.kde.minirok service. To invoke a DBus method, run
from a terminal qdbus org.kde.minirok /Player
methodName.
dbus-send(1) should also work, but
then you'll need to fully qualify the method name.
Here's a list of available methods:
Play
Pause
PlayPause
Stop
Next
Previous
NowPlaying
AppendToPlaylist
StopAfterCurrent
See the README.Usage file for details. Note
that this interface will only be available if the required
dependencies are installed. See the README
file a list of these.
LAST.FM
Minirok can submit played tracks to Last.fm, or any other
Last.fm-compatible service (such as Libre.fm). You will just need
to configure your username and password in the preferences dialog.
Starting with Minirok 2.1, no external software is needed any more.
OPTIONS
Try to append the files given as arguments to an existing
Minirok instance first. If that fails, start a new Minirok
instance as usual. (This is done via DBus, see the
README file for required dependencies.)
Minirok also accepts many other options for using the Qt and KDE
libraries. Run minirok --help-all for a
comprehensive list.
REPORTING BUGS
Please report bug to the Debian Bug Tracking System. See the
README.Bugs file for instructions.
A list of reported issues is kept at http://bugs.debian.org/minirok.
COPYRIGHT
Minirok is Copyright (c) 2007-2009 Adeodato Simó, and licensed under
the terms of the MIT license.
SEE ALSO/usr/share/doc/minirok/NEWS/usr/share/doc/minirok/FAQ/usr/share/doc/minirok/README/usr/share/doc/minirok/README.Bugs/usr/share/doc/minirok/README.Lastfm/usr/share/doc/minirok/README.Usage/usr/share/doc/minirok/TODO
minirok-2.1/src 0000777 0001750 0001750 00000000000 11265736104 013573 2minirok ustar dato dato minirok-2.1/FAQ 0000644 0001750 0001750 00000000624 11265733622 012027 0 ustar dato dato Preemptive list of Frequently Asked Questions
---------------------------------------------
Q: Why does the tree view not show all subdirectories?
A: The tree view does not show files which are not in a recognized
playable format. Because of this, all directories which contain no
audio files result in empty directories. Having them there only
clutters the view, so they are removed as well.
minirok-2.1/README.Bugs 0000644 0001750 0001750 00000003325 11265733622 013255 0 ustar dato dato Reporting bugs
==============
I use Debian's Bug Tracking System to manage bugs in Minirok, so I'd
appreciate if you could report directly there, following the instructions
below. If you really can't, you can mail me directly, but I will probably
forward your report to the public BTS.
The list of already reported bugs is at http://bugs.debian.org/minirok.
You may want to check it before submitting a new report. If you'd like
to make a comment to an existing bug, just send mail to ,
where nnn is obviously the bug number.
To report a new bug, just send a mail to , with
the following format for the body:
Package: minirok
Version: x.y.z
Here the rest of the body.
That is, a mail whose first line is a line starting with "Package", then
a second line specifying the "Version" you're using, then a *blank* line
(don't forget this one), and then whatever you want, most likely an
explanation of the problem. You can find more detailed instructions here:
http://www.debian.org/Bugs/Reporting
If you're a Debian user, you can just use the `reportbug` program. If
you're an Ubuntu user, please don't use reportbug, because it will send
the bug report elsewhere and I probably won't see it.
Known bugs
==========
Here is a list of known bugs or quirks that I don't plan on addressing,
most likely because I wouldn't know how -- help or patches welcome. Known
bugs that can/should get fixed someday are documented in the TODO file.
* One can't configure multi-key global shortcuts.
This is because KDE 4 no longer supports multi-key shortcuts AFAIK.
Upstream says there is a bit of hope, but not much, since they don't
think the usefulness/cost ratio is worth it.
minirok-2.1/minirok.1 0000644 0001750 0001750 00000010071 11265736104 013222 0 ustar dato dato '\" -*- coding: us-ascii -*-
.if \n(.g .ds T< \\FC
.if \n(.g .ds T> \\F[\n[.fam]]
.de URL
\\$2 \(la\\$1\(ra\\$3
..
.if \n(.g .mso www.tmac
.TH minirok 1 2007-09-04 "" ""
.SH NAME
minirok \- a small music player written in Python
.SH SYNOPSIS
'nh
.fi
.ad l
\fBminirok\fR \kx
.if (\nx>(\n(.l/2)) .nr x (\n(.l/5)
'in \n(.iu+\nxu
[options] [file]\&...
'in \n(.iu-\nxu
.ad b
'hy
.SH DESCRIPTION
Minirok is a small music player written in Python for the K
Desktop Environment. To start it, select it from the applications
menu, or type \fBminirok\fR in a terminal.
.PP
To reproduce music, first type in the combo box at the left the
directory where music is located, and press enter, or select "Open
directory" from the File menu. Available audio files will be shown
in a tree structure. Locate the files you want to play, and use
drag and drop to append them to the playlist in the right. You can
also press double click in a file or a folder to append it to the
existing playlist.
.PP
Both the tree view and the playlist have search line widgets above
them. Typing text in them will reduce the shown items to those
matching the introduced words. If you press enter after a search
in the tree view completes, the visible items will be appended to
the playlist. If you press enter in the playlist search line, the
first visible track will be played.
.PP
You can modify the order in which the tracks are played by
enqueueing them in a different order. For this, press right button
click on a track, and select "Enqueue track". Or press Control +
RightButtonClick on the track to enqueue.
.PP
Similarly, you can signal that playing should stop after a certain
track. To do this, select "Stop playing after this track" in the
contextual menu as above, or press Control + MiddleButtonClick.
.PP
If you make changes to the filesystem, you can quickly refresh the
tree view by clicking on the refresh button next to the combo box
with the directory name. A key can be also configurated to do
this, F5 by default.
.SH "DBUS INTERFACE"
Minirok offers a DBus interface to control the player and various
other bits. At the moment a single object /Player is provided,
under the org.kde.minirok service. To invoke a DBus method, run
from a terminal \fBqdbus org.kde.minirok /Player
\fImethodName\fB\fR.
\fBdbus-send\fR(1) should also work, but
then you'll need to fully qualify the method name.
.PP
Here's a list of available methods:
.PP
.nf
\*(T< Play
Pause
PlayPause
Stop
Next
Previous
NowPlaying
AppendToPlaylist
StopAfterCurrent\*(T>
.fi
.PP
See the \*(T<\fIREADME.Usage\fR\*(T> file for details. Note
that this interface will only be available if the required
dependencies are installed. See the \*(T<\fIREADME\fR\*(T>
file a list of these.
.SH LAST.FM
Minirok can submit played tracks to Last.fm, or any other
Last.fm-compatible service (such as Libre.fm). You will just need
to configure your username and password in the preferences dialog.
Starting with Minirok 2.1, no external software is needed any more.
.SH OPTIONS
.TP
\*(T<\fB\-a\fR\*(T>, \*(T<\fB\-\-append\fR\*(T>
Try to append the files given as arguments to an existing
Minirok instance first. If that fails, start a new Minirok
instance as usual. (This is done via DBus, see the
\*(T<\fIREADME\fR\*(T> file for required dependencies.)
.PP
Minirok also accepts many other options for using the Qt and KDE
libraries. Run \fBminirok --help-all\fR for a
comprehensive list.
.SH "REPORTING BUGS"
Please report bug to the Debian Bug Tracking System. See the
\*(T<\fIREADME.Bugs\fR\*(T> file for instructions.
.PP
A list of reported issues is kept at http://bugs.debian.org/minirok.
.SH COPYRIGHT
Minirok is Copyright (c) 2007-2009 Adeodato Sim\('o, and licensed under
the terms of the MIT license.
.SH "SEE ALSO"
\*(T<\fI/usr/share/doc/minirok/NEWS\fR\*(T>
.PP
\*(T<\fI/usr/share/doc/minirok/FAQ\fR\*(T>
.PP
\*(T<\fI/usr/share/doc/minirok/README\fR\*(T>
.PP
\*(T<\fI/usr/share/doc/minirok/README.Bugs\fR\*(T>
.PP
\*(T<\fI/usr/share/doc/minirok/README.Lastfm\fR\*(T>
.PP
\*(T<\fI/usr/share/doc/minirok/README.Usage\fR\*(T>
.PP
\*(T<\fI/usr/share/doc/minirok/TODO\fR\*(T>
minirok-2.1/README 0000644 0001750 0001750 00000012524 11265733622 012357 0 ustar dato dato Description
===========
Minirok is a small music player written in Python for the K Desktop
Environment. As its name hints, it's modelled after Amarok (1.4), but
with a reduced set of features. In particular, it is designed to cover
all the needs and wishes of the author, leaving everything else out. The
look and feel is almost identical to the old Amarok, though.
The main interface is a *tree view of the filesystem*, with a playlist
that can only be populated via drag and drop. There is no collection
built from tags, so it's targeted at people whose collection is
structured in a tree already at the filesystem level. Searches can be
performed both in the tree view and the playlist.
Other features include:
* DBus interface for controlling the player and retrieving the
currently played track, among other things
* alter the playing order in the playlist by queueing tracks;
stop after a certain track; repeat track or playlist; random mode;
undo and redo
* reading of tags when adding to the playlist can be disabled by
specifying a regular expression to extract them from the filename
* submission of played songs to Last.fm
* global shortcuts
Audio formats
=============
Minirok supports playing and reading tags from MP3, Ogg Vorbis, FLAC and
Musepack, which are the formats I use. If you need some other format,
please send me a polite e-mail and I will add them if GStreamer and
Mutagen support them (which they probably will).
Motivation
==========
Let me start by saying that I was a very happy Amarok user for more than
three years, and that I think at least version 1.4 is a terrific player
which deserved all the success it got (I haven't tried version 2 at all).
Anyway, I always wished for some things to be different. In particular,
I always missed a tree view of the filesystem, because my music
collection is highly structured, and it would've been enough. The
collection seemed an overkill to me, though it worked very nicely for me
until:
(1) they "fixed" Bug#116127. Read the bug log for details, and my
comment #10 in particular. The bottom line is that my collection
became uselessly cluttered, because I have a lot of different
artists in my collection, but a high percentage with only one song
coming from compilation albums.
(2) I got a laptop. I discovered that despite mounting desktop:/mnt/mp3
via sshfs at laptop:/mnt/mp3, I could not share the collection.db
file (Debian's Bug#437873, I think). Plus I could not have two
collections, one eg. for the mounted /mnt/mp3, and another for a
local ~/mp3 archive.
So on summer 2007 I found myself with much spare time, and one night
the idea of writing a player tailored to my needs popped up: I'd get
a personalized player, get rid of my free time, and learn PyKDE as a
bonus. A win-win-win situation! I also like having Python projects to
hack on, so that too.
Requirements
============
Minirok is written in Python, version 2.5 or later is required. If it's
available from your distribution, I recommend you install that package,
since it'll take care of installing everything necessary. For Debian and
derivatives, you should be able to install directly with apt-get, and
you can check if there's a more recent version here:
http://chistera.yi.org/~adeodato/code/minirok/packages
For installing from source, here's a list of the *required* libraries
for the program to run:
* PyQt and PyKDE (version 4)
Debian and Ubuntu: python-qt4, python-kde4
Source: http://www.riverbankcomputing.co.uk/pyqt/download.php
http://www.riverbankcomputing.co.uk/pykde/download.php
* Mutagen (audio metadata library)
Debian and Ubuntu: python-mutagen
Source: http://www.sacredchao.net/quodlibet/wiki/Development/Mutagen
* The json or simplejson modules (shipped with Python 2.6 already)
Debian and Ubuntu: python-simplejson | python (>= 2.6)
Source: http://undefined.org/python/#simplejson
* The GStreamer media framework, in particular:
+ The GStreamer Python bindings
Debian and Ubuntu: python-gst0.10
+ Plugins, in all the flavours needed to cover your audio formats:
- MP3: gst-plugins-ugly *and* gst-plugins-good
- Ogg Vorbis: gst-plugins-base
- FLAC: gst-plugins-good
- Musepack (MPC): gst-plugins-bad
Debian and Ubuntu: gstreamer0.10-plugins-ugly, gstreamer0.10-plugins-base,
gstreamer0.10-plugins-good, gstreamer0.10-plugins-bad
+ A suitable audiosink, for example ALSA.
Debian and Ubuntu: gstreamer0.10-alsa
Source: http://gstreamer.freedesktop.org
The following dependencies are optional and enhance Minirok in some way:
* dbus-python - enables controlling the player from scripts, à-la-DCOP
Debian and Ubuntu: python-dbus
Source: http://www.freedesktop.org/wiki/Software/DBusBindings#python
(You'll also need DBus support compiled-in in the PyQt bindings
above; in Debian and Ubuntu, just install python-qt4-dbus in
addition to python-dbus. Additionally, you must be running Qt 4.4.0
or later for the DBus interface to work.)
* python-psutil - makes the scrobble lock handling more robust
Debian and Ubuntu: python-psutil
Source: http://code.google.com/p/psutil/
Author and license
==================
Minirok is written by Adeodato Simó (dato@net.com.org.es), and licensed
under the terms of the MIT license.
vi: sw=2
minirok-2.1/LICENSE 0000644 0001750 0001750 00000002204 11265733622 012476 0 ustar dato dato Minirok is Copyright (c) 2007-2009 Adeodato Simó, and licensed under the
terms of the MIT license:
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
minirok-2.1/NEWS 0000644 0001750 0001750 00000020736 11265733622 012202 0 ustar dato dato 2.1 2009-10-15
IMPROVEMENTS
* Submissions to Last.fm or a Last.fm-compatible service are
performed directly by Minirok now, and the lastfmsubmitd daemon is
no longer a dependency. If you were previously using lastfmsubmitd,
you will need to provide Minirok with your username and password
in the preferences dialog now.
If listening to music offline, or if the Last.fm server is not
responding, submissions are stored on disk by Minirok and submitted
later on. For this functionality, the "simplejson" module has been
added as a dependency. This module comes already with Python 2.6,
see the README file for details.
* Allow to enqueue/dequeue selected tracks with a shortcut (Ctrl+E
by default).
* Allow for a global shortcut to be configured to the Stop, Next and
Previous actions. (No default shortcut is provided, but one can be
set by the user.)
BUGFIXES
* When running from source, correctly show the playlist controls
toolbar (was not being displayed at all).
* Fix crash when using File->Open directory if no directory has ever
been opened in the tree view.
* Fix the following warning when running with PyQt 4.5 (which
becomes a crash under PyQt 4.6):
WARNING: skipping invalid entry in column config: ''
Also, if you had experienced this warning and saw the columns in
the playlist come up in a weird default order, that's been fixed
too.
OTHER NEWS
* Python 2.5 or later is required now.
2.0 2009-06-01
PORTED TO KDE 4
Minirok now uses PyQt4 and PyKDE4. As a result:
* global keybindings work natively, without needing KHotKeys.
* the set of buttons in the toolbar can be configured, as in other
KDE applications.
* the DCOP interface is gone, replaced by DBus. See README.Usage
for details.
IMPROVEMENTS
* The playlist now supports Undo/Redo functionality.
* If you don't use the search in the tree view, it is now possible
to disable it, saving Minirok from having to recurse your entire
filesystem tree each time it starts.
* Command line arguments that are directories will not be discarded.
Instead, all playable files underneath them will be added to the
playlist.
* When changing directories in the tree view, if the new directory
had already been loaded, it won't be scanned again and search will
be available instantly.
OTHER NEWS
* Support for Amarok's classic "funky-monkey" theme has been
dropped. Sorry!
0.9.2 2008-11-29
BUGFIXES
* Fix crashes that randomly happened while moving from one track to
another.
* Minirok no longer hangs on exit, which had started happening with
Python 2.5.
0.9.1 2008-05-21
BUGFIXES
* Don't die when setting the tooltip for tracks with no artist tag.
This manifested in the slider not moving for those tracks, and the
player not jumping to the next track when reaching the end.
0.9 2008-03-22
NEW FEATURES
* The slider in the statusbar can now be used to seek within a
track.
0.8.1 2008-01-29
BUGFIXES
* Unbreak saving the list of paths from the tree view combo box.
0.8 2008-01-27
NEW FEATURES
* The tree view can now quickly scan for changes in the filesystem
(via a new Refresh button), instead of having to re-read all
directory contents.
* New action "Open directory" in the File menu to select with a
dialog the directory to load in the tree view, instead of having
to type it.
* Dropping tracks while holding down the Control key will always
append them at the end of the playlist, independently of the
position they were dropped at.
IMPROVEMENTS
* Key shortcuts for toggling random mode (Ctrl+R by default) and
cycling through possible repeat modes (Ctrl+T).
* The labels in the statusbar that tell the position in the track
will now blink while the player is paused.
* Completion of directory names works in the path combo. (The code
was there, but wasn't working due to a small PyKDE oddity.)
* Make the creation of the tree view faster by avoding lots of
useless calls to slot_populate_one() when iterator.current() is a
FileItem and not a DirectoryItem.
* Read ID3 tags in a separate thread, to improve UI responsiveness
when the audio files live in a network filesystem over a slow
network link, eg. sshfs over wireless.
(The same is planned for reading directory contents for the tree
view, probably once ported to Qt4, because I'm having trouble with
the main thread blocking when reading directory contents in a
separate thread, that seem solved in PyQt4.)
BUGFIXES
* Does not discard length information for MP3 files without any ID3
tags; formerly, the length for such files would always be reported
as 0:00.
OTHER CHANGES
* Improve the handling of non existing directories in the tree view
combo box.
0.7 2007-11-21
NEW FEATURES
* Calculate the length of tracks when loading them into the
playlist, instead of just when starting to play them, unless
reading of tags is disabled.
* The systray icon will show the currently playing track as a
tooltip.
* New function in the context menu to crop selected tracks, that is,
to remove from the playlist all tracks except those selected.
* The context menu can handle enqueueing several tracks at once.
* Compatible with lastfmsubmitd 0.36, which introduced a new API;
compatibility with older versions (0.35) is maintained.
BUGFIXES
* When adding tracks to the queue while playing the last track in
the playlist, the Next button would not get enabled.
* Then length of tracks is calculated with Mutagen instead of
GStreamer, which fixes several cases where GStreamer would get the
length wrong.
* Ctrl+LeftButtonClick works to select several items in the playlist.
* Exit the engine thread cleanly, so that there are no unhandled
exceptions when quitting.
0.6 2007-09-04
NEW FEATURES
* Repeat mode: repeat track or repeat playlist.
* Random mode.
* Handle the return key in the playlist search line, starting to
play the first item that matched the search; and in the tree view
search line, appending matching items to the playlist and starting
playback if the player was stopped.
* Minirok accepts files to load into the playlist as arguments.
* New command line option -a/--append and accompanying DCOP function
appendToPlaylist to append given files to an existing Minirok
instance. For --append, if no instance is running, a new one will
be started.
BUGFIXES
* Searching in the tree view handles non-ASCII characters case
insensitivity. Formerly case insensitiveness only coped with ASCII.
* "Stop after current" works even if the currently played item is
not present in the playlist (i.e., has been removed).
* The Next button is enabled when at the last item in the playlist,
but with items still left in the queue.
* Items don't get added more than once to the playlist even if they're
present multiple times in the drag object (eg. when doing Ctrl-A).
* Minirok does not cancel logging out when the main window is visible.
OTHER CHANGES
* When reaching the end of the track marked as "stop after this
track", playing stops but the current track jumps to the next track.
Formerly it would stay at the just played track.
* The playlist scrolls automatically to ensure the currently playing
item is always visible. This is particularly handy for random mode.
* If the list gets cleared while playing a certain track, and then
that track gets added to the playlist while still being played,
the playlist will mark it the current track.
* If Minirok is docked in the systray when logging out of KDE, it will
be there as well when restoring the session. Formerly the main window
would always be shown.
* Empty directories are not shown in the tree view. This includes
directories that contain no playable files. Directories which only
contain empty subdirectories are not shown as well, recursively.
0.5.1 2007-08-25
BUGFIXES
* Handle lastfmsubmitd being installed but not configured.
0.5 2007-08-25
* First public release.
vi: sw=2:comments+=fb\:*
minirok-2.1/setup.sh 0000755 0001750 0001750 00000003656 11265733622 013204 0 ustar dato dato #! /bin/bash
# If $DEBIAN_PREFIX is set, it will be prepended to all locations.
# This is used when building the Debian package.
set -e
##
if ! kde4-config 2>/dev/null; then
echo >&2 "ERROR: could not find kde4-config."
exit 1
fi
##
PREFIX=`kde4-config --prefix`
BIN=`kde4-config --install exe`
APPS=`kde4-config --install data`
ICONS=`kde4-config --install icon`
DESKTOP=`kde4-config --install xdgdata-apps`
SERVICE_MENUS=`kde4-config --install services`/ServiceMenus
MINIROK="$APPS/minirok"
##
install_file () {
# path/file path/dir -> path/dir/file
install_file2 "$1" "$2/`basename $1`"
}
install_file2 () {
# path/file path/dir/file2 -> path/dir/file2
install -D -m `mode $1` "$1" "${DEBIAN_PREFIX%%/}/${2##/}"
}
install_symlink () {
DEST="${DEBIAN_PREFIX%%/}/${2##/}"
mkdir -p "`dirname $DEST`"
ln -sf "$1" "$DEST"
}
##
install_icons () {
( cd "$1" && find -maxdepth 1 -name '*.png' ) | while read file; do
install_file2 "$1/$file" "$2/`echo $file | tr = /`"
done
}
install_images () {
for img in images/*.png; do
install_file "$img" "$MINIROK/images"
done
}
install_package () {
for p in minirok.py minirok/*.py minirok/ui/*.py; do
install_file "$p" "$PREFIX/share/minirok/`dirname $p`"
done
}
install_manpage () {
if make -s minirok.1; then
install_file minirok.1 /usr/share/man/man1
fi
}
##
mode () {
if [ -x "$1" ]; then
echo 755
else
echo 644
fi
}
##
case "$1" in
install)
install_images
install_package
install_manpage
install_icons images/icons "$ICONS"
install_icons images/icons/private "$MINIROK/icons"
install_file config/minirokui.rc "$MINIROK"
install_file config/minirok.desktop "$DESKTOP"
install_file config/minirok_append.desktop "$SERVICE_MENUS"
install_symlink "$PREFIX/share/minirok/minirok.py" "$BIN/minirok"
;;
*)
echo "Doing nothing, please pass 'install' as the first argument."
;;
esac
minirok-2.1/INSTALL 0000644 0001750 0001750 00000001060 11265733622 012521 0 ustar dato dato Installing instructions
=======================
If you want to install Minirok from source (instead of installing
packages from your distribution), run `./setup.sh install`.
That will install files under the appropriate locations as determined by
kde4-config. If the kde4-config binary can't be found, installation will
be aborted.
However, Minirok should run just fine from the unpacked source
directory, with just `./minirok.py` (you can make a symlink to that
from eg. ~/bin/minirok). Be sure to run `make ui` if you want the
Preferences dialog to work.
minirok-2.1/Makefile 0000644 0001750 0001750 00000000242 11265733622 013131 0 ustar dato dato all: ui minirok.1
ui:
$(MAKE) -C $(CURDIR)/minirok/ui
clean:
rm -f minirok.1
$(MAKE) -C $(CURDIR)/minirok/ui clean
minirok.1: minirok.xml
docbook2x-man $<
minirok-2.1/images/ 0000755 0001750 0001750 00000000000 11265733622 012740 5 ustar dato dato minirok-2.1/images/repeat_track_small.png 0000644 0001750 0001750 00000000362 11265733622 017303 0 ustar dato dato PNG
IHDR 7 gAMA 7 tEXtSoftware Adobe ImageReadyqe<