Skip to content

Commit 9b259a3

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

File tree

7 files changed

+59
-0
lines changed

7 files changed

+59
-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.

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/%CONFIG%/bin/xabuild /usr/bin
2+
bin/%CONFIG%/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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,13 @@ 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+
sed "s/%CONFIG%/$(CONFIGURATION)/" $(ZIP_OUTPUT_BASENAME)/debian/xamarin.android.install.in > $(ZIP_OUTPUT_BASENAME)/debian/xamarin.android.install && rm -f $(ZIP_OUTPUT_BASENAME)/debian/xamarin.android.install.in
176+
cp LICENSE $(ZIP_OUTPUT_BASENAME)/debian/copyright
177+
ln -sf $(ZIP_OUTPUT) oss-xamarin.android_$(PRODUCT_VERSION).$(-num-commits-since-version-change).orig.tar.bz2
178+
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)"
179+
cd $(ZIP_OUTPUT_BASENAME) && dpkg-buildpackage -us -uc -rfakeroot

0 commit comments

Comments
 (0)