summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--01-python2+iconpath.patch17
-rw-r--r--PKGBUILD36
-rw-r--r--milena-gtk.desktop12
4 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..abd0746e0ec
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = milena-gtk
+ pkgdesc = Gtk2 gui Milena speech synthesizer (screen reader, etc)
+ pkgver = 0.2
+ pkgrel = 2
+ url = http://milena.polip.com/
+ arch = any
+ license = GPL
+ depends = milena
+ depends = python2-xlib
+ source = http://tts.polip.com/files/milena_gtk-0.2.tar.gz
+ source = milena-gtk.desktop
+ source = 01-python2+iconpath.patch
+ sha256sums = 31732eaaa5ea3b3f4a0012098092928f261a90745c4e7f4e8c3808f318339c15
+ sha256sums = 7e606231725d305e8fd5f49ed489df28fc2293d4d509cdb91f8a7b93a8c33513
+ sha256sums = e3aac040cd31af92e5135be1bf451a68fab7c71ec871b4a75a70133a0ec0ed1b
+
+pkgname = milena-gtk
+
diff --git a/01-python2+iconpath.patch b/01-python2+iconpath.patch
new file mode 100644
index 00000000000..f391b074a34
--- /dev/null
+++ b/01-python2+iconpath.patch
@@ -0,0 +1,17 @@
+--- milena_gtk.py.orig 2010-12-04 17:10:48.685378764 +0100
++++ milena_gtk.py 2010-12-04 17:29:58.273490930 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python2
+ #coding: utf-8
+
+ import sys,os,xml,re,htmlentitydefs,subprocess,signal,pickle,string
+@@ -49,7 +49,7 @@
+ else:
+ self.config[a]=False
+ self.config['keybindings']={}
+- self.config['string_icon_path']=os.path.dirname(sys.argv[0])+'/milena_tray1.png'
++ self.config['string_icon_path']='/usr/share/pixmaps/milena-gtk.png'
+ for a in self.keysig:
+ self.config['keybindings'][a]=''
+ self.config['keybindings']['activate']='<Ctrl><Alt>x'
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5a284797295
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: 3ED <krzysztof1987 _at_ gmail _dot_ com>
+
+pkgname=milena-gtk
+_pkgname=milena_gtk
+pkgver=0.2
+pkgrel=2
+pkgdesc="Gtk2 gui Milena speech synthesizer (screen reader, etc)"
+arch=(any)
+url="http://milena.polip.com/"
+license=('GPL')
+depends=('milena' 'python2-xlib')
+source=("http://tts.polip.com/files/${_pkgname}-${pkgver}.tar.gz"
+ "milena-gtk.desktop"
+ "01-python2+iconpath.patch")
+sha256sums=('31732eaaa5ea3b3f4a0012098092928f261a90745c4e7f4e8c3808f318339c15'
+ '7e606231725d305e8fd5f49ed489df28fc2293d4d509cdb91f8a7b93a8c33513'
+ 'e3aac040cd31af92e5135be1bf451a68fab7c71ec871b4a75a70133a0ec0ed1b')
+
+prepare() {
+ cd ${_pkgname}
+ patch -Np0 -i "$srcdir"/01-python2+iconpath.patch
+}
+
+package() {
+ install -dm755 "$pkgdir"/usr/{bin,share/{pixmaps,applications,doc/$pkgname}}
+
+ install -m644 milena-gtk.desktop "$pkgdir"/usr/share/applications/
+
+ cd ${_pkgname}
+
+ install -m755 milena_gtk.py "$pkgdir"/usr/bin/$pkgname
+ install -m644 milena_tray1.png "$pkgdir"/usr/share/pixmaps/milena-gtk.png
+ install -m644 README "$pkgdir"/usr/share/doc/$pkgname/README
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/milena-gtk.desktop b/milena-gtk.desktop
new file mode 100644
index 00000000000..eacead884d1
--- /dev/null
+++ b/milena-gtk.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Milena GTK+
+GenericName=GUI for Milena
+GenericName[pl_PL]=GUI dla Milena
+Comment=Screen reader for Milena speech synthesizer
+Comment[pl_PL]=Czytnik ekranu dla syntezatora mowy Milena
+Icon=milena-gtk.png
+Exec=milena-gtk
+Terminal=false
+Type=Application
+Categories=GTK;AudioVideo;