You are not logged in.
Pages: 1
See http://www.fourmilab.ch/anagram/ for details.
pkgname=anagram
pkgver=1.3
pkgrel=1
pkgdesc="find anagrams for phrase"
arch=('i686 x86_64')
url="http://www.fourmilab.ch/anagram/"
license=('unknown')
source=("http://www.fourmilab.ch/$pkgname/$pkgname-$pkgver.tar.gz" 'anagram')
md5sums=('ccefd127386c8f9d076c0cddde946e9f' '2f0ffebab3ebeeb31a3cac1e12c2b7b1')
build() {
cd $srcdir/$pkgname-$pkgver
./configure || return 1
make || return 1
make check || return 1
install -Dps -m755 $pkgname $pkgdir/usr/bin/${pkgname}.bin
install -Dp -m644 ${pkgname}.1 $pkgdir/usr/share/man/man1/${pkgname}.1 && gzip $pkgdir/usr/share/man/man1/${pkgname}.1
install -Dp -m644 wordlist.bin $pkgdir/usr/share/dict/wordlist.bin
install -Dp -m755 $startdir/$pkgname $pkgdir/usr/bin/$pkgname
}
The "anagram" file:
#!/bin/sh
exec anagram.bin -b /usr/share/dict/wordlist.bin "$@"
Also, if you want to use an alternate language see example for Spanish:
pkgname=anagram-spanish
pkgver=1.0.19
pkgrel=1
pkgdesc="list of Spanish words for anagram"
arch=('i686 x86_64')
url="http://packages.debian.org/etch/wspanish"
license=('unknown')
depends=('anagram' 'wspanish')
build() {
grep -v ñ /usr/share/dict/spanish | grep -v š | tr á a | tr é e | tr í i \
| tr ó o | tr ú u | tr ü u > $srcdir/spanish.txt
anagram.bin --dictionary $srcdir/spanish.txt --export $srcdir/spanish.bin
install -D -m664 $srcdir/spanish.bin $pkgdir/usr/share/dict/spanish.bin
}
For installing plain lists of words in other languages see this previous post. Note that anagram segfaults if using charsets other than us-ascii, so you'll have to convert/skip those before creating the binary file.
Offline
Pages: 1