mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-21 23:00:06 -07:00
puke: Added manifest generation.
This commit is contained in:
parent
9793bdeb7a
commit
a4679e83e1
19
puke
19
puke
@ -24,6 +24,7 @@ pkg_info() {
|
|||||||
[ -f sources ] || die "Sources file not found."
|
[ -f sources ] || die "Sources file not found."
|
||||||
|
|
||||||
while read -r line; do version=$line; done < version
|
while read -r line; do version=$line; done < version
|
||||||
|
name=$1
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_depends() {
|
pkg_depends() {
|
||||||
@ -70,13 +71,25 @@ pkg_extract() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pkg_build() {
|
pkg_build() {
|
||||||
log "Building $1-$version"
|
log "Building $name-$version"
|
||||||
|
|
||||||
cd "$build_dir"
|
cd "$build_dir"
|
||||||
set -e
|
set -e
|
||||||
. "$OLDPWD/build"
|
. "$OLDPWD/build"
|
||||||
set +e
|
set +e
|
||||||
cd -
|
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() {
|
args() {
|
||||||
@ -87,7 +100,8 @@ args() {
|
|||||||
pkg_depends
|
pkg_depends
|
||||||
pkg_sources
|
pkg_sources
|
||||||
pkg_extract
|
pkg_extract
|
||||||
pkg_build "$2"
|
pkg_build
|
||||||
|
pkg_manifest
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
@ -101,6 +115,7 @@ main() {
|
|||||||
source_dir=$PWD/sources
|
source_dir=$PWD/sources
|
||||||
build_dir=$PWD/build
|
build_dir=$PWD/build
|
||||||
pkg_dir=$PWD/pkg
|
pkg_dir=$PWD/pkg
|
||||||
|
sys_dir=$PWD/sys
|
||||||
|
|
||||||
args "$@"
|
args "$@"
|
||||||
}
|
}
|
||||||
|
15
repo/zlib/manifest
Normal file
15
repo/zlib/manifest
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user