summaryrefslogtreecommitdiff
path: root/community/kydpdict
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/kydpdict
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/kydpdict')
-rw-r--r--community/kydpdict/ChangeLog9
-rw-r--r--community/kydpdict/PKGBUILD42
-rw-r--r--community/kydpdict/kydpdict.desktop8
-rw-r--r--community/kydpdict/kydpdict.install23
-rw-r--r--community/kydpdict/kydpdict.pngbin0 -> 933 bytes
5 files changed, 82 insertions, 0 deletions
diff --git a/community/kydpdict/ChangeLog b/community/kydpdict/ChangeLog
new file mode 100644
index 000000000..7ce482c7d
--- /dev/null
+++ b/community/kydpdict/ChangeLog
@@ -0,0 +1,9 @@
+2008-01-13 Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
+ * Fixed man path
+
+2008-01-07 Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
+ * Version 0.9.4
+ * Added Oxford sounds patch
+
+2007-06-27 tardo <tardo@nagi-fanboi.net>
+ * Built for x86_64
diff --git a/community/kydpdict/PKGBUILD b/community/kydpdict/PKGBUILD
new file mode 100644
index 000000000..9ca4c5aa5
--- /dev/null
+++ b/community/kydpdict/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 23962 2010-08-18 13:20:20Z lcarlier $
+# Contributor: Jaroslaw Swierczynski <swiergot@juvepoland.com>
+
+pkgname=kydpdict
+pkgver=0.9.5
+pkgrel=1
+pkgdesc="A front-end to YDP Collins Dictionary"
+arch=('i686' 'x86_64')
+url="http://ytm.bossstation.dnsalias.org/html/kydpdict.html"
+license=('GPL')
+depends=('qt3')
+install=(kydpdict.install)
+source=(http://ytm.bossstation.dnsalias.org/src/$pkgname-$pkgver.tar.bz2 \
+ $pkgname.png $pkgname.desktop)
+md5sums=('bf8aa06d4a3bbe401d7972e01c07609d'
+ 'dee4f28a7c681292226d06ab97b39e3e'
+ 'e42aed4dde1a7f203586220d04737237')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ . /etc/profile.d/qt3.sh
+
+ tar zxf contrib/kydpdict-0.9.3-oxpwnsnd.tar.gz
+ patch -Np1 -i kydpdict-0.9.3-oxpwnsnd/kydpdict-0.9.3-pwnoxsnd.patch
+
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+
+ make DESTDIR="$pkgdir" install
+
+ install -D -m 644 $srcdir/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
+ install -D -m 644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
+ install -D -m 644 contrib/$pkgname.1 $pkgdir/usr/share/man/man1/$pkgname.1
+ install -D -m 644 contrib/$pkgname.pl.1 $pkgdir/usr/share/man/pl/man1/$pkgname.1
+
+ gcc -O2 -Wall kydpdict-0.9.3-oxpwnsnd/exwaves.c -o $pkgdir/usr/bin/exwaves
+}
diff --git a/community/kydpdict/kydpdict.desktop b/community/kydpdict/kydpdict.desktop
new file mode 100644
index 000000000..03e3d68ac
--- /dev/null
+++ b/community/kydpdict/kydpdict.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Kydpdict
+Comment=A front-end to YDP Collins Dictionary
+Exec=kydpdict
+Icon=kydpdict
+Terminal=false
+Type=Application
+Categories=Education;Office;
diff --git a/community/kydpdict/kydpdict.install b/community/kydpdict/kydpdict.install
new file mode 100644
index 000000000..f8ad27310
--- /dev/null
+++ b/community/kydpdict/kydpdict.install
@@ -0,0 +1,23 @@
+# arg 1: the new package version
+pre_install() {
+ /bin/true
+}
+
+# arg 1: the new package version
+post_install() {
+ echo
+ echo "Oxford sound files support included. Follow these steps to use it:"
+ echo "1. Copy wave.wol and wave.000 to /usr/share/kydpdict."
+ echo "2. Use exwaves to get sound files in /usr/share/kydpdict/wave."
+ echo "3. Configure kydpdict to read sounds from /usr/share/kydpdict/wave."
+ echo "4. Set mpg321 as audio player (run 'pacman -S mpg321' if you don't have it)."
+ echo "5. Remove wave.wol and wave.000."
+ echo
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ post_install
+}
+
diff --git a/community/kydpdict/kydpdict.png b/community/kydpdict/kydpdict.png
new file mode 100644
index 000000000..b15985b80
--- /dev/null
+++ b/community/kydpdict/kydpdict.png
Binary files differ