updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / dadadodo / PKGBUILD
blobcb69c97bdf6d854b9c89dfab82ea8cb04dd03ae5
1 #Contributor: Arthur Danskin <arthurdanskin@gmail.com>
3 pkgname=dadadodo
4 pkgver=1.04
5 pkgrel=3
6 pkgdesc="analyses texts for word probabilities, and then generates random sentences based on that"
7 url="http://www.jwz.org/dadadodo/"
8 license="MIT"
9 arch=(i686 x86_64)
10 depends=(glibc)
11 makedepends=(gcc perl)
12 source=(http://www.jwz.org/dadadodo/$pkgname-$pkgver.tar.gz)
13 md5sums=(d3ff69c4e71c328586b1c6ca2130a4b3)
15 build() {
16   cd $startdir/src/$pkgname-$pkgver
17   head -n 9 dadadodo.c | perl -e 'while (<>) {print substr($_, 3)}' > LICENSE
18   make || return 1
19   install -D -m755 dadadodo $startdir/pkg/usr/bin/dadadodo
20   install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/dadadodo/LICENSE