diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/preload/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/preload/PKGBUILD')
-rw-r--r-- | community/preload/PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/community/preload/PKGBUILD b/community/preload/PKGBUILD new file mode 100644 index 000000000..e5457727c --- /dev/null +++ b/community/preload/PKGBUILD @@ -0,0 +1,38 @@ +# Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org> +# Contributor: William Rea <sillywilly@gmail.com> + +pkgname=preload +pkgver=0.6.4 +pkgrel=2 +arch=('i686' 'x86_64') +pkgdesc="Makes applications run faster by prefetching binaries and shared objects" +url="http://sourceforge.net/projects/preload" +license=('GPL2') +makedepends=('help2man' 'pkgconfig') +depends=('glib2') +backup=('etc/preload.conf') +options=('!makeflags') +install=$pkgname.install +source=(http://downloads.sourceforge.net/sourceforge/preload/$pkgname-$pkgver.tar.gz \ + rc.preload) +md5sums=('10786287b55afd3a2b433b4f898809f4' + 'bde0dd7867c77e7c4d10b481b5cddcd3') + +build() { + cd $startdir/src/$pkgname-$pkgver + ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --localstatedir=/var + make || return 1 + make DESTDIR=$startdir/pkg install + + install -D -m755 ../rc.preload $startdir/pkg/etc/rc.d/preload + rm -rf $startdir/pkg/etc/rc.d/init.d + + rm -rf $startdir/pkg/var/lib/preload/preload.state + rm -rf $startdir/pkg/var/log/preload.log + + mkdir $startdir/pkg/etc/conf.d + mv $startdir/pkg/etc/sysconfig/* $startdir/pkg/etc/conf.d + rm -rf $startdir/pkg/etc/sysconfig + + sed -r -i 's#^((map|exe)prefix =) (.+)$#\1 /opt;\3#' $startdir/pkg/etc/preload.conf +} |