1
0
mirror of git://git.2f30.org/morpheus.git synced 2024-06-30 00:41:20 +00:00
morpheus/pkgs/sbase/build
Daniel Bainton ac90eb3aa3 Move each package to their own dir
Also support for the $pkgdir variable in build files, which will include
the full path to the directory of the package (for patches, configs etc)
2014-03-09 13:56:35 +02:00

31 lines
557 B
Plaintext

git="git://git.2f30.org/sbase"
build: crossmusl
set -x
cd src/sbase
for f in util/*.c; do
$CC -c $f -o "${f%%.c}.o" $CFLAGS
done
for f in util/*.o; do
ar -r -c util.a $f
done
ranlib util.a
for f in *.c; do
$CC -c $f $CFLAGS
done
for f in *.o; do
$CC -o "${f%.*}" $f util.a $LDFLAGS
done
for f in *.o; do
cp "${f%.*}" "$root/bin"
done
mkdir -p "$root/share/man/man1"
for f in *.1; do
cp $f "$root/share/man/man1"
done
# these are still buggy
for f in grep cp tar ; do
rm "$root/bin/$f"
rm "$root/share/man/man1/$f.1"
done