Skip to content

Commit 861b3c9

Browse files
Jo ShieldsJo Shields
authored andcommitted
Add some basic metadata for building .deb packages
1 parent f5c885f commit 861b3c9

7 files changed

Lines changed: 58 additions & 0 deletions

File tree

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 <hello@xamarin.com>
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
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
@@ -179,3 +179,13 @@ else ifeq ($(ZIP_EXTENSION),tar.bz2)
179179
tar --exclude-from=.__exclude_list.txt -cjhvf "$(ZIP_OUTPUT)" `ls -1d $(_BUNDLE_ZIPS_INCLUDE) 2>/dev/null`
180180
endif
181181
-rm ".__exclude_list.txt"
182+
183+
package-deb: $(ZIP_OUTPUT)
184+
rm -fr $(ZIP_OUTPUT_BASENAME)
185+
tar xf $(ZIP_OUTPUT)
186+
cp -a build-tools/debian-metadata $(ZIP_OUTPUT_BASENAME)/debian
187+
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
188+
cp LICENSE $(ZIP_OUTPUT_BASENAME)/debian/copyright
189+
ln -sf $(ZIP_OUTPUT) oss-xamarin.android_$(PRODUCT_VERSION).$(-num-commits-since-version-change).orig.tar.bz2
190+
cd $(ZIP_OUTPUT_BASENAME) && DEBEMAIL="Xamarin Public Jenkins (auto-signing) <releng@xamarin.com>" 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)"
191+
cd $(ZIP_OUTPUT_BASENAME) && dpkg-buildpackage -us -uc -rfakeroot

0 commit comments

Comments
 (0)