updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / rhyme / PKGBUILD
blob2f1d39814d1c82d494840ebbb7d2ee40134fa747
1 # Contributor: Bill Powell <bill at billpowellisalive dot com>
3 pkgname=rhyme
4 pkgver=0.9
5 pkgrel=1
6 pkgdesc="Rhyming dictionary for the console."
7 arch=('i686' 'x86_64')
8 url="http://rhyme.sourceforge.net/"
9 license=('GPLv2')
10 depends=('gdbm' 'readline')
11 makedepends=('gcc' 'gcc-libs' 'make')
12 source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz)
13 md5sums=('dd5d6b94d5881e411c86c9a6daabaa70')
15 build() {
16   cd "$srcdir/$pkgname-$pkgver/"
18         # Remove "-ltermcap" from Makefile.
19         # On my system, this library isn't needed, and breaks the compile.
21         sed -i -e "s/-ltermcap//" Makefile
23   make || return 1
24         echo $pkgdir
25         # I have a feeling this isn't the standard way to build a directory
26         # structure; feel free to fix. :)
27         mkdir -p $pkgdir/usr/share/rhyme
28         mkdir -p $pkgdir/usr/bin
29         mkdir -p $pkgdir/usr/share/man/man1
30   make RHYMEPATH="$pkgdir/usr/share/rhyme" BINPATH="$pkgdir/usr/bin" MANPATH="$pkgdir/usr/share/man/man1" install