Skip to content

Commit e51b6b8

Browse files
committed
Add Debian packaging.
1 parent c5148a9 commit e51b6b8

18 files changed

Lines changed: 197 additions & 6 deletions

File tree

pure-lilv/Makefile

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
pkgname = pure-lilv
3-
version = 0.3
3+
version = 0.4
44

55
# platform-specific setup
66

@@ -44,7 +44,7 @@ uninstall:
4444
# Roll a distribution tarball.
4545

4646
DISTFILES = COPYING Makefile $(puresource) $(csource) \
47-
lv2_evbuf.c lv2_evbuf.h symap.c symap.h \
47+
lv2_evbuf.c lv2_evbuf.h symap.c symap.h debian/* \
4848
examples/Makefile examples/*.pure examples/*mid
4949
SEDFILES = README
5050

@@ -55,7 +55,7 @@ datesubst = sed -e "s?@version@?$(version)?g" -e "s?|today|?$(date)?g" < $(1) >
5555

5656
dist: $(DISTFILES)
5757
rm -rf $(dist)
58-
mkdir $(dist) && mkdir $(dist)/examples
58+
mkdir $(dist) && mkdir $(dist)/debian && mkdir $(dist)/examples
5959
for x in $(DISTFILES); do ln -sf $$PWD/$$x $(dist)/$$x; done
6060
for x in $(SEDFILES); do rm -f $(dist)/$$x; $(call datesubst,$$PWD/$$x,$(dist)/$$x); done
6161
rm -f $(dist).tar.gz
@@ -66,3 +66,13 @@ distcheck: dist
6666
tar xfz $(dist).tar.gz
6767
cd $(dist) && make && make install DESTDIR=./BUILD
6868
rm -rf $(dist)
69+
70+
debsrc = $(shell echo $(dist) | sed -e 's/-$(version)/_$(version)/').orig.tar.gz
71+
72+
deb: $(debsrc) dist
73+
tar xfz $(dist).tar.gz
74+
cd $(dist) && debuild $(DEBUILD_FLAGS)
75+
rm -rf $(dist)
76+
77+
$(debsrc):
78+
wget -nv https://bitbucket.org/purelang/pure-lang/downloads/$(dist).tar.gz -O $@

pure-lilv/debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pure-lilv (0.4-1) trusty; urgency=low
2+
3+
* Initial release
4+
5+
-- Albert Graef <aggraef@gmail.com> Sun, 14 Sep 2014 20:11:27 +0200

pure-lilv/debian/compat

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

pure-lilv/debian/control

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Source: pure-lilv
2+
Section: devel
3+
Priority: extra
4+
Maintainer: Albert Graef <aggraef@gmail.com>
5+
Build-Depends: debhelper (>= 7.0.50~), pure-dev, liblilv-dev
6+
Standards-Version: 3.9.1
7+
Homepage: http://purelang.bitbucket.org
8+
9+
Package: pure-lilv
10+
Architecture: any
11+
Depends: ${shlibs:Depends}, ${misc:Depends}
12+
Description: LV2 plugin host interface for the Pure programming language
13+
Pure is a modern-style functional programming language based on term
14+
rewriting. LV2 is the new Linux audio plugin standard which aims to be
15+
portable and extensible. This module provides an interface to David
16+
Robillard's Lilv library which lets you write LV2 plugin hosts in Pure.

pure-lilv/debian/copyright

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Format: http://dep.debian.net/deps/dep5
2+
Upstream-Name: pure-lilv
3+
Source: http://purelang.bitbucket.org
4+
5+
Files: *
6+
Copyright: 2014 Albert Graef <aggraef@gmail.com>
7+
License: BSD
8+
9+
# If you want to use GPL v2 or later for the /debian/* files use
10+
# the following clauses, or change it to suit. Delete these two lines
11+
Files: debian/*
12+
Copyright: 2014 Albert Graef <aggraef@gmail.com>
13+
License: GPL-2+
14+
This package is free software; you can redistribute it and/or modify
15+
it under the terms of the GNU General Public License as published by
16+
the Free Software Foundation; either version 2 of the License, or
17+
(at your option) any later version.
18+
.
19+
This package is distributed in the hope that it will be useful,
20+
but WITHOUT ANY WARRANTY; without even the implied warranty of
21+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22+
GNU General Public License for more details.
23+
.
24+
You should have received a copy of the GNU General Public License
25+
along with this program. If not, see <http://www.gnu.org/licenses/>
26+
.
27+
On Debian systems, the complete text of the GNU General
28+
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".

pure-lilv/debian/docs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
README
2+
examples

pure-lilv/debian/rules

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/make -f
2+
# -*- makefile -*-
3+
# Sample debian/rules that uses debhelper.
4+
# This file was originally written by Joey Hess and Craig Small.
5+
# As a special exception, when this file is copied by dh-make into a
6+
# dh-make output file, you may use that output file without restriction.
7+
# This special exception was added by Craig Small in version 0.37 of dh-make.
8+
9+
# Uncomment this to turn on verbose mode.
10+
#export DH_VERBOSE=1
11+
12+
%:
13+
dh $@
14+
15+
override_dh_auto_build:
16+
dh_auto_build -- prefix=/usr
17+
18+
override_dh_auto_install:
19+
dh_auto_install -- prefix=/usr
20+
21+
override_dh_compress:
22+
dh_compress -X.pure -X.mid

pure-lilv/debian/source/format

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

pure-lilv/debian/watch

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Example watch control file for uscan
2+
# Rename this file to "watch" and then you can run the "uscan" command
3+
# to check for upstream updates and more.
4+
# See uscan(1) for format
5+
6+
# Compulsory line, this is a version 3 file
7+
version=3
8+
9+
https://bitbucket.org/purelang/pure-lang/downloads/pure-lilv-(.*)\.tar\.gz

pure-lv2/Makefile

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
dist = pure-lv2-$(version)
3-
version = 0.1
3+
version = 0.2
44

55
# compiler flags (these can be overridden)
66
CFLAGS = -O3
@@ -42,11 +42,11 @@ uninstall:
4242
rm -f $(addprefix "$(DESTDIR)$(purelibdir)/", lv2$(DLL) lv2.pure lv2pure.c lv2pure.h) "$(DESTDIR)$(bindir)/pure2lv2"
4343

4444
DISTFILES = COPYING Makefile README lv2.c lv2.pure lv2pure.c lv2pure.h \
45-
pure2lv2 *.ttl examples/Makefile examples/*.pure
45+
pure2lv2 *.ttl debian/* examples/Makefile examples/*.pure
4646

4747
dist:
4848
rm -rf $(dist)
49-
for x in $(dist) $(dist)/examples; do mkdir $$x; done
49+
for x in $(dist) $(dist)/debian $(dist)/examples; do mkdir $$x; done
5050
for x in $(DISTFILES); do ln -sf "$$PWD"/$$x $(dist)/$$x; done
5151
rm -f $(dist).tar.gz
5252
tar -czhf $(dist).tar.gz $(dist)
@@ -56,3 +56,13 @@ distcheck: dist
5656
tar -xzf $(dist).tar.gz
5757
cd $(dist) && make && make install DESTDIR=./BUILD
5858
rm -rf $(dist)
59+
60+
debsrc = $(shell echo $(dist) | sed -e 's/-$(version)/_$(version)/').orig.tar.gz
61+
62+
deb: $(debsrc) dist
63+
tar xfz $(dist).tar.gz
64+
cd $(dist) && debuild $(DEBUILD_FLAGS)
65+
rm -rf $(dist)
66+
67+
$(debsrc):
68+
wget -nv https://bitbucket.org/purelang/pure-lang/downloads/$(dist).tar.gz -O $@

0 commit comments

Comments
 (0)