PKGBUILDs/community/man-pages-de/PKGBUILD
2009-10-09 21:15:33 -05:00

40 lines
1.7 KiB
Bash

# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
pkgname=man-pages-de
pkgver=0.5
pkgrel=5
pkgdesc="German Linux man pages."
arch=('i686' 'x86_64')
url="http://www.infodrom.org/projects/manpages-de/"
license=('custom')
depends=('man')
source=(http://www.infodrom.org/projects/manpages-de/download/manpages-de-$pkgver.tar.gz)
md5sums=('6686b1be6da01cdbb5ea7511ddcf61a0')
build() {
cd "${srcdir}/manpages-de-$pkgver"
eval "install -d ${pkgdir}/usr/share/man/de/man{$(seq -s, 1 8)}" || return 1
find man?/ -name '*.?' -exec iconv -f latin1 -t utf8 -o ${pkgdir}/usr/share/man/de/{} {} \; || return 1
install -D -m644 "COPYRIGHT" "${pkgdir}/usr/share/licenses/$pkgname/COPYRIGHT" || return 1
#removing conflicting files
rm "${pkgdir}/usr/share/man/de/man1/apropos.1" || return 1
rm "${pkgdir}/usr/share/man/de/man1/chsh.1" || return 1
rm "${pkgdir}/usr/share/man/de/man1/groups.1" || return 1
rm "${pkgdir}/usr/share/man/de/man1/login.1" || return 1
rm "${pkgdir}/usr/share/man/de/man1/man.1" || return 1
rm "${pkgdir}/usr/share/man/de/man1/newgrp.1" || return 1
rm "${pkgdir}/usr/share/man/de/man1/passwd.1" || return 1
rm "${pkgdir}/usr/share/man/de/man1/whatis.1" || return 1
rm "${pkgdir}/usr/share/man/de/man1/manpath.1" || return 1
rm "${pkgdir}/usr/share/man/de/man1/zsoelim.1" || return 1
rm "${pkgdir}/usr/share/man/de/man5/manpath.5" || return 1
rm "${pkgdir}/usr/share/man/de/man5/passwd.5" || return 1
rm "${pkgdir}/usr/share/man/de/man8/catman.8" || return 1
rm "${pkgdir}/usr/share/man/de/man8/mandb.8" || return 1
}