4 # Copyright © 2013 František Kučera (frantovo.cz)
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20 # TODO: build .deb package properly; without equivs
22 mkdir -p TMP/usr/bin/ &&
23 mkdir -p TMP/usr/share/sql-dk/ &&
24 mkdir -p TMP/etc/bash_completion.d/ &&
28 cp ../../../scripts/sql-dk.sh sql-dk &&
29 cp ../../../xml/config.xsd config.xsd &&
30 cp ../../../xml/config.rnc config.rnc &&
31 cp ../../../java/sql-dk/dist/sql-dk.jar sql-dk.jar &&
32 cp ../../../java/sql-dk/dist/bash-completion.sh SQL-DK && # TODO: should be sql-dk – name conflict with sql-dk in /usr/bin/ (equivs bug)
37 EMAIL=`echo c3FsLWRrLmRlYmlhbkBwdWIuZnJhbnRvdm8uY3oK | base64 -d` &&
38 NAME="Ing. František Kučera <$EMAIL>" &&
39 CONTROL_FILE="equivs-control" &&
40 COPYRIGHT_FILE="copyright" &&
41 URL="https://sql-dk.globalcode.info/" &&
44 echo "Section: database
47 Standards-Version: 3.9.2
52 Depends: java7-runtime-headless | java7-runtime
53 Suggests: libpostgresql-jdbc-java,libmysql-java
54 Copyright: $COPYRIGHT_FILE
55 Extra-Files: config.xsd, config.rnc
56 Files: sql-dk /usr/bin/
57 sql-dk.jar /usr/share/sql-dk/
58 SQL-DK /etc/bash_completion.d/
59 Description: SQL batch client
60 SQL-DK is and command-line client for relational databases." > $CONTROL_FILE &&
62 echo "Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
64 Source: https://hg.frantovo.cz/sql-dk/
67 Copyright: Copyright 2014 $NAME
69 This program is free software: you can redistribute it and/or modify
70 it under the terms of the GNU General Public License as published by
71 the Free Software Foundation, either version 3 of the License, or
72 (at your option) any later version.
74 This program is distributed in the hope that it will be useful,
75 but WITHOUT ANY WARRANTY; without even the implied warranty of
76 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
77 GNU General Public License for more details.
79 You should have received a copy of the GNU General Public License
80 along with this program. If not, see <http://www.gnu.org/licenses/>.
82 On Debian systems, the full text of the GNU General Public
83 License version 3 can be found in the file
84 \`/usr/share/common-licenses/GPL-3'." > $COPYRIGHT_FILE &&
86 equivs-build $CONTROL_FILE &&
88 lintian sql-dk_*.deb &&
92 mv TMP/sql-dk_*.deb . &&