From a4679e83e150fd905ccbec39a20bafb59c932633 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 9 May 2019 11:30:43 +0300 Subject: [PATCH] puke: Added manifest generation. --- puke | 19 +++++++++++++++++-- repo/zlib/manifest | 15 +++++++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 repo/zlib/manifest diff --git a/puke b/puke index dd4863b9..7f342bd2 100755 --- a/puke +++ b/puke @@ -24,6 +24,7 @@ pkg_info() { [ -f sources ] || die "Sources file not found." while read -r line; do version=$line; done < version + name=$1 } pkg_depends() { @@ -70,13 +71,25 @@ pkg_extract() { } pkg_build() { - log "Building $1-$version" + log "Building $name-$version" cd "$build_dir" set -e . "$OLDPWD/build" set +e cd - + + log "Sucessfully built $name-$version" +} + +pkg_manifest() { + cd "$pkg_dir" + + _() { find . -mindepth 1 "$@" | sed 's/^\.//'; } + _ -not -type d > "$OLDPWD/manifest" + _ -type d | sort -r >> "$OLDPWD/manifest" + + cd - } args() { @@ -87,7 +100,8 @@ args() { pkg_depends pkg_sources pkg_extract - pkg_build "$2" + pkg_build + pkg_manifest ;; esac } @@ -101,6 +115,7 @@ main() { source_dir=$PWD/sources build_dir=$PWD/build pkg_dir=$PWD/pkg + sys_dir=$PWD/sys args "$@" } diff --git a/repo/zlib/manifest b/repo/zlib/manifest new file mode 100644 index 00000000..9801eb62 --- /dev/null +++ b/repo/zlib/manifest @@ -0,0 +1,15 @@ +/usr/share/man/man3/zlib.3 +/usr/include/zconf.h +/usr/include/zlib.h +/lib/libz.so.1.2.11 +/lib/libz.so.1 +/lib/libz.so +/lib/libz.a +/lib/pkgconfig/zlib.pc +/usr/share/man/man3 +/usr/share/man +/usr/share +/usr/include +/usr +/lib/pkgconfig +/lib