30 lines
791 B
Bash
30 lines
791 B
Bash
# Template file for 'fakeroot'
|
|
pkgname=fakeroot
|
|
version=1.23
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static"
|
|
hostmakedepends="automake libtool"
|
|
makedepends="acl-devel libcap-devel"
|
|
short_desc="Gives a fake root environment"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="http://packages.debian.org/fakeroot"
|
|
distfiles="${DEBIAN_SITE}/main/f/fakeroot/${pkgname}_${version}.orig.tar.xz"
|
|
checksum=009cd6696a931562cf1c212bb57ca441a4a2d45cd32c3190a35c7ae98506f4f6
|
|
|
|
lib32disabled=yes
|
|
|
|
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
|
|
}
|