summaryrefslogtreecommitdiff
path: root/community/klavaro
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/klavaro
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/klavaro')
-rw-r--r--community/klavaro/PKGBUILD28
-rw-r--r--community/klavaro/klavaro.install10
2 files changed, 38 insertions, 0 deletions
diff --git a/community/klavaro/PKGBUILD b/community/klavaro/PKGBUILD
new file mode 100644
index 000000000..a451abb80
--- /dev/null
+++ b/community/klavaro/PKGBUILD
@@ -0,0 +1,28 @@
+# $Id: PKGBUILD 43686 2011-03-29 05:52:51Z stativ $
+# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
+pkgname=klavaro
+pkgver=1.9.0
+pkgrel=1
+pkgdesc="Free touch typing tutor program"
+arch=('i686' 'x86_64')
+url="http://klavaro.sourceforge.net/"
+license=('GPL2')
+depends=('curl' 'gtkdatabox' 'hicolor-icon-theme')
+makedepends=('intltool')
+install=$pkgname.install
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2)
+md5sums=('e6ad9c7b3d9b3060f32441b04aa9c632')
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ sed -i 's|/usr/share/icons/hicolor/24x24/apps/klavaro.png|klavaro|' \
+ "$pkgdir"/usr/share/applications/$pkgname.desktop
+}
diff --git a/community/klavaro/klavaro.install b/community/klavaro/klavaro.install
new file mode 100644
index 000000000..881feae71
--- /dev/null
+++ b/community/klavaro/klavaro.install
@@ -0,0 +1,10 @@
+post_install() {
+ gtk-update-icon-cache -f /usr/share/icons/hicolor/
+}
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}