updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / readahead-list / PKGBUILD
blob1177e2f6da7da15685a61018efddc47a55dd552f
1 # Contributor: exmethix <florian_aust@t-online.de>
2 # Contributor: whaevr <whaevr(at)archlinux(dot)us>
4 pkgname=readahead-list
5 pkgver=0.20050517.0220
6 pkgrel=2
7 pkgdesc="readahead-list allows users to load files into the page cache before they are needed, to accelerate program loading"
8 arch=("i686" "x86_64")
9 install=readahead.install
10 url="http://freshmeat.net/projects/readahead-list/"
11 license=('GPL')
12 depends=("gcc-libs")
13 source=(https://launchpad.net/ubuntu/jaunty/+source/${pkgname}/1:${pkgver}-1ubuntu5/+files/${pkgname}_${pkgver}.orig.tar.gz
14 https://launchpad.net/ubuntu/jaunty/+source/${pkgname}/1:${pkgver}-1ubuntu5/+files/${pkgname}_${pkgver}-1ubuntu5.diff.gz
15 readahead-list-desktop
16 readahead-watch-desktop)
17 md5sums=('a67ec6f8805ff67d3ff97570fa5be5ae'
18          'e6fe46a225b68ce4fd91bb117151f58c'
19          '969ad8fec93b7552ee9d5bb32d336bc5'
20          '69f61172747338d6712413916408efc2')
22 build() {
23 mkdir ${pkgdir}/etc/
24 mkdir ${pkgdir}/etc/readahead
25 touch ${pkgdir}/etc/readahead/boot
26 touch ${pkgdir}/etc/readahead/desktop
27 mkdir -p ${pkgdir}/etc/rc.d/
28 cp readahead-list-desktop ${pkgdir}/etc/rc.d/
29 cp readahead-watch-desktop ${pkgdir}/etc/rc.d/
30 patch -p1 < ${pkgname}_${pkgver}-1ubuntu5.diff
32 cd "$srcdir/$pkgname-$pkgver"
34 for pat in ../debian/patches/*.patch; do
35 patch -p1 < $pat
36 done
38 ./configure --prefix=/usr --mandir=/usr/share/man
39 make || return 1
40 make DESTDIR="$pkgdir/" install