Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
4dee8f22
Commit
4dee8f22
authored
16 years ago
by
Yun Liu
Browse files
Options
Downloads
Patches
Plain Diff
update debian pkg build script
parent
c6e5f5fd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build-package.sh
+58
-0
58 additions, 0 deletions
build-package.sh
with
58 additions
and
0 deletions
build-package.sh
0 → 100755
+
58
−
0
View file @
4dee8f22
#!/bin/bash
#
# @author: Yun Liu <yun.liu@savoirfairelinux.com>
#
# Build sflphone debian packages for Ubuntu 8.04
#1. Before building sflphone package, you need get gpg key. Skip it if you have already one.
# Usage: gpg --gen-key
#2. You mush have access to sflphone git repository. Skip this step if you have the access.
# Refer to http://dev.savoirfairelinux.net/sflphone/wiki/DownloadSFLphone#Developmentsources
#3. After having all the prerequisites, you can run "build-package.sh" to build debian packages for sflphone.
# All the source packages and binary packages will be generated in the current directory.
if
[
-d
"sflphone"
]
;
then
echo
"Directory sflphone already exists. Please remove it first."
exit
1
fi
git clone git+ssh://repos-sflphone-git@sflphone.org/~/sflphone.git
# Get system parameters
arch_flag
=
`
getconf
-a
|grep LONG_BIT |
sed
-e
's/LONG_BIT\s*//'
`
os_version
=
`
lsb_release
-d
-s
-c
|
sed
-e
'1d'
`
# If intrepid(Ubuntu8.10), then use appropriate changelog file
if
[
$os_version
==
"intrepid"
]
;
then
cp
sflphone/debian/changelog.intrepid sflphone/debian/changelog
else
cp
sflphone/debian/changelog.hardy sflphone/debian/changelog
fi
# Remove useless git directory
rm
sflphone/.git/
-rf
# Copy the appropriate control file based on different archtecture
if
[
$arch_flag
-eq
32
]
&&
[
$os_version
==
"intrepid"
]
;
then
cp
sflphone/debian/control.intrepid.i386 sflphone/debian/control
elif
[
$arch_flag
-eq
64
]
&&
[
$os_version
==
"intrepid"
]
;
then
cp
sflphone/debian/control.intrepid.amd64 sflphone/debian/control
elif
[
$arch_flag
-eq
32
]
&&
[
$os_version
==
"hardy"
]
;
then
cp
sflphone/debian/control.hardy.i386 sflphone/debian/control
else
cp
sflphone/debian/control.hardy.amd64 sflphone/debian/control
fi
echo
"Building sflphone package on Ubuntu
$os_version
$arch_flag
bit archetecture...."
# Provide prerequisite directories used by debuild
cp
sflphone sflphone-0.9.2
-r
cp
sflphone sflphone-0.9.2.orig
-r
# Build packages
cd
sflphone-0.9.2/debian
;
debuild
# Clean
rm
sflphone-0.9.2/
-rf
rm
sflphone/
-rf
echo
"Building package finished successullly!"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment