5 PVER="$(grep AM_INIT_AUTOMAKE etk/configure.in | sed 's/AM_INIT_AUTOMAKE(etk, \([^)]\+\))/\1/')_${PRELEASE}"
10 DESC="ETK - Enlightenment Toolkit"
12 ETK is a widget toolkit much like GTK+, but with more visual features.
14 Homepage: http://www.enlightenment.org/
17 DEPENDS="efl-core (>= 0.9.9.040_indt2)"
21 export CFLAGS="$CFLAGS -DNDEBUG=1 -fomit-frame-pointer -O2 -mfpu=vfp -mfloat-abi=softfp -mcpu=arm1136jf-s -ffast-math -funsafe-math-optimizations -fno-math-errno -fsingle-precision-constant"
22 DESTDIR="/tmp/$PNAME-$ARCH"
25 if [ x"$PKGS" = x ]; then
34 if [ x"$NODESTDIR" != x1 ]; then
38 LOG_PREFIX="$(basename $0)"
42 PKG_OPTS_NAME="OPTS_$p"
43 PKG_OPTS="${!PKG_OPTS_NAME}"
44 LOG="/tmp/${LOG_PREFIX}__$p.log"
47 echo "$(date) ---- $p" >> "$LOG"
48 cd $CWD/$p || die "missing package $p"
50 if [ x"$NORECONFIGURE" != x1 ]; then
51 if [ -f Makefile ] && [ x"$NOMAKE" != x1 ]; then
52 (make uninstall && make distclean) >/dev/null 2>> "$LOG"
54 libtoolize --copy --force >/dev/null 2>> "$LOG" || die "failed to libtoolize $p"
55 NOCONFIGURE=1 ./autogen.sh >/dev/null 2>> "$LOG" || die "failed to autogen.sh $p"
58 ./configure $OPTS $PKG_OPTS >/dev/null 2>> "$LOG" || die "failed to configure $p"
61 if [ x"$NOMAKE" != x1 ]; then
62 make >/dev/null 2>> "$LOG" || die "failed to make $p"
63 make install >/dev/null 2>> "$LOG" || die "failed to install $p"
66 if [ x"$NODESTDIR" != x1 ]; then
67 make DESTDIR=$DESTDIR install >/dev/null 2>> "$LOG"
72 if [ x"$NODESTDIR" != x1 ]; then
74 tar czf $DESTDIR.tar.gz .
81 find $DESTDIR/usr/lib -name '*.a' -exec rm \{\} \;
82 find $DESTDIR/usr/lib -name '*.la' -exec rm \{\} \;
83 find $DESTDIR/usr/lib -name '*.so' -exec strip -s \{\} \;
84 rm -fr $DESTDIR/usr/include
85 rm -fr $DESTDIR/usr/bin/*-config
86 rm -fr $DESTDIR/usr/lib/pkgconfig
87 SIZE=$(du -sc $DESTDIR | grep total | sed s/total//)
101 Installed-Size: $SIZE
102 Maintainer: Gustavo Sverzut Barbieri <gustavo.barbieri@openbossa.org>
103 Build-Depends: $BDEPENDS
108 echo 2.0 > debian-binary
109 tar czf control.tar.gz control
110 (cd $DESTDIR; tar czf $PDIR/data.tar.gz .)
111 rm -f ${PNAME}_${PVER}.deb
112 ar q ${PNAME}_${PVER}_armel.deb debian-binary control.tar.gz data.tar.gz
113 echo $PWD/${PNAME}_${PVER}_armel.deb