preload: fix i686 build

This commit is contained in:
bougyman 2015-04-12 16:29:06 -05:00
parent f1d41e521f
commit d7c0f4496e

View file

@ -1,19 +1,24 @@
# Template file for 'preload'
pkgname=preload
version=0.6.4
revision=3
revision=4
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="libglib-devel"
makejobs="-j1"
disable_parallel_build=yes
short_desc="An adaptive readahead daemon"
maintainer="bougyman <bougyman@voidlinux.eu>"
only_for_archs="x86_64 armv6l armv7l"
license="GPL-2"
homepage="http://sourceforge.net/projects/preload"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=d0a558e83cb29a51d9d96736ef39f4b4e55e43a589ad1aec594a048ca22f816b
pre_build() {
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
sed -i -e 's|/usr/i686-pc-linux-gnu/usr/lib32/glib-2.0/include|/usr/i686-pc-linux-gnu/usr/lib/glib-2.0/include|' Makefile doc/Makefile src/Makefile
fi
}
post_install() {
rm -rf etc/rc.d
rm -rf etc/logrotate.d