core/fakeroot/PKGBUILD

48 lines
1.4 KiB
Bash
Raw Normal View History

#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
2010-03-13 23:25:19 +08:00
pkgname=fakeroot
2012-01-25 09:52:20 +08:00
pkgver=1.18.2
pkgrel=1
pkgdesc="Gives a fake root environment, useful for building packages as a non-privileged user."
2010-03-13 23:25:19 +08:00
arch=('i686' 'x86_64')
license=('GPL')
url="http://packages.debian.org/fakeroot"
groups=('base-devel')
2012-01-25 09:52:20 +08:00
install="fakeroot.install"
depends=('glibc' 'filesystem' 'util-linux' 'sed' 'sh')
2010-03-13 23:25:19 +08:00
options=('!libtool')
2012-01-25 09:52:20 +08:00
source=("http://ftp.debian.org/debian/pool/main/f/${pkgname}/${pkgname}_${pkgver}.orig.tar.bz2")
md5sums=('79f32331358ad58499704ea5e19fd0ae')
2010-03-13 23:25:19 +08:00
build() {
2012-01-25 09:52:20 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr \
--libdir=/usr/lib/libfakeroot \
--disable-static \
--with-ipc=sysv
2010-03-13 23:25:19 +08:00
# --with-ipc=tcp is currently broken and no option on smp systems
2012-01-25 09:52:20 +08:00
make
2010-03-13 23:25:19 +08:00
}
package() {
2012-01-25 09:52:20 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
2010-03-13 23:25:19 +08:00
2012-01-25 09:52:20 +08:00
install -d -m755 "${pkgdir}/etc/ld.so.conf.d"
echo '/usr/lib/libfakeroot' > "${pkgdir}/etc/ld.so.conf.d/fakeroot.conf"
2010-03-13 23:25:19 +08:00
# install README for sysv/tcp usage
2012-01-25 09:52:20 +08:00
install -D -m644 "${srcdir}/${pkgname}-${pkgver}/README" "${pkgdir}/usr/share/doc/${pkgname}/README"
2010-03-13 23:25:19 +08:00
}
2012-01-25 09:52:20 +08:00
# vim:set ts=2 sw=2 et: