From 6280337df187b817159070ace4ddc6561a48a2f6 Mon Sep 17 00:00:00 2001 From: Marc Brinkmann Date: Fri, 19 Dec 2014 17:51:10 +0100 Subject: [PATCH] First usable debian/ folder. --- debian/control | 6 +++--- debian/rules | 21 ++++++++++++++++++++- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/debian/control b/debian/control index 5a6d1e56f..440964435 100644 --- a/debian/control +++ b/debian/control @@ -2,11 +2,11 @@ Source: cockatrice Maintainer: Marc Brinkmann Section: games Priority: optional -Standards-Version: 3.9.2 +Standards-Version: 3.9.4 Build-Depends: debhelper (>= 9), cmake, libqt4-dev, libprotobuf-dev, build-essential, git, qtmobility-dev, protobuf-compiler, libgcrypt-dev -Package: cockatrice-client +Package: cockatrice Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Play CCGs online. - Allows you to connect to a cockatrice server to play collectible card games online. + Allows you to connect to a cockatrice server to play collectible card games online. Includes client and server. diff --git a/debian/rules b/debian/rules index fdaca955d..5f988083c 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,24 @@ #!/usr/bin/make -f + +BUILDDIR = build_dir_debian + %: dh $@ --parallel + override_dh_auto_configure: - cmake . -DCMAKE_BUILD_TYPE=Release -DWITH_QT4=1 -DWITH_CLIENT=1 -DWITH_SERVER=1 -DWITH_ORACLE=1 + mkdir $(BUILDDIR) + cd $(BUILDDIR) && cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_QT4=1 -DWITH_CLIENT=1 -DWITH_SERVER=1 -DWITH_ORACLE=1 -DCMAKE_INSTALL_PREFIX:PATH=/usr + +override_dh_auto_install: + # fuck debian packaging. seriously. this shit is from the 90s + ln -s ../debian $(BUILDDIR)/debian + cd $(BUILDDIR) && dh_auto_install + +override_dh_auto_build: + make -j -C $(BUILDDIR) + +override_dh_usrlocal: + +override_dh_auto_clean: + dh_clean + rm -rf $(BUILDDIR)