# $Id: PKGBUILD 1541 2009-08-25 14:43:46Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Peter Simons # Contributor: Sergej Pupykin pkgname=rfc pkgver=20090825 pkgrel=1 pkgdesc="RFCs from rfc-editor.org" arch=('any') url="http://www.rfc-editor.org/" license=("custom:as-is") options=('docs') source=(ftp://ftp.nic.it/mirrors/in-notes/rfc-index.txt \ license \ ftp://ftp.nic.it/mirrors/in-notes/tar/RFCs0001-0500.tar.gz \ ftp://ftp.nic.it/mirrors/in-notes/tar/RFCs0501-1000.tar.gz \ ftp://ftp.nic.it/mirrors/in-notes/tar/RFCs1001-1500.tar.gz \ ftp://ftp.nic.it/mirrors/in-notes/tar/RFCs1501-2000.tar.gz \ ftp://ftp.nic.it/mirrors/in-notes/tar/RFCs2001-2500.tar.gz \ ftp://ftp.nic.it/mirrors/in-notes/tar/RFCs2501-3000.tar.gz \ ftp://ftp.nic.it/mirrors/in-notes/tar/RFCs3001-3500.tar.gz \ ftp://ftp.nic.it/mirrors/in-notes/tar/RFCs3501-4000.tar.gz \ ftp://ftp.nic.it/mirrors/in-notes/tar/RFCs4001-4500.tar.gz \ ftp://ftp.nic.it/mirrors/in-notes/tar/RFCs4501-5000.tar.gz \ ftp://ftp.nic.it/mirrors/in-notes/tar/RFCs5001-5500.tar.gz \ ftp://ftp.nic.it/mirrors/in-notes/tar/RFCs5501-latest.tar.gz) md5sums=('a931244b76ecce7b19026d4a60ed8f2a' '06a779406b45edddbd19fda96696ab4a' '828d8905d047ca6cb6819382c92fac27' 'd516de38c17d748f9d10cbbc2ea3cc5d' '5fb7f95e14515a47019761f8c01a350e' '8230d2afe5f3a53867ea5d11f1e175dd' 'e3569a24685a912e9a51dd7d5785b995' '4b7b2b878d143285983db0d2ea11be26' '8551c9d56cd37c9b129fbcf236374db8' 'cf22bd08e7988bf1a4bdde204103f709' '915fffa9615c00139f415f2901fd4ebe' 'ea95188a6eef61df316177082413bf14' 'c4cf392c28725b8ffa394ac3eac47513' 'c3b156c2aeb99206eeb9d588d856c48f') build() { cd "$srcdir" mkdir -p "$pkgdir/usr/share/doc/rfc" || return 1 cp rfc-index.txt "$pkgdir/usr/share/doc/rfc/" || return 1 rm -f rfc-index.txt tar xf rfc1305.tar || return 1 rm -f rfc1305.tar for n in ntpv3*; do mv "$n" "rfc1305-$n" || return 1 done for fmt in txt ps pdf; do mkdir -p "$pkgdir/usr/share/doc/rfc/${fmt}" || return 1 mv *.${fmt} "$pkgdir/usr/share/doc/rfc/${fmt}/" || return 1 done cd "$pkgdir/usr/share/doc/rfc" find . -type f -exec chmod 444 {} \; find . -type d -exec chmod 555 {} \; chown -R root:root . install -D -m0644 $srcdir/license $pkgdir/usr/share/licenses/$pkgname/license }