Skip to content

Commit

Permalink
Fix deb
Browse files Browse the repository at this point in the history
  • Loading branch information
yuezk committed Feb 25, 2024
1 parent d1ec358 commit 3d3d703
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -118,28 +118,22 @@ init-debian: clean-debian tarball
cp .build/tarball/${PKG}.tar.gz .build/deb

tar -xzf .build/deb/${PKG}.tar.gz -C .build/deb
cd .build/deb/${PKG}

debmake
cd .build/deb/${PKG} && debmake

cp -f packaging/deb/control.in debian/control
cp -f packaging/deb/rules debian/rules
cp -f packaging/deb/control.in .build/deb/$(PKG)/debian/control
cp -f packaging/deb/rules .build/deb/$(PKG)/debian/rules

sed -i "s/@OFFLINE@/$(OFFLINE)/g" debian/rules
sed -i "s/@OFFLINE@/$(OFFLINE)/g" .build/deb/$(PKG)/debian/rules

rm -f debian/changelog
rm -f .build/deb/$(PKG)/debian/changelog

deb: init-debian
cd .build/deb/${PKG}

# Remove the rust build depdency from the control file
sed -i "s/@RUST@//g" debian/control

dch --create --distribution unstable --package $(PKG_NAME) --newversion $(VERSION)-$(REVISION) "Bugfix and improvements."
sed -i "s/@RUST@//g" .build/deb/$(PKG)/debian/control

printenv
cd .build/deb/$(PKG) && dch --create --distribution unstable --package $(PKG_NAME) --newversion $(VERSION)-$(REVISION) "Bugfix and improvements."

debuild -e PATH -us -uc -b
cd .build/deb/$(PKG) && debuild --preserve-env -e PATH -us -uc -b

check-ppa:
if [ $(OFFLINE) -eq 0 ]; then \
Expand Down

0 comments on commit 3d3d703

Please sign in to comment.