Skip to content

Commit

Permalink
Update debian packaging for v3
Browse files Browse the repository at this point in the history
  • Loading branch information
aaruni96 committed Nov 17, 2024
1 parent 2da35a0 commit b823730
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 13 deletions.
17 changes: 5 additions & 12 deletions pkg/debian/build-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,29 +36,22 @@ cd "maps_${VERSION}" && mkdir -pv "debian/source"

echo "3.0 (quilt)" > "debian/source/format"

cp -v pkg/debian/changelog debian/changelog
cp -v "pkg/debian/changelog" "debian/changelog"

# add control

cp -v pkg/debian/control debian/control
cp -v "pkg/debian/control" "debian/control"

# add copyright

cp -v pkg/debian/copyright debian/copyright
cp -v "pkg/debian/copyright" "debian/copyright"

# debian.dirs

echo "usr/bin" > "debian/maps.dirs"
echo "usr/share/bash-completion/completions" >> "debian/maps.dirs"
cp -v "pkg/debian/maps.dirs" "debian/maps.dirs"

# debian rules

echo '#!/usr/bin/make -f
%:
dh $@
override_dh_auto_install:
$(MAKE) DESTDIR=$$(pwd)/debian/maps prefix=/usr install' > "debian/rules"
cp -v "debian/rules" "debian/rules"

# try building, see what happens

Expand Down
8 changes: 7 additions & 1 deletion pkg/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
maps (0.2-1) UNRELEASED; urgency=medium
maps (0.3-1) UNRELEASED; urgency=medium

* Update to v0.3

-- Aaruni Kaushik <[email protected]> Sun, 17 Nov 2024 13:12:32 +0200

maps (0.2-1) UNRELEASED; urgency=medium

* Update to v0.2

Expand Down
2 changes: 2 additions & 0 deletions pkg/debian/maps.dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
usr/bin
usr/share/bash-completion/completions
6 changes: 6 additions & 0 deletions pkg/debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/make -f
%:
dh $@

override_dh_auto_install:
$(MAKE) DESTDIR=$$(pwd)/debian/maps prefix=/usr install

0 comments on commit b823730

Please sign in to comment.