~skss/usu/misc

« back to all changes in this revision

Viewing changes to ttf-tahoma-installer/build.sh

  • Committer: Krasimir S. Stefanov
  • Date: 2011-06-22 00:48:25 UTC
  • Revision ID: lokiisyourmaster@gmail.com-20110622004825-qai2sirxsainml35
- added nautilus-v4l-infobar
- added ttf-tahoma-installer

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
#       ttf-tahoma
 
4
#       
 
5
#       Copyright 2010 Красимир Стефанов <lokiisyourmaster@gmail.com>
 
6
#       
 
7
#       This program is free software; you can redistribute it and/or modify
 
8
#       it under the terms of the GNU General Public License as published by
 
9
#       the Free Software Foundation; either version 2 of the License, or
 
10
#       (at your option) any later version.
 
11
#       
 
12
#       This program is distributed in the hope that it will be useful,
 
13
#       but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
#       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
#       GNU General Public License for more details.
 
16
#
 
17
#       You should have received a copy of the GNU General Public License
 
18
#       along with this program; if not, write to the Free Software
 
19
#       Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 
20
#       MA 02110-1301, USA.
 
21
#       
 
22
 
 
23
PACKAGE="ttf-tahoma-installer" #име на пакета - задължително
 
24
VERSION="0.1" #версия на пакета - задължително
 
25
DESCRIPTION="Download and install the original Tahoma font" #описание на пакета - задължително
 
26
SECTION="Desktop" #категория на пакета (Desktop, Programming, Education, Games, Graphics, Multimedia, Internet, Networking, Office, Science, System, Utilities, Accessories)
 
27
PRIORITY="optional" #приоритет - може да не се пипа
 
28
MAINTAINER="USU Team <lfu.project@gmail.com>" #автор
 
29
DEPENDS="fontconfig" #зависимости . имена на пакети отделени със запетайка и интервал: пакет1, пакет2, пакет3
 
30
INSTALEDSIZE_BYTES=`du --apparent-size -bs ./build/ | cut -f1`
 
31
INSTALEDSIZE=$(($INSTALEDSIZE_BYTES/1024))
 
32
ARCHITECTURE="all" # Архитектура (all, amd64, i386, ia64)
 
33
 
 
34
# надолу нищо не се редактира
 
35
mkdir -p ./build/DEBIAN/
 
36
echo "Package: $PACKAGE" > ./build/DEBIAN/control
 
37
echo "Version: $VERSION" >> ./build/DEBIAN/control
 
38
echo "Section: $SECTION" >> ./build/DEBIAN/control
 
39
echo "Priority: $PRIORITY" >> ./build/DEBIAN/control
 
40
echo "Architecture: $ARCHITECTURE" >> ./build/DEBIAN/control
 
41
echo "Depends: $DEPENDS" >> ./build/DEBIAN/control
 
42
echo "Maintainer: $MAINTAINER" >> ./build/DEBIAN/control
 
43
echo "Description: $DESCRIPTION" >> ./build/DEBIAN/control
 
44
echo "Installed-size: $INSTALEDSIZE" >> ./build/DEBIAN/control
 
45
 
 
46
 
 
47
sudo chown -R root:root build
 
48
#sudo chmod -R 755 ./build
 
49
sudo dpkg-deb --build build
 
50
sudo mv build.deb "$PACKAGE-$VERSION-$ARCHITECTURE.deb"
 
51
sudo chown -R $USER:$USER ./
 
52