Skip to content

Commit ff65455

Browse files
Add debian files required for ppa
Signed-off-by: Prateek Kumar <prateek@prateekkumar.in>
1 parent d9bc01d commit ff65455

File tree

9 files changed

+106
-10
lines changed

9 files changed

+106
-10
lines changed

CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set(CMAKE_CXX_STANDARD 11)
33
project(Timetabler)
44

55
set(Timetabler_VERSION_MAJOR 0)
6-
set(Timetabler_VERSION_MINOR 1)
6+
set(Timetabler_VERSION_MINOR 2)
77
set(Timetabler_VERSION_PATCH 0)
88
set(CMAKE_BUILD_TYPE Release)
99

@@ -45,10 +45,13 @@ set(CPACK_PACKAGE_VERSION_MINOR ${Timetabler_VERSION_MINOR})
4545
set(CPACK_PACKAGE_VERSION_PATCH ${Timetabler_VERSION_PATCH})
4646

4747
SET(CPACK_GENERATOR "DEB")
48+
SET(CPACK_SOURCE_GENERATOR "TGZ")
4849
SET(CPACK_DEBIAN_PACKAGE_DESCRIPTION "Encode timetabling constraints as a SAT formula and solve using a MaxSAT solver to generate a Timetable for IITH")
49-
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Sukrut Rao, Prateek Kumar")
50+
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Prateek Kumar <prateek@prateekkumar.in>")
5051
SET(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
5152
SET(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/GoodDeeds/Timetabler")
52-
53+
set(CPACK_RESOURCE_FILE_LICENSE ${Timetabler_SOURCE_DIR}/LICENSE)
54+
set(CPACK_RESOURCE_FILE_README ${Timetabler_SOURCE_DIR}/README.md)
55+
set(CPACK_DEBIAN_RESOURCE_FILE_CHANGELOG ${Timetabler_SOURCE_DIR}/debian/changelog)
5356

5457
INCLUDE(CPack)

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ If the above command fails, you can try installing the individual dependencies m
4141

4242
#### Long method
4343

44-
This section explains the setup of Open WBO 2.0 and CSVparser. Installation instructions of other dependencies can be found with the code.
44+
This describes the process of setting up each dependency.
4545

4646
##### Open WBO 2.0
4747

4848
This needs to be built as a library. The following steps need to be followed:
49-
* Clone the repository. `$OPENWBO_ROOT` will be used to denote the path where the repository is cloned.
49+
* Clone the repository. `$OPEN_WBO_PATH` will be used to denote the path where the repository is cloned.
5050
```bash
51-
$ git clone https://github.com/sat-group/open-wbo.git $OPENWBO_ROOT
52-
$ cd $OPENWBO_ROOT
51+
$ git clone https://github.com/GoodDeeds/open-wbo.git $OPEN_WBO_PATH
52+
$ cd $OPEN_WBO_PATH
5353
```
5454
* Build as a static library
5555
```bash
@@ -58,11 +58,11 @@ $ LIB=open-wbo make libr
5858

5959
##### CSVparser
6060

61-
This does not require any setup other than cloning the repository. The path where this is cloned will be referred to as `$CSVPARSER_ROOT`.
61+
This does not require any setup other than cloning the repository. The path where this is cloned will be referred to as `$CSVPARSER_PATH`.
6262

6363
##### yaml-cpp
6464

65-
* Download [yaml-cpp-0.5.3](https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-0.5.3.tar.gz) and unpack it. `$YAML_CPP_PATHT` will be used to denote the path where it is unpacked.
65+
* Download [yaml-cpp-0.5.3](https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-0.5.3.tar.gz) and unpack it. `$YAML_CPP_PATH` will be used to denote the path where it is unpacked.
6666
* Build the project
6767
```bash
6868
$ cd $YAML_CPP_PATH
@@ -83,6 +83,7 @@ $ make
8383
```
8484

8585
### Building the project
86+
8687
* Clone the repository
8788
```
8889
$ git clone https://github.com/GoodDeeds/Timetabler
@@ -91,7 +92,7 @@ $ cd Timetabler
9192
* Build the project. Set the cmake variables `OPEN_WBO_PATH`, `YAML_CPP_PATH`, `CSVPARSER_PATH` and `PEGTL_PATH` appropriately.
9293
```bash
9394
$ mkdir build && cd build
94-
$ cmake -DOPEN_WBO_PATH="" -DYAML_CPP_PATH="" -DCSVPARSER_PATH="" -DCMAKE_PEGTL_PATH="" ..
95+
$ cmake -DOPEN_WBO_PATH="" -DYAML_CPP_PATH="" -DCSVPARSER_PATH="" -DPEGTL_PATH="" ..
9596
$ make
9697
```
9798
* Install

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
timetabler (0.2.0-1) xenial; urgency=medium
2+
3+
* Initial release
4+
5+
-- Prateek Kumar <prateek@prateekkumar.in> Mon, 13 Aug 2018 21:13:07 +0530

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
10

debian/control

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Source: timetabler
2+
Section: devel
3+
Priority: optional
4+
Maintainer: Prateek Kumar <prateek@prateekkumar.in>
5+
Build-Depends: debhelper (>= 10)
6+
Standards-Version: 4.1.2
7+
Homepage: https://github.com/GoodDeeds/Timetabler
8+
Vcs-Git: https://github.com/GoodDeeds/Timetabler.git
9+
Vcs-Browser: https://github.com/GoodDeeds/Timetabler
10+
11+
Package: timetabler
12+
Architecture: amd64
13+
Depends: ${shlibs:Depends}, ${misc:Depends}
14+
Description: Encode timetabling constraints as a SAT formula and solve using a MaxSAT solver to generate a Timetable for IITH

debian/copyright

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: timetabler
3+
Source: https://github.com/GoodDeeds/Timetabler
4+
5+
Files: *
6+
Copyright: 2017-2018 Prateek Kumar <prateek@prateekkumar.in>
7+
2017-2018 Sukrut Rao <cs15btech11036@iith.ac.in>
8+
License: MIT
9+
Permission is hereby granted, free of charge, to any person obtaining a copy
10+
of this software and associated documentation files (the "Software"), to deal
11+
in the Software without restriction, including without limitation the rights
12+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13+
copies of the Software, and to permit persons to whom the Software is
14+
furnished to do so, subject to the following conditions:
15+
.
16+
The above copyright notice and this permission notice shall be included in all
17+
copies or substantial portions of the Software.
18+
.
19+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25+
SOFTWARE.
26+
27+
Files: debian/*
28+
Copyright: 2018 Prateek Kumar <prateek@prateekkumar.in>
29+
License: GPL-2+
30+
This package is free software; you can redistribute it and/or modify
31+
it under the terms of the GNU General Public License as published by
32+
the Free Software Foundation; either version 2 of the License, or
33+
(at your option) any later version.
34+
.
35+
This package is distributed in the hope that it will be useful,
36+
but WITHOUT ANY WARRANTY; without even the implied warranty of
37+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38+
GNU General Public License for more details.
39+
.
40+
You should have received a copy of the GNU General Public License
41+
along with this program. If not, see <https://www.gnu.org/licenses/>
42+
.
43+
On Debian systems, the complete text of the GNU General
44+
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".

debian/files

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
timetabler_0.2.0-1_source.buildinfo devel optional

debian/rules

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/usr/bin/make -f
2+
# See debhelper(7) (uncomment to enable)
3+
# output every command that modifies files on the build system.
4+
export DH_VERBOSE = 1
5+
6+
7+
# see FEATURE AREAS in dpkg-buildflags(1)
8+
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
9+
10+
# see ENVIRONMENT in dpkg-buildflags(1)
11+
# package maintainers to append CFLAGS
12+
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
13+
# package maintainers to append LDFLAGS
14+
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
15+
16+
17+
%:
18+
./install_dependencies.sh
19+
dh $@ --buildsystem=cmake
20+
21+
22+
# dh_make generated override targets
23+
# This is example for Cmake (See https://bugs.debian.org/641051 )
24+
#override_dh_auto_configure:
25+
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
26+

debian/source/format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (quilt)

0 commit comments

Comments
 (0)