Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Add Ubuntu build support
Browse files Browse the repository at this point in the history
  • Loading branch information
qmfrederik committed May 21, 2019
1 parent 1f504c5 commit 3579837
Show file tree
Hide file tree
Showing 11 changed files with 116 additions and 58 deletions.
10 changes: 6 additions & 4 deletions .travis.yml
Expand Up @@ -4,13 +4,13 @@ sudo: true
matrix:
include:
- os: osx
env: TARGET=x86_64-apple-darwin RID=osx-x64 RUN_TESTS=yes CROSS=no
env: TARGET=x86_64-apple-darwin RID=osx-x64 RUN_TESTS=yes CROSS=no CREATE_DEB=no
- os: linux
env: TARGET=x86_64-linux-gnu RID=linux-x64 RUN_TESTS=yes CROSS=no
env: TARGET=x86_64-linux-gnu RID=linux-x64 RUN_TESTS=yes CROSS=no CREATE_DEB=yes
- os: linux
env: TARGET=arm-linux-gnueabihf RID=linux-arm RUN_TESTS=no CROSS=yes ARCH=armhf
env: TARGET=arm-linux-gnueabihf RID=linux-arm RUN_TESTS=no CROSS=yes ARCH=armhf CREATE_DEB=no
- os: linux
env: TARGET=aarch64-linux-gnu RID=linux-arm64 RUN_TESTS=no CROSS=yes ARCH=arm64
env: TARGET=aarch64-linux-gnu RID=linux-arm64 RUN_TESTS=no CROSS=yes ARCH=arm64 CREATE_DEB=no

language: c

Expand All @@ -22,6 +22,7 @@ env:

before_install:
- test -n $CC && unset CC
- if [ "$CREATE_DEB" = "yes" ]; then sudo apt-get install -y devscripts debhelper dh-autoreconf dput; fi
- if [ "$CROSS" = "yes" ]; then sudo apt-get install -y gcc-$TARGET binutils-$TARGET g++-$TARGET; fi
- if [ "$CROSS" = "yes" ]; then sudo rm -rf /etc/apt/sources.list.d; fi
- if [ "$CROSS" = "yes" ]; then sudo echo "deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu trusty main universe" | sudo tee /etc/apt/sources.list > /dev/null; fi
Expand Down Expand Up @@ -66,6 +67,7 @@ after_success:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then az=$HOME/Library/Python/2.7/bin/az; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then az=$HOME/.local/bin/az; fi
- $az storage blob upload -f libimobiledevice-$RID.tar.gz -c imobiledevice -n libimobiledevice-$RID-1.2.1-$TRAVIS_BUILD_NUMBER.tar.gz
- if [[ "$CREATE_DEB" == "yes" ]]; then ./make-deb.sh xenial; fi

after_failure:
- cat config.log
Expand Down
38 changes: 2 additions & 36 deletions debian/control
Expand Up @@ -6,21 +6,15 @@ XSBC-Original-Maintainer: gtkpod Maintainers <pkg-gtkpod-devel@lists.alioth.debi
Uploaders: Julien Lavergne <julien.lavergne@gmail.com>
Standards-Version: 3.9.6
Build-Depends: debhelper (>= 9),
dh-python,
libgnutls28-dev,
libgcrypt20-dev,
libssl-dev,
libusb-1.0-0-dev (>= 1.0.3) [linux-any],
libglib2.0-dev (>= 2.14.1),
libplist-dev (>= 1.11),
libplist++-dev (>= 1.11),
python-all-dev (>= 2.6.6-3~),
cython (>= 0.17.0),
libusbmuxd-dev (>= 1.0.9),
libtasn1-6-dev (>= 1.1),
libreadline-dev,
python-plist (>= 1.8-2~),
dh-autoreconf
X-Python-Version: >= 2.3
Homepage: http://libimobiledevice.org/
Vcs-Git: git://git.debian.org/git/pkg-gtkpod/packages/libimobiledevice.git
Vcs-Browser: http://git.debian.org/?p=pkg-gtkpod/packages/libimobiledevice.git
Expand Down Expand Up @@ -50,8 +44,7 @@ Depends: libimobiledevice6 (= ${binary:Version}),
libglib2.0-dev,
libplist-dev,
libusbmuxd-dev,
libgnutls28-dev,
libgcrypt20-dev,
libssl-dev,
libtasn1-6-dev
Description: Library for communicating with iPhone and iPod Touch devices
libimobiledevice is a library that talks the native Apple USB protocols that
Expand Down Expand Up @@ -79,22 +72,6 @@ Description: Library for communicating with iPhone and iPod Touch devices
.
This package contains the debugging symbols.

Package: python-imobiledevice
Section: python
Architecture: any
Depends: ${shlibs:Depends},
${misc:Depends},
${python:Depends}
Provides: ${python:Provides}
Conflicts: python-libiphone, python-iphone
Replaces: python-libiphone, python-iphone
Description: Library for communicating with iPhone and iPod Touch devices
libimobiledevice is a library that talks the native Apple USB protocols that
the iPhone and iPod Touch use. Unlike other projects, libimobiledevice does
not depend on using any existing libraries from Apple.
.
This package contains the Python bindings

Package: libimobiledevice-utils
Architecture: any
Section: utils
Expand All @@ -106,14 +83,3 @@ Description: Library for communicating with iPhone and iPod Touch devices
not depend on using any existing libraries from Apple.
.
This package contains utilities and examples which use libimobiledevice.

Package: libimobiledevice-doc
Architecture: all
Section: doc
Depends: libjs-jquery, ${misc:Depends}
Description: Library for communicating with iPhone and iPod Touch devices
libimobiledevice is a library that talks the native Apple USB protocols that
the iPhone and iPod Touch use. Unlike other projects, libimobiledevice does
not depend on using any existing libraries from Apple.
.
This package contains the documentation for the library.
9 changes: 0 additions & 9 deletions debian/libimobiledevice-doc.doc-base

This file was deleted.

1 change: 0 additions & 1 deletion debian/libimobiledevice-doc.install

This file was deleted.

2 changes: 0 additions & 2 deletions debian/libimobiledevice-doc.links

This file was deleted.

8 changes: 8 additions & 0 deletions debian/libimobiledevice6.symbols
Expand Up @@ -24,6 +24,7 @@ libimobiledevice.so.6 libimobiledevice6 #MINVER#
afc_rename_path@Base 0.9.7
afc_set_file_time@Base 0.9.7
afc_truncate@Base 0.9.7
debug_info_real@Base 1.2.1.97-0xenial
debugserver_client_free@Base 1.1.7
debugserver_client_new@Base 1.1.7
debugserver_client_receive@Base 1.1.7
Expand Down Expand Up @@ -70,6 +71,7 @@ libimobiledevice.so.6 libimobiledevice6 #MINVER#
idevice_connect@Base 0.9.7
idevice_connection_disable_ssl@Base 0.9.7
idevice_connection_enable_ssl@Base 0.9.7
idevice_connection_get_fd@Base 1.2.1.97-0xenial
idevice_connection_receive@Base 0.9.7
idevice_connection_receive_timeout@Base 0.9.7
idevice_connection_send@Base 0.9.7
Expand All @@ -82,6 +84,7 @@ libimobiledevice.so.6 libimobiledevice6 #MINVER#
idevice_get_handle@Base 0.9.7
idevice_get_udid@Base 1.1.4
idevice_new@Base 0.9.7
idevice_set_debug_callback@Base 1.2.1.97-0xenial
idevice_set_debug_level@Base 0.9.7
instproxy_archive@Base 0.9.7
instproxy_browse@Base 0.9.7
Expand Down Expand Up @@ -121,6 +124,7 @@ libimobiledevice.so.6 libimobiledevice6 #MINVER#
lockdownd_get_value@Base 0.9.7
lockdownd_goodbye@Base 0.9.7
lockdownd_pair@Base 0.9.7
lockdownd_pair_with_options@Base 1.2.1.97-0xenial
lockdownd_query_type@Base 0.9.7
lockdownd_receive@Base 0.9.7
lockdownd_remove_value@Base 0.9.7
Expand All @@ -137,6 +141,7 @@ libimobiledevice.so.6 libimobiledevice6 #MINVER#
misagent_client_new@Base 1.1.5
misagent_client_start_service@Base 1.1.6
misagent_copy@Base 1.1.5
misagent_copy_all@Base 1.2.1.97-0xenial
misagent_get_status_code@Base 1.1.5
misagent_install@Base 1.1.5
misagent_remove@Base 1.1.5
Expand Down Expand Up @@ -197,6 +202,8 @@ libimobiledevice.so.6 libimobiledevice6 #MINVER#
np_observe_notifications@Base 0.9.7
np_post_notification@Base 0.9.7
np_set_notify_callback@Base 0.9.7
pinvoke_free_string@Base 1.2.1.97-0xenial
pinvoke_get_string_length@Base 1.2.1.97-0xenial
property_list_service_client_free@Base 1.1.7
property_list_service_client_new@Base 1.1.7
property_list_service_disable_ssl@Base 1.1.7
Expand Down Expand Up @@ -225,6 +232,7 @@ libimobiledevice.so.6 libimobiledevice6 #MINVER#
sbservices_get_interface_orientation@Base 1.1.4
sbservices_set_icon_state@Base 0.9.7
screenshotr_client_free@Base 1.0.0
screenshotr_screenshot_free@Base 1.2.1.97-0xenial
screenshotr_client_new@Base 1.0.0
screenshotr_client_start_service@Base 1.1.6
screenshotr_take_screenshot@Base 1.0.0
Expand Down
5 changes: 0 additions & 5 deletions debian/patches/series

This file was deleted.

2 changes: 1 addition & 1 deletion debian/rules
Expand Up @@ -6,7 +6,7 @@ configure_flags += \
--prefix=/usr \
--sysconfdir=/etc \
--enable-dev-tools \
--disable-openssl \
--without-cython \
--disable-silent-rules

%:
Expand Down
13 changes: 13 additions & 0 deletions gpg-pass.sh
@@ -0,0 +1,13 @@
#!/bin/bash
PWD_FILE="$1"
shift 1

export GPG_TTY=`tty`
. /etc/lsb-release
echo Running on $DISTRIB_CODENAME

if [ "$DISTRIB_CODENAME" = "trusty" ]; then
cat $PWD_FILE | gpg2 --batch --passphrase-fd 0 --yes $@
else
cat $PWD_FILE | gpg2 --batch --passphrase-fd 0 --pinentry-mode loopback --yes $@
fi
26 changes: 26 additions & 0 deletions make-deb.sh
@@ -0,0 +1,26 @@
#!/bin/sh
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

export DEBEMAIL="frederik.carlier@quamotion.mobi"
export DEBFULLNAME="Frederik Carlier"

git config --global user.name "$DEBFULLNAME"
git config --global user.email "$DEBEMAIL"

dch -v "1.2.1.$TRAVIS_BUILD_NUMBER-0$1" --distribution $1 "Travis CI Build"
git add debian/changelog
git commit -m "Travis CI Build"

git clean -xfd

git archive --format tar.gz -o ../libimobiledevice_1.2.1.${TRAVIS_BUILD_NUMBER}.orig.tar.gz HEAD

echo allow-loopback-pinentry > ~/.gnupg/gpg-agent.conf
gpg --allow-secret-key-import --import ppa.asc
killall gpg-agent
echo "${GPG_PASSPHRASE}" >> /tmp/gpg_passphrase
debuild -S -kFBA0ACB4 -p"$DIR/gpg-pass.sh /tmp/gpg_passphrase"
rm -rf /tmp/gpg_passphrase

dput ppa:quamotion/ppa ../libimobiledevice_1.2.1.${TRAVIS_BUILD_NUMBER}-0$1_source.changes

60 changes: 60 additions & 0 deletions ppa.asc
@@ -0,0 +1,60 @@
-----BEGIN PGP PRIVATE KEY BLOCK-----
Version: GnuPG v2

lQPGBFj3qRMBCADkCFu3oa+ulY7HWhlvYm0hNqhYYxFx3JpdIulLteAgcJNMTiqG
0eH4evX5HymV+STVy3v3ZicArrhXRcLUSjZPuSjK1ww9CG2Zk1BkQt84a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