mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
38 lines
1.2 KiB
Bash
38 lines
1.2 KiB
Bash
# Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
|
|
# Contributor: William Rea <sillywilly@gmail.com>
|
|
|
|
pkgname=preload
|
|
pkgver=0.6.4
|
|
pkgrel=1
|
|
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'
|
|
'2c6d5e050b7e476b34a3a69e4fc28091')
|
|
|
|
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
|
|
}
|