# $Id: PKGBUILD 1010 2009-08-11 12:38:57Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>

pkgname=moreutils
pkgver=0.37
pkgrel=1
pkgdesc="A growing collection of the unix tools that nobody thought to write thirty years ago"
arch=('i686' 'x86_64')
url="http://kitenet.net/~joey/code/moreutils.html"
license=('GPL')
makedepends=('docbook2x' 'docbook-xml' 'perl-xml-sax')
depends=('glibc')
options=('!emptydirs' 'zipman')
replaces=(moreutils-svn)
source=(http://ftp.de.debian.org/debian/pool/main/m/moreutils/moreutils_$pkgver.tar.gz)
md5sums=('0efb69ef1e913ea4dabc74bfe0e68372')

build() {
  cd $srcdir/moreutils

  make || return 1
  make PREFIX=$startdir/pkg/usr install

  chmod 0644 $startdir/pkg/usr/share/man/man1/*
}