1
0
mirror of https://github.com/SuperBFG7/ympd synced 2025-11-14 20:27:15 +00:00

Feat: add debian packaging

This commit is contained in:
jcorporation
2018-09-07 00:10:40 +02:00
parent c293e87b3b
commit a9dcff3135
9 changed files with 93 additions and 9 deletions

25
debian/rules vendored Executable file
View File

@@ -0,0 +1,25 @@
#!/usr/bin/make -f
export DH_VERBOSE = 1
BUILDDIR = release
build:
mkdir $(BUILDDIR)
cd $(BUILDDIR); cmake -DCMAKE_INSTALL_PREFIX:PATH=../debian/tmp/usr -DCMAKE_BUILD_TYPE=RELEASE ..
make -C $(BUILDDIR)
binary: binary-indep binary-arch
binary-indep:
binary-arch:
cd $(BUILDDIR); cmake -P cmake_install.cmake
mkdir debian/tmp/DEBIAN
cp debian/postinst debian/tmp/DEBIAN
dpkg-gencontrol -pmympd
dpkg --build debian/tmp ..
clean:
rm -rf $(BUILDDIR)
.PHONY: binary binary-arch binary-indep clean