mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-31 15:10:08 -07:00
general: Added pkgfile2puke
This commit is contained in:
parent
c1a19c0996
commit
2f747a8c6f
11
pkgfile2puke
11
pkgfile2puke
@ -36,8 +36,16 @@ pkgfile_source() {
|
||||
done > sources
|
||||
}
|
||||
|
||||
pkgfile_depends() {
|
||||
[ "$depends" ] || return
|
||||
|
||||
printf '%s\n' "$depends" | while IFS=' ' read -r dep; do
|
||||
printf '%s\n' "$dep"
|
||||
done > depends
|
||||
}
|
||||
|
||||
pkgfile_build() {
|
||||
sed 's/$BUILD/$pkg_dir/g' "$1" | while read -r line; do
|
||||
sed 's/$\(BUILD\|PKG\)/$pkg_dir/g' "$1" | while read -r line; do
|
||||
[ "$line" = "}" ] && code=
|
||||
[ "$code" ] && printf '%s\n' "$line"
|
||||
|
||||
@ -55,6 +63,7 @@ main() {
|
||||
|
||||
pkgfile_version
|
||||
pkgfile_source
|
||||
pkgfile_depends
|
||||
pkgfile_build "$1"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user