You are not logged in.

#1 2008-07-10 11:18:06

atordo
Member
Registered: 2007-04-21
Posts: 147

wspanish (plain lists of words in several languages)

Some time ago there used to be lists of words in several languages in /usr/share/dict. I realized there were missing using some script that depended on them. Now there is the package words which I guess installs every language available (don't know why is for x86_64 only, the files are plain text). Well, if you need just one specific language here is how I did it for Spanish.

pkgname=wspanish
pkgver=1.0.19
pkgrel=1
pkgdesc="a list of spanish words"
arch=('i686 x86_64')
url="http://packages.debian.org/etch/wspanish"
license=('unknown')
groups=()
depends=()
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=("http://ftp.de.debian.org/debian/pool/main/w/wspanish/${pkgname}_$pkgver.tar.gz")
noextract=()
md5sums=('8e056bc8187a2df1f9b133ef5d4dcc54')

build() {
  cd "$startdir/pkg"
  mkdir -p usr/share/dict
  mkdir -p usr/share/man/man5
  cd "$srcdir/$pkgname-$pkgver"
  cp -a words.spanish.latin1 $startdir/pkg/usr/share/dict/spanish
  cp -a words.5 $startdir/pkg/usr/share/man/man5/spanish.5
}

Note that this downloads the Debian package as I haven't been able to find the original URL, if such exists. Also the copyright file just states "Public Domain", but I haven't found that in /usr/share/licenses so I used "unknown" (if you know a better license which suits public domain please suggest).

Offline

Board footer

Powered by FluxBB