mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
The produced deb file now contains the proper installed-size field.
This commit is contained in:
parent
daa6f09529
commit
52b8913bb6
2 changed files with 10 additions and 2 deletions
11
Makefile
11
Makefile
|
@ -76,15 +76,22 @@ deb: debfile debsource
|
||||||
debfile: all
|
debfile: all
|
||||||
rm -rf $(DEBDIR)
|
rm -rf $(DEBDIR)
|
||||||
mkdir -p $(DEBDIR)
|
mkdir -p $(DEBDIR)
|
||||||
cp -r debsrc/. $(DEBDIR)
|
mkdir -p $(DEBDIR)/boot
|
||||||
mkdir -p $(DEBDIR)/boot
|
|
||||||
cp sortix/sortix.bin $(DEBDIR)/boot
|
cp sortix/sortix.bin $(DEBDIR)/boot
|
||||||
cp sortix/sortix.initrd $(DEBDIR)/boot
|
cp sortix/sortix.initrd $(DEBDIR)/boot
|
||||||
|
expr \( `stat --printf="%s" $(DEBDIR)/boot/sortix.bin` \
|
||||||
|
+ `stat --printf="%s" $(DEBDIR)/boot/sortix.initrd` \
|
||||||
|
+ 1023 \) / 1024 > $(DEBDIR)/boot/deb.size
|
||||||
|
cp -r debsrc/. $(DEBDIR)
|
||||||
|
mkdir -p $(DEBDIR)/boot
|
||||||
|
SIZE=`cat $(DEBDIR)/boot/deb.size`; \
|
||||||
cat debsrc/DEBIAN/control | \
|
cat debsrc/DEBIAN/control | \
|
||||||
sed "s/SORTIX_PACKAGE_NAME/$(PACKAGENAME)/g" | \
|
sed "s/SORTIX_PACKAGE_NAME/$(PACKAGENAME)/g" | \
|
||||||
sed "s/SORTIX_VERSION/$(VERSION)/g" | \
|
sed "s/SORTIX_VERSION/$(VERSION)/g" | \
|
||||||
sed "s/SORTIX_ARCH/all/g" | \
|
sed "s/SORTIX_ARCH/all/g" | \
|
||||||
|
sed "s/SORTIX_SIZE/$$SIZE/g" | \
|
||||||
cat > $(DEBDIR)/DEBIAN/control
|
cat > $(DEBDIR)/DEBIAN/control
|
||||||
|
rm $(DEBDIR)/boot/deb.size
|
||||||
dpkg --build $(DEBDIR) $(DEBFILE)
|
dpkg --build $(DEBDIR) $(DEBFILE)
|
||||||
rm -rf $(DEBDIR)/DEBIAN
|
rm -rf $(DEBDIR)/DEBIAN
|
||||||
(cd builds/$(DEBNAME) && tar cfzv ../$(DEBNAME).tar.gz `ls`)
|
(cd builds/$(DEBNAME) && tar cfzv ../$(DEBNAME).tar.gz `ls`)
|
||||||
|
|
|
@ -3,6 +3,7 @@ Version: SORTIX_VERSION
|
||||||
Section: kernel
|
Section: kernel
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Architecture: SORTIX_ARCH
|
Architecture: SORTIX_ARCH
|
||||||
|
Installed-Size: SORTIX_SIZE
|
||||||
Essential: no
|
Essential: no
|
||||||
Recommends: grub2, xorriso
|
Recommends: grub2, xorriso
|
||||||
Provides: sortix
|
Provides: sortix
|
||||||
|
|
Loading…
Add table
Reference in a new issue