Want more features on Pastebin? Sign Up, it's FREE!
Guest

readahead-fedora whaevr's PKGBUILD

By: a guest on Sep 20th, 2010  |  syntax: None  |  size: 1.26 KB  |  views: 93  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: whaevr <whaevr(at)archlinux(dot)us>
  2.  
  3. pkgname=readahead-fedora
  4. pkgver=1.5.6
  5. pkgrel=1
  6. pkgdesc="Fedora's implementation of readahead to preload boot process files"
  7. arch=("i686" "x86_64")
  8. url="http://freshmeat.net/projects/readahead-list/"
  9. license=('GPL')
  10. depends=('gcc-libs' 'audit' 'util-linux-ng')
  11. makedepends=('quilt' 'autoconf' 'automake')
  12. source=(http://ftp.de.debian.org/debian/pool/main/r/${pkgname}/${pkgname}_${pkgver}.orig.tar.gz
  13. http://ftp.de.debian.org/debian/pool/main/r/${pkgname}/${pkgname}_${pkgver}-${pkgrel}.diff.gz
  14. readahead-watch
  15. readahead-watch-late
  16. readahead-read)
  17. md5sums=('295d7ab128b2c8a1f0df2aeb7b6bccee'
  18.          '8f7b7ab46e6c6e70407ed707bb3d0bff'
  19.          '21c3a942e5cf9e136658b5146f17c9fa'
  20.          'fee7e89de3f9e93c2804ac3db62449a9'
  21.          '1c58192e98000ef20ad14083f1fe3ee0')
  22.  
  23. build() {
  24. patch -p1 < ${pkgname}_${pkgver}-${pkgrel}.diff
  25.  
  26. cd "$srcdir/$pkgname-$pkgver"
  27. export QUILT_PATCHES=../debian/patches
  28. quilt push -a
  29.  
  30. sh autogen.sh
  31. ./configure --prefix=/usr --mandir=/usr/share/man
  32. make || return 1
  33. make DESTDIR="$pkgdir/" install
  34. mkdir ${pkgdir}/etc/{readahead.d,rc.d}
  35. cp ../{readahead-watch,readahead-watch-late,readahead-read} ${pkgdir}/etc/rc.d/
  36. rm -rf ${pkgdir}/etc/{cron.daily,cron.monthly,default}
  37. }
clone this paste RAW Paste Data