Skip to content

Commit

Permalink
Add debian packaging starting with version 0.8
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard committed Mar 7, 2019
1 parent 57193c4 commit 44db38f
Show file tree
Hide file tree
Showing 12 changed files with 103 additions and 0 deletions.
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
snek (0.8-1) unstable; urgency=medium

* Version 0.8

-- Keith Packard <keithp@keithp.com> Mon, 04 Mar 2019 22:51:51 -0800
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11
29 changes: 29 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Source: snek
Section: interpreters
Priority: optional
Maintainer: Keith Packard <keithp@keithp.com>
Homepage: https://keithp.com
Build-Depends: debhelper (>= 11), libreadline-dev, avr-libc, gcc-avr, python3, lola, gawk, asciidoctor, ruby-asciidoctor-pdf
Standards-Version: 4.2.1

Package: snek
Architecture: all
Suggests: snek-bin
Depends: ${misc:Depends}, python3, python3-serial, usbutils
Description: Embedded system programming language
Snek is a small python-like language designed for embedded
computers. It can run on systems as small as an Arduino Duemilanova
board, which is an ATmega 328 processor with 32kB of flash and 2kB of
ram. This package includes a binary for that target, the
snek-duino-install tool for installing Snek on Arduino boards, the
snekde integrated development environment

Package: snek-bin
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Host binary version of Snek programming language
Snek is a small python-like language designed for embedded
computers. It can run on systems as small as an Arduino Duemilanova
board, which is an ATmega 328 processor with 32kB of flash and 2kB of
ram. This package provides a host snek binary for playing with the
language on your host machine.
25 changes: 25 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: snek
Source: https://keithp.com/

Files: *
Copyright: 2018-2019 Keith Packard
License: GPL-2+

License:
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 2
of the License, or (at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
.
On Debian systems, the complete text of the GNU General Public License
version 2 can be found in `/usr/share/common-licenses/GPL-2'.
8 changes: 8 additions & 0 deletions debian/docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
NEWS
README
README.name
TODO
examples
test
bench
doc/tutorial/nickle-tutorial.pdf
7 changes: 7 additions & 0 deletions debian/gbp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[DEFAULT]
debian-branch = debian
upstream-branch = master
pristine-tar = False

[buildpackage]
upstream-tree = BRANCH
12 changes: 12 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export SNEK_OTHEROS=0
export PREFIX=/usr

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
dh $@
3 changes: 3 additions & 0 deletions debian/snek-bin.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
usr/bin/snek
usr/share/man/man1/snek.1
usr/share/applications/snek.desktop
Empty file added debian/snek.docs
Empty file.
10 changes: 10 additions & 0 deletions debian/snek.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
usr/bin/snek-duino-install
usr/bin/snekde
usr/lib/pkgconfig/*
usr/share/applications/snekde.desktop
usr/share/doc
usr/share/icons
usr/share/man/man1/snek-duino-install.1
usr/share/man/man1/snekde.1
usr/share/snek

2 changes: 2 additions & 0 deletions debian/snek.lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
snek: pkg-config-unavailable-for-cross-compilation usr/lib/pkgconfig/snek.pc
snek: executable-not-elf-or-script usr/share/snek/snek-duino.hex
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)

0 comments on commit 44db38f

Please sign in to comment.