summaryrefslogtreecommitdiff
path: root/community/dictd
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-07-20 11:40:14 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-07-20 11:40:14 -0300
commit2f352ca8b911d96566b10adc049f76a552ab93aa (patch)
treea70b2a875856fbf847f12ae33f9434ea8ca1ef56 /community/dictd
parent12c074375919d2de177eb9456352866902118a03 (diff)
parent94e3eb45cd3402cbc5efd70ae725e8d48ed696af (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/pbzip2/PKGBUILD extra/audacious/PKGBUILD extra/stardict/PKGBUILD
Diffstat (limited to 'community/dictd')
-rw-r--r--community/dictd/PKGBUILD18
-rw-r--r--community/dictd/colorit.conf32
2 files changed, 45 insertions, 5 deletions
diff --git a/community/dictd/PKGBUILD b/community/dictd/PKGBUILD
index 52a509541..67cbef8ce 100644
--- a/community/dictd/PKGBUILD
+++ b/community/dictd/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 41057 2011-03-03 15:30:07Z spupykin $
+# $Id: PKGBUILD 51953 2011-07-18 13:18:14Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: SmackleFunky <smacklefunky@optusnet.com.au>
# Contributor: Enrico Morelli <morelli@cerm.unifi.it>
pkgname=dictd
pkgver=1.12.0
-pkgrel=1
+pkgrel=2
pkgdesc="Online dictionary client and server"
url="http://sourceforge.net/projects/dict/"
license=("GPL")
@@ -16,26 +16,33 @@ backup=(etc/dict/dictd.conf
etc/dict/dict.conf
etc/dict/site.info
etc/conf.d/dictd
- etc/xinetd.d/dictd)
+ etc/xinetd.d/dictd
+ etc/dict/colorit.conf)
source=(http://downloads.sourceforge.net/project/dict/dictd/dictd-$pkgver/dictd-$pkgver.tar.gz
dictd
dict.conf
dictd.conf
dictd.confd
site.info
- dictd.xinetd)
+ dictd.xinetd
+ colorit.conf)
md5sums=('71aaf3a697ea2e9409643f11ea85b53a'
'6542df4fc585773fc03f1a088730126b'
'fb72f7d8c55f84b1b37bbc8d33a8e55a'
'64cd6ffdb40fb3367224f91ac44926ac'
'838887fee38ae4cebd652d399b1f2266'
'b8cabf913876e544d919c7f20ff8db9e'
- 'b7dbc9529df13ff895dae2b4abd080d6')
+ 'b7dbc9529df13ff895dae2b4abd080d6'
+ '978c9c079a0fc8d7d42a4cd4000190e7')
build() {
cd $srcdir/$pkgname-$pkgver
./configure --enable-dictorg --prefix=/usr --sysconfdir=/etc/dict
make
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
install -D -m 0755 $srcdir/dictd $pkgdir/etc/rc.d/dictd
install -D -m 0644 $srcdir/dictd.xinetd $pkgdir/etc/xinetd.d/dictd
@@ -43,4 +50,5 @@ build() {
install -D -m 0644 $srcdir/dict.conf $pkgdir/etc/dict/dict.conf
install -D -m 0644 $srcdir/site.info $pkgdir/etc/dict/site.info
install -D -m 0644 $srcdir/dictd.confd $pkgdir/etc/conf.d/dictd
+ install -D -m 0644 $srcdir/colorit.conf $pkgdir/etc/dict/colorit.conf
}
diff --git a/community/dictd/colorit.conf b/community/dictd/colorit.conf
new file mode 100644
index 000000000..8355dae15
--- /dev/null
+++ b/community/dictd/colorit.conf
@@ -0,0 +1,32 @@
+dnl /etc/dictd/colorit.conf vim:ft=m4
+dnl
+dnl Sample configuration file for colorit(1) program
+dnl
+divert(-1)
+dnl
+dnl Define some useful color variables
+dnl
+define(`black', `0')
+define(`red', `1')
+define(`green', `2')
+define(`brown', `3')
+define(`blue', `4')
+define(`magenta', `5')
+define(`cyan', `6')
+define(`white', `7')
+dnl
+dnl Mark macro arguments: regexp foreground-color [background-color]
+dnl
+define(`mark', ``mark "$1"'' `ifelse(`$#', `3', ``"\033[3$2;4$3m"'', ``"\033[3$2m"'')' `"\033[m"')
+dnl
+divert
+mark(`^From.*$',red,cyan)
+mark(`^ [^ ]+',green)
+mark(`^ *Note:',red)
+mark(`{[^{]+}',green)
+mark(`^ *\[[^\[]+\]', cyan)
+mark(`^[ ]*(adj|n|v|adv)? *[0-9]+[\.:]',cyan)
+mark(`^ *\([a-z]+\)',cyan)
+mark(`(Syn|Ant|syn|ant):', blue, white)
+mark(` (t|i|a|adj|adv|n|v)\. ',cyan)
+mark(` (t|i|a|adj|adv|n|v)\.$',cyan)