Skip to content

Commit c017462

Browse files
committed
Moved the debian control file to a template. Changed the processing.desktop file to be a template
1 parent eccfd58 commit c017462

3 files changed

Lines changed: 27 additions & 16 deletions

File tree

build/build.xml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,13 @@
759759
<symlink link="linux/debian/usr/bin/processing" resource="../../opt/processing/processing" />
760760

761761
<!-- place .desktop and .sharedmimeinfo file -->
762-
<copy file="linux/processing.desktop" tofile="linux/debian/usr/share/applications/processing.desktop" />
762+
<copy file="linux/processing.desktop" tofile="linux/debian/usr/share/applications/processing.desktop" >
763+
<filterchain>
764+
<replacetokens >
765+
<token key="version" value="${version}" />
766+
</replacetokens>
767+
</filterchain >
768+
</copy >
763769
<copy file="linux/processing.sharedmimeinfo" tofile="linux/debian/usr/share/mime/packages/processing.xml" />
764770

765771
<!-- Set properties for DEBIAN/control file -->
@@ -772,9 +778,6 @@
772778
<equals arg1="${sun.arch.data.model}" arg2="64" />
773779
</condition>
774780

775-
<!--
776-
<exec command="du -ks linux/debian | cut -f 1" outputproperty="deb.size" />
777-
-->
778781
<length property="deb.bsize" >
779782
<fileset dir="linux/debian" />
780783
</length>
@@ -787,18 +790,17 @@
787790
]]>
788791
</script>
789792

793+
<!-- place DEBIAN/control file. -->
790794
<mkdir dir="linux/debian/DEBIAN" />
791-
<!-- Create DEBIAN/control file. The spacing matters.-->
792-
<echo file="linux/debian/DEBIAN/control" >Package: processing
793-
Version: ${version}
794-
Section: devel
795-
Priority: optional
796-
Installed-Size: ${deb.kbsize}
797-
Architecture: ${deb.arch}
798-
Maintainer: Kyle Feuz &lt;kylefeuz@weber.edu&gt;
799-
Description: Processing programming language and IDE
800-
Processing is a programming language, development environment, and online community. Since 2001, Processing has promoted software literacy within the visual arts and visual literacy within technology. Initially created to serve as a software sketchbook and to teach computer programming fundamentals within a visual context, Processing evolved into a development tool for professionals. Today, there are tens of thousands of students, artists, designers, researchers, and hobbyists who use Processing for learning, prototyping, and production.
801-
</echo>
795+
<copy file="linux/control" tofile="linux/debian/DEBIAN/control" >
796+
<filterchain>
797+
<replacetokens >
798+
<token key="version" value="${version}" />
799+
<token key="size" value="${deb.kbsize}" />
800+
<token key="arch" value="${deb.arch}" />
801+
</replacetokens>
802+
</filterchain >
803+
</copy >
802804

803805
<!-- Create .deb file -->
804806
<exec executable="fakeroot" dir="linux" failonerror="true">

build/linux/control

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Package: processing
2+
Version: @version@
3+
Section: devel
4+
Priority: optional
5+
Installed-Size: @size@
6+
Architecture: @arch@
7+
Maintainer: Kyle Feuz <kylefeuz@weber.edu>
8+
Description: Processing programming language and IDE
9+
Processing is a programming language, development environment, and online community. Since 2001, Processing has promoted software literacy within the visual arts and visual literacy within technology. Initially created to serve as a software sketchbook and to teach computer programming fundamentals within a visual context, Processing evolved into a development tool for professionals. Today, there are tens of thousands of students, artists, designers, researchers, and hobbyists who use Processing for learning, prototyping, and production.

build/linux/processing.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[Desktop Entry]
2-
Version=2.1
2+
Version=@version@
33
Name=Processing
44
Comment=graphics and animation language
55
Exec=processing %F

0 commit comments

Comments
 (0)