aboutsummaryrefslogtreecommitdiff
path: root/works/teapot/script/build-deb.bash
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-02-12 15:55:21 +0800
committerYuqian Yang <crupest@crupest.life>2025-02-12 16:17:30 +0800
commita9f9e5daf8ffa74abe0042c586561e136478e423 (patch)
tree1e12ccc4063ef3ef09d89d98245fd94ca44e23ee /works/teapot/script/build-deb.bash
parent1e1ca99bde2d398ac5527cc74e6a3f8a2a70345f (diff)
parentcb0e3a0fb536284bdf366b0bdca2f8f0bfdcf6d1 (diff)
downloadcrupest-a9f9e5daf8ffa74abe0042c586561e136478e423.tar.gz
crupest-a9f9e5daf8ffa74abe0042c586561e136478e423.tar.bz2
crupest-a9f9e5daf8ffa74abe0042c586561e136478e423.zip
import(teapot): IMPORT crupest/teapot COMPLETE.
Diffstat (limited to 'works/teapot/script/build-deb.bash')
-rwxr-xr-xworks/teapot/script/build-deb.bash12
1 files changed, 12 insertions, 0 deletions
diff --git a/works/teapot/script/build-deb.bash b/works/teapot/script/build-deb.bash
new file mode 100755
index 0000000..954d026
--- /dev/null
+++ b/works/teapot/script/build-deb.bash
@@ -0,0 +1,12 @@
+set -e
+
+mkdir -p build
+pushd build
+cmake .. "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
+make
+mkdir -p package
+cmake --install . --prefix ./package/
+mkdir -p package/DEBIAN
+cp ../debian/control ./package/DEBIAN/control
+dpkg-deb --root-owner-group --build package
+popd