# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $ # Maintainer: Sergej Pupykin # Contributor: Sergej Pupykin pkgname=man-pages-ru pkgver=0.98 pkgrel=4 pkgdesc="Russian Linux man pages" arch=(i686 x86_64) url="http://alexm.here.ru/manpages-ru/" depends=(man) license=('FDL') #source=(http://alexm.here.ru/manpages-ru/download/manpages-ru-$pkgver.tar.gz) source=(ftp://ftp.win.tue.nl/pub/linux-local/manpages/translations/man-pages-ru-$pkgver.tar.bz2) install=man-pages-ru.install md5sums=('2d452b93a2731eac8bb1767f61ff7557') build() { cd $startdir/src/manpages-ru-$pkgver mkdir -p $startdir/pkg/usr/share/man/ru && \ mv man* $startdir/pkg/usr/share/man/ru/ || return 1 cd $startdir/pkg/usr/share/man/ru || return 1 # this is included in shadow rm -f man5/passwd.5* || return 1 # convert to utf8 find -type f | xargs -i123 -- sh -c "mv 123 123.old && iconv -f koi8-r -t utf8 123.old >123 && rm 123.old" }