forked from strycore/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage_buuf.sh
executable file
·54 lines (42 loc) · 1.48 KB
/
package_buuf.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
#sudo apt-get install dh-make devscripts cdbs build-essential fakeroot
PKGNAME="buuf-icon-theme"
VER="1.1"
SOURCE_DIR="$HOME/dev/buufdeuce-1.1/"
PKG_DIR="$HOME/dev/packaging/"$PKGNAME"-"$VER
SECTION="x11"
PRIORITY="optional"
PROJECTURL="http://djany.deviantart.com/art/Gnome-Buuf-Deuce-1-1-R3-73339997"
PROJECTDESC="gnome-buuf iconset with the Deuce iconset fron Mattahan"
PROJECTLONGDESC=""
DEPENDS=""
export DEBFULLNAME="Mathieu Comandon"
export DEBEMAIL="[email protected]"
rm -rf $PKG_DIR
mkdir -p $PKG_DIR
cd $PKG_DIR
cp $SOURCE_DIR/* $PKG_DIR -R
tar cvzf ../${PKGNAME}"_"${VER}.orig.tar.gz ../${PKGNAME}-${VER}/
dh_make -c artistic -s
cd debian
rm *ex *EX README.Debian dirs
#control file
sed -i -e 's|Homepage: .*|Homepage: '$PROJECTURL'|' control
sed -i -e 's|Architecture: .*|Architecture: all|' control
sed -i -e 's|Section: .*|Section: '$SECTION'|' control
sed -i -e 's|Priority: .*|Priority: '$PRIORITY'|' control
sed -i -e 's|Description: .*|Description: '"$PROJECTDESC"'|' control
sed -i -e 's| <insert long desc.*|'"$PROJECTLONGDESC"'|' control
sed -i -e 's|Depends: ${shlibs:Depends}, ${misc:Depends}|Depends: '"$DEPENDS"' ${misc:Depends}|' control
sed -i -e 's|Build-Depends: .*|&|' control
#rules file
sed -i -e 's|$(MAKE)$|& DESTDIR=$(CURDIR)/debian/buuf-icon-theme|' rules
#copyright
#TODO : put the copyright stuff here
#Changelog
sed -i -e "s/unstable/jaunty/" changelog
sed -i -e "s|\(Initial release\).*|\1|" changelog
cd ..
debuild -S -sa
#dpkg-buildpackage -us -uc
pwd