build-package: fix conffiles for subpackages
conffiles was being created after control.tar.gz, which makes it being omitted
This commit is contained in:
parent
e8ddc40037
commit
125c192664
@ -59,6 +59,7 @@ termux_create_subpackages() {
|
||||
|
||||
mkdir -p DEBIAN
|
||||
cd DEBIAN
|
||||
|
||||
cat > control <<-HERE
|
||||
Package: $SUB_PKG_NAME
|
||||
Architecture: ${SUB_PKG_ARCH}
|
||||
@ -72,10 +73,11 @@ termux_create_subpackages() {
|
||||
test ! -z "$TERMUX_SUBPKG_CONFLICTS" && echo "Conflicts: $TERMUX_SUBPKG_CONFLICTS" >> control
|
||||
test ! -z "$TERMUX_SUBPKG_REPLACES" && echo "Replaces: $TERMUX_SUBPKG_REPLACES" >> control
|
||||
echo "Description: $TERMUX_SUBPKG_DESCRIPTION" >> control
|
||||
tar -czf "$SUB_PKG_PACKAGE_DIR/control.tar.gz" .
|
||||
|
||||
for f in $TERMUX_SUBPKG_CONFFILES; do echo "$TERMUX_PREFIX/$f" >> conffiles; done
|
||||
|
||||
tar -czf "$SUB_PKG_PACKAGE_DIR/control.tar.gz" .
|
||||
|
||||
# Create the actual .deb file:
|
||||
TERMUX_SUBPKG_DEBFILE=$TERMUX_DEBDIR/${SUB_PKG_NAME}${DEBUG}_${TERMUX_PKG_FULLVERSION}_${SUB_PKG_ARCH}.deb
|
||||
test ! -f "$TERMUX_COMMON_CACHEDIR/debian-binary" && echo "2.0" > "$TERMUX_COMMON_CACHEDIR/debian-binary"
|
||||
|
Loading…
Reference in New Issue
Block a user