Skip to content
Snippets Groups Projects
Commit d3eb3083 authored by Simon McVittie's avatar Simon McVittie
Browse files

Fold preparation stage into deb-buildapi and make it work better

parent 82966be1
No related branches found
No related tags found
No related merge requests found
all:
if ! [ -d /var/lib/dpkg ]; then \
cp -a /usr/var /; \
fi
set -e; \
if test -d src; then \
cd src && \
dpkg-buildpackage -b -nc \
dpkg-buildpackage -b -nc -d \
--build-profiles=pkg.flatpak.app,nocheck,nodoc; \
fi; \
done
......@@ -10,8 +13,7 @@ all:
# This assumes we don't need to run maintainer scripts.
install:
set -e; \
PATH=/usr/sbin:$$PATH \
fakeroot \
dpkg --root=/app --unpack --force-script-chrootless --no-triggers \
*.deb \
$(NULL)
for deb in *.deb; do \
dpkg-deb --fsys-tarfile "$$deb" | \
tar -xf- -C /app --transform='s,([.]/)?(app|usr)/,,x'; \
done
......@@ -7,10 +7,6 @@ sdk: net.debian.flatpak.Base.Sdk
command: hello
writable-sdk: true
modules:
- name: prepare
sources:
- type: file
path: prepare/configure
- name: hello
x-flatdeb-apt-packages:
- hello
......@@ -20,9 +16,4 @@ modules:
dest: '.'
- type: file
path: deb-buildapi/Makefile
- name: unprepare
sources:
- type: file
path: prepare/unconfigure
dest-filename: configure
...
#!/bin/sh
set -eu
ln -s . /app/app
ln -s . /app/usr
ln -s /var /app/var
cp -a /usr/var /
install -d /var/cache/apt/archives/partial
# We don't use the Makefile
cat > Makefile <<END
all:
:
install:
:
END
#!/bin/sh
set -eu
rm /app/app
rm /app/usr
rm /app/var
# We don't use the Makefile
cat > Makefile <<END
all:
:
install:
:
END
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment