void-packages/srcpkgs/fakeroot/template
2016-07-17 17:14:45 +02:00

27 lines
777 B
Bash

# Template file for 'fakeroot'
pkgname=fakeroot
version=1.21
revision=1
lib32disabled=yes
build_style=gnu-configure
hostmakedepends="automake libtool"
makedepends="acl-devel libcap-devel"
configure_args="--disable-static"
short_desc="Gives a fake root environment"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://packages.debian.org/fakeroot"
license="GPL-3"
distfiles="${DEBIAN_SITE}/main/f/fakeroot/${pkgname}_${version}.orig.tar.gz"
checksum=5d293c1b3604b2a9265d1811a9890c749887ef08aec55f3237d32bf35836171a
case "$XBPS_TARGET_MACHINE" in
*-musl) CFLAGS="-D_STAT_VER=0" ;;
esac
pre_configure() {
sed -i /SUBDIRS/d doc/Makefile.am
sh ./bootstrap
}
post_install() {
# Use /bin/sh shebang.
sed -i -e "s|^#!/bin/bash$|#!/bin/sh|" ${DESTDIR}/usr/bin/fakeroot
}