Skip to content

Commit 203e4d4

Browse files
Jo ShieldsJo Shields
authored andcommitted
Add some basic metadata for building .deb packages
1 parent 1cf4994 commit 203e4d4

File tree

8 files changed

+228
-0
lines changed

8 files changed

+228
-0
lines changed

build-tools/debian-metadata/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Source: oss-xamarin.android
2+
Section: unknown
3+
Priority: optional
4+
Maintainer: Xamarin <[email protected]>
5+
Build-Depends: debhelper (>=9)
6+
Standards-Version: 3.9.6
7+
Homepage: https://www.xamarin.com/platform
8+
Vcs-Git: https://github.com/xamarin/xamarin-android.git
9+
Vcs-Browser: https://github.com/xamarin/xamarin-android
10+
11+
Package: xamarin.android
12+
Architecture: amd64
13+
Depends: mono-xbuild (>= 5.2), java8-sdk, ${misc:Depends}, ${shlibs:Depends}
14+
Description: Xamarin.Android libraries and runtime (host component)
15+
The best way to build native Android apps.
16+
.
17+
* Ship native Android packages. Xamarin.Android uses just-in-time
18+
compilation for sophisticated runtime optimization of your app’s
19+
performance, meaning your app is a native Android APK.
20+
* Access any Android API, including new form factors. We bring 100% of
21+
Google’s Android APIs to C#, enhancing Java APIs with async support
22+
and .NET naming conventions so you feel right at home.
23+
* Call existing Java code from C#. Use your existing Java code,
24+
frameworks, and custom controls in your Xamarin app using our
25+
automatic binding generator.
26+
* Build Android Wear apps. With access to 100% API support for Android
27+
Wear, create full-featured applications capable of running on Android
28+
Wear devices.
29+
* Stay up-to-date with Android. Xamarin stays up-to-date with the most
30+
current APIs from Google, so you can always use the latest features
31+
in your apps.
Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
Xamarin.Android SDK
2+
3+
The MIT License (MIT)
4+
5+
Copyright (c) .NET Foundation Contributors
6+
7+
All rights reserved.
8+
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+
28+
### libzip external/libzip
29+
30+
Copyright (C) 1999-2016 Dieter Baron and Thomas Klausner
31+
32+
The authors can be contacted at <[email protected]>
33+
34+
Redistribution and use in source and binary forms, with or without
35+
modification, are permitted provided that the following conditions
36+
are met:
37+
38+
1. Redistributions of source code must retain the above copyright
39+
notice, this list of conditions and the following disclaimer.
40+
41+
2. Redistributions in binary form must reproduce the above copyright
42+
notice, this list of conditions and the following disclaimer in
43+
the documentation and/or other materials provided with the
44+
distribution.
45+
46+
3. The names of the authors may not be used to endorse or promote
47+
products derived from this software without specific prior
48+
written permission.
49+
50+
THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
51+
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
52+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
53+
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
54+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
55+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
56+
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
57+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
58+
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
59+
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
60+
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
61+
62+
63+
### OpenTK from external/opentk
64+
65+
The Open Toolkit library license
66+
67+
Copyright (c) 2006 - 2009 The Open Toolkit library.
68+
69+
Permission is hereby granted, free of charge, to any person obtaining a copy of
70+
this software and associated documentation files (the "Software"), to deal in
71+
the Software without restriction, including without limitation the rights to
72+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
73+
of the Software, and to permit persons to whom the Software is furnished to do
74+
so, subject to the following conditions:
75+
76+
The above copyright notice and this permission notice shall be included in all
77+
copies or substantial portions of the Software.
78+
79+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
80+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
81+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
82+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
83+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
84+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
85+
SOFTWARE.
86+
87+
88+
89+
90+
Third parties
91+
92+
93+
OpenTK.Platform.Windows and OpenTK.Platform.X11 include portions of the
94+
Mono class library. These portions are covered by the following license:
95+
96+
Copyright (c) 2004 Novell, Inc.
97+
98+
Permission is hereby granted, free of charge, to any person obtaining a copy of
99+
this software and associated documentation files (the "Software"), to deal in
100+
the Software without restriction, including without limitation the rights to
101+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
102+
of the Software, and to permit persons to whom the Software is furnished to do
103+
so, subject to the following conditions:
104+
105+
The above copyright notice and this permission notice shall be included in all
106+
copies or substantial portions of the Software.
107+
108+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
109+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
110+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
111+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
112+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
113+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
114+
SOFTWARE.
115+
116+
117+
118+
OpenTK.Compatibility offers the Tao namespace, which includes portions of the
119+
Tao Framework library. These portions are covered by the following license:
120+
121+
Copyright ©2003-2007 Tao Framework Team
122+
http://www.taoframework.com
123+
All rights reserved.
124+
125+
Permission is hereby granted, free of charge, to any person obtaining a copy of
126+
this software and associated documentation files (the "Software"), to deal in
127+
the Software without restriction, including without limitation the rights to
128+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
129+
the Software, and to permit persons to whom the Software is furnished to do so,
130+
subject to the following conditions:
131+
132+
The above copyright notice and this permission notice shall be included in all
133+
copies or substantial portions of the Software.
134+
135+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
136+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
137+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
138+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
139+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
140+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
141+
SOFTWARE.
142+
143+
144+
145+
OpenTK.Half offers Half-to-Single and Single-to-Half conversions based on
146+
OpenEXR source code, which is covered by the following license:
147+
148+
Copyright (c) 2002, Industrial Light & Magic, a division of Lucas Digital Ltd. LLC. All rights reserved.
149+
150+
Redistribution and use in source and binary forms, with or without modification,
151+
are permitted provided that the following conditions are met:
152+
153+
* Redistributions of source code must retain the above copyright notice,
154+
this list of conditions and the following disclaimer.
155+
* Redistributions in binary form must reproduce the above copyright
156+
notice, this list of conditions and the following disclaimer in the
157+
documentation and/or other materials provided with the distribution.
158+
* Neither the name of Industrial Light & Magic nor the names of its
159+
contributors may be used to endorse or promote products derived from
160+
this software without specific prior written permission.
161+
162+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
163+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
164+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
165+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
166+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
167+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
168+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
169+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
170+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
171+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

build-tools/debian-metadata/rules

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/make -f
2+
3+
build:
4+
build-arch:
5+
build-indep:
6+
override_dh_strip:
7+
override_dh_strip_nondeterminism:
8+
override_dh_shlibdeps:
9+
echo "noop"
10+
11+
%:
12+
dh $@
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (quilt)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bin/Debug/bin/xabuild /usr/bin
2+
bin/Debug/lib/xamarin.android /usr/lib/
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/usr/lib/xamarin.android/xbuild-frameworks/MonoAndroid /usr/lib/mono/xbuild-frameworks/MonoAndroid
2+
/usr/lib/xamarin.android/xbuild/Xamarin /usr/lib/mono/xbuild/Xamarin

build-tools/scripts/BuildEverything.mk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,11 @@ package-oss $(ZIP_OUTPUT):
167167
done; \
168168
tar $(_BUNDLE_ZIPS_EXCLUDE:%=--exclude=%) -cjhvf "$(ZIP_OUTPUT)" `ls -1d $(_BUNDLE_ZIPS_INCLUDE) 2>/dev/null`
169169
-rm ".__exclude_list.txt"
170+
171+
package-deb: $(ZIP_OUTPUT)
172+
rm -fr $(ZIP_OUTPUT_BASENAME)
173+
tar xf $(ZIP_OUTPUT)
174+
cp -a build-tools/debian-metadata $(ZIP_OUTPUT_BASENAME)/debian
175+
ln -sf $(ZIP_OUTPUT) oss-xamarin.android_$(PRODUCT_VERSION).$(-num-commits-since-version-change).orig.tar.bz2
176+
cd $(ZIP_OUTPUT_BASENAME) && DEBEMAIL="Xamarin Public Jenkins (auto-signing) <[email protected]>" dch --create -v $(PRODUCT_VERSION).$(-num-commits-since-version-change) --package oss-xamarin.android --force-distribution --distribution alpha "New release - please see git log for $(GIT_COMMIT)"
177+
cd $(ZIP_OUTPUT_BASENAME) && dpkg-buildpackage -us -uc -rfakeroot

0 commit comments

Comments
 (0)