This commit is contained in:
Gwenhael Le Moine 2024-12-27 21:04:33 +01:00
parent fc942effd7
commit db7588ca23
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -36,21 +36,10 @@ cd "$TMP/$PRGNAM" || exit 1
[ "$VERSION" == "trunk" ] && VERSION="git_r$(git rev-list --count HEAD)_$(git log -1 --format=%h)" || git checkout "$VERSION" [ "$VERSION" == "trunk" ] && VERSION="git_r$(git rev-list --count HEAD)_$(git log -1 --format=%h)" || git checkout "$VERSION"
DESTDIR=$PKG \ DESTDIR=$PKG \
zig build \ zig build \
--prefix /usr \ --prefix /usr \
-Doptimize=ReleaseFast \ -Doptimize=ReleaseFast \
-Dcpu=baseline -Dcpu=baseline
# # installation
# mkdir -p "$PKG$PREFIX"/bin/
# cp duf "$PKG$PREFIX"/bin/
# mkdir -p "$PKG$PREFIX"/man/man1/
# cp duf.1 "$PKG$PREFIX"/man/man1/
# gzip -9 "$PKG$PREFIX"/man/man1/duf.1
# mkdir -p "$PKG$PREFIX/doc/$PRGNAM"
# cp -a LICENSE README.md duf.png "$PKG$PREFIX/doc/$PRGNAM"
# correction # correction
cd "$PKG" || exit 1 cd "$PKG" || exit 1