~ubuntu-branches/ubuntu/quantal/agtl/quantal

« back to all changes in this revision

Viewing changes to make-ipk.sh

  • Committer: Bazaar Package Importer
  • Author(s): Angel Abad
  • Date: 2011-01-23 13:14:08 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110123131408-4wy5aefap3o6a4lw
Tags: 0.8.0.3-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - debian/control: Switch section from python to misc
  - Add category Geography to .desktop

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
 
IPKG='../ipkg-utils-1.7/ipkg-build'
 
2
IPKG='ipkg-utils-1.7/ipkg-build'
3
3
PKGROOT='freerunner'
4
4
VERSION="Version: "`grep -oP "(?<=version=').*(?=')" files/setup.py`
5
5
 
 
6
# create dirs first, maybe they don't exist yet
 
7
mkdir -p $PKGROOT/usr/bin/
 
8
mkdir -p $PKGROOT/usr/share/applications/
 
9
mkdir -p $PKGROOT/usr/share/pixmaps/
 
10
mkdir -p $PKGROOT/usr/lib/site-python/advancedcaching/
 
11
 
 
12
# copy files for package to their desired place
6
13
cp --preserve=all files/agtl     $PKGROOT/usr/bin/
7
14
cp files/advancedcaching.desktop $PKGROOT/usr/share/applications/
8
15
cp files/advancedcaching.png     $PKGROOT/usr/share/pixmaps/
9
16
cp -R files/advancedcaching/*    $PKGROOT/usr/lib/site-python/advancedcaching/
10
 
rm $PKGROOT/usr/lib/site-python/advancedcaching/*.pyc
 
17
 
 
18
# remove overhead
 
19
rm -rf $PKGROOT/usr/lib/site-python/advancedcaching/*.pyc
 
20
rm -rf $PKGROOT/usr/lib/site-python/advancedcaching/*.py~ # remove alls gedit temporary files too
 
21
 
11
22
sed -i -e "s/Version: .*/$VERSION/" $PKGROOT/CONTROL/control
12
23
 
13
24
$IPKG -o root -g root freerunner