Commit 5b9d44e4 authored by Henrik Riomar's avatar Henrik Riomar Committed by Natanael Copa

main/fakeroot: modernize abuild

parent 83866c90
......@@ -22,15 +22,6 @@ source="http://ftp.debian.org/debian/pool/main/f/$pkgname/${pkgname}_${pkgver}.o
xstatjunk.patch
"
prepare() {
cd $startdir/src/$pkgname-$pkgver
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
check() {
cd $startdir/src/$pkgname-$pkgver
/bin/bash -c 'make check'
......@@ -45,23 +36,21 @@ build() {
export CFLAGS="-D_STAT_VER=0 $CFLAGS"
fi
CONFIG_SHELL=/bin/sh \
./bootstrap || return 1
CONFIG_SHELL=/bin/sh \
./configure \
CONFIG_SHELL=/bin/sh ./bootstrap
CONFIG_SHELL=/bin/sh ./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--disable-static \
|| return 1
make || return 1
--disable-static
make
cd doc
po4a -k 0 --rm-backups --variable "srcdir=../doc/" po4a/po4a.cfg || return 1
po4a -k 0 --rm-backups --variable "srcdir=../doc/" po4a/po4a.cfg
}
package() {
cd $startdir/src/$pkgname-$pkgver
make DESTDIR="$pkgdir" install || return 1
cd "$startdir/src/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}
sha512sums="193478d9ff88ca2ae69fe47b73b6c61aeb2ba3f2a9e7ed5d455022705857c6f34cdcbe2d3f614c4c4c9509368dc78b9a7b7aa56fb3b50bb3309448140abd796a fakeroot_1.22.orig.tar.bz2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment