mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
45 lines
2.1 KiB
Bash
45 lines
2.1 KiB
Bash
# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
|
|
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
|
|
# Contributor: Jan Krňávek <wamba@centrum.cz>
|
|
|
|
pkgname=man-pages-cs
|
|
pkgver=0.18.20090209
|
|
pkgrel=2
|
|
pkgdesc="Czech man pages."
|
|
arch=('i686' 'x86_64')
|
|
url="http://sweb.cz/tropikhajma/man-pages-cs/"
|
|
license=('custom')
|
|
depends=('man-db>=2.5.4')
|
|
makedepends=('lzma-utils')
|
|
source=(http://tropikhajma.sweb.cz/$pkgname/$pkgname-$pkgver.tar.lzma)
|
|
# old, not working sources: source=(http://odplata.ic.cz/$pkgname-$pkgver.tar.bz2)
|
|
# source=(ftp://man-pages-cs-wiki.homelinux.net/$pkgname/$pkgname-$pkgver.tar.bz2)
|
|
|
|
md5sums=('ce0f9e3a6fe2de5c260d0034bd6ea74a')
|
|
|
|
build() {
|
|
tar xfa "${srcdir}/$pkgname-$pkgver.tar.lzma" || return 1
|
|
|
|
cd "${srcdir}/$pkgname-$pkgver"
|
|
|
|
install -d "${pkgdir}"/usr/share/man/cs/man{1,2,3,4,5,6,7,8} || return 1
|
|
find . -name '*.1' -not -path '*.pc*' -print0 | xargs -r -0 install -m 644 -t "${pkgdir}"/usr/share/man/cs/man1
|
|
find . -name '*.2' -not -path '*.pc*' -print0 | xargs -r -0 install -m 644 -t "${pkgdir}"/usr/share/man/cs/man2
|
|
find . -name '*.3' -not -path '*.pc*' -print0 | xargs -r -0 install -m 644 -t "${pkgdir}"/usr/share/man/cs/man3
|
|
find . -name '*.4' -not -path '*.pc*' -print0 | xargs -r -0 install -m 644 -t "${pkgdir}"/usr/share/man/cs/man4
|
|
find . -name '*.5' -not -path '*.pc*' -print0 | xargs -r -0 install -m 644 -t "${pkgdir}"/usr/share/man/cs/man5
|
|
find . -name '*.6' -not -path '*.pc*' -print0 | xargs -r -0 install -m 644 -t "${pkgdir}"/usr/share/man/cs/man6
|
|
find . -name '*.7' -not -path '*.pc*' -print0 | xargs -r -0 install -m 644 -t "${pkgdir}"/usr/share/man/cs/man7
|
|
find . -name '*.8' -not -path '*.pc*' -print0 | xargs -r -0 install -m 644 -t "${pkgdir}"/usr/share/man/cs/man8
|
|
|
|
#licenses
|
|
install -D -m644 "${srcdir}/$pkgname-$pkgver/README" \
|
|
"${pkgdir}/usr/share/licenses/$pkgname/README" || return 1
|
|
install -D -m644 "${srcdir}/$pkgname-$pkgver/CONTRIB" \
|
|
"${pkgdir}/usr/share/licenses/$pkgname/CONTRIB" || return 1
|
|
|
|
|
|
#removing conflicting files
|
|
rm "${pkgdir}/usr/share/man/cs/man1/groups.1" || return 1
|
|
rm "${pkgdir}/usr/share/man/cs/man5/passwd.5" || return 1
|
|
}
|