wok-next annotate emacs/receipt @ rev 1900
emacs: typo fix in receipt
author | Dominique Corbex <domcox@users.sourceforge.net> |
---|---|
date | Sat Dec 20 18:45:42 2008 +0100 (2008-12-20) |
parents | 4574379dbc68 |
children | 9058617a46bb |
rev | line source |
---|---|
domcox@1046 | 1 # SliTaz package receipt. |
domcox@1046 | 2 |
domcox@1046 | 3 PACKAGE="emacs" |
domcox@1380 | 4 VERSION="22.3" |
domcox@1046 | 5 CATEGORY="development" |
domcox@1046 | 6 SHORT_DESC="The GNU Emacs editor" |
domcox@1046 | 7 MAINTAINER="domcox@users.sourceforge.net" |
domcox@1046 | 8 DEPENDS="" |
domcox@1046 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
domcox@1046 | 10 WEB_SITE="http://www.gnu.org/software/emacs/" |
domcox@1046 | 11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
domcox@1046 | 12 |
domcox@1046 | 13 # Rules to configure and make the package. |
domcox@1046 | 14 compile_rules() |
domcox@1046 | 15 { |
domcox@1046 | 16 cd $src |
domcox@1046 | 17 # Gzip workaround in busybox |
domcox@1900 | 18 sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' Makefile.in |
domcox@1900 | 19 sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' leim/Makefile.in |
domcox@1046 | 20 # Configure |
domcox@1046 | 21 ./configure $CONFIGURE_ARGS \ |
domcox@1046 | 22 --infodir=/usr/share/info \ |
domcox@1046 | 23 --mandir=/usr/share/man \ |
domcox@1046 | 24 --without-pop \ |
domcox@1046 | 25 --without-sound \ |
domcox@1046 | 26 --without-x \ |
domcox@1046 | 27 --with-x-toolkit=no \ |
domcox@1046 | 28 --libexecdir=/usr/lib \ |
domcox@1251 | 29 --localstatedir=/var/lib \ |
domcox@1251 | 30 --sharedstatedir=/var/lib \ |
domcox@1046 | 31 --prefix=/usr |
domcox@1046 | 32 # make |
domcox@1046 | 33 make |
domcox@1046 | 34 make DESTDIR=$PWD/_pkg install |
domcox@1046 | 35 } |
domcox@1046 | 36 |
domcox@1046 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@1046 | 38 genpkg_rules() |
domcox@1046 | 39 { |
domcox@1046 | 40 echo "Copying files" |
domcox@1046 | 41 # Binary files |
domcox@1046 | 42 mkdir -p $fs/usr |
domcox@1046 | 43 cp -a $_pkg/usr/bin $fs/usr |
domcox@1046 | 44 # emacs-22.2 = emacs |
domcox@1046 | 45 rm -f $fs/usr/bin/emacs-22.2 |
domcox@1046 | 46 # Conf files |
domcox@1046 | 47 mkdir -p $fs/usr/share/$PACKAGE/$VERSION |
domcox@1046 | 48 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc |
domcox@1046 | 49 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL $fs/usr/share/$PACKAGE/$VERSION/etc |
domcox@1046 | 50 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL.de $fs/usr/share/$PACKAGE/$VERSION/etc |
domcox@1046 | 51 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL.es $fs/usr/share/$PACKAGE/$VERSION/etc |
domcox@1046 | 52 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/TUTORIAL.fr $fs/usr/share/$PACKAGE/$VERSION/etc |
domcox@1046 | 53 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/ORDERS $fs/usr/share/$PACKAGE/$VERSION/etc |
domcox@1046 | 54 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/COPYING $fs/usr/share/$PACKAGE/$VERSION/etc |
domcox@1046 | 55 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/DISTRIB $fs/usr/share/$PACKAGE/$VERSION/etc |
domcox@1251 | 56 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/etc/DOC-* $fs/usr/share/$PACKAGE/$VERSION/etc |
domcox@1046 | 57 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp $fs/usr/share/$PACKAGE/$VERSION |
domcox@1046 | 58 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/leim $fs/usr/share/$PACKAGE/$VERSION |
domcox@1046 | 59 cp -a $_pkg/usr/share/$PACKAGE/site-lisp $fs/usr/share/$PACKAGE |
domcox@1046 | 60 cp -a $_pkg/usr/lib $fs/usr |
domcox@1046 | 61 # Delete Lisp sources |
domcox@1046 | 62 find $fs/usr/share -name *el.gz > lisp-sources |
domcox@1046 | 63 cat lisp-sources | while read filename |
domcox@1046 | 64 do |
domcox@1046 | 65 rm $filename |
domcox@1046 | 66 done |
domcox@1046 | 67 # Delete Games |
domcox@1046 | 68 rm -rf $fs/usr/share/$PACKAGE/$VERSION/lisp/play |
domcox@1046 | 69 # Use linux term only |
domcox@1046 | 70 rm -rf $fs/usr/share/$PACKAGE/$VERSION/lisp/term/* |
domcox@1046 | 71 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/linux.el $fs/usr/share/$PACKAGE/$VERSION/lisp/term |
domcox@1046 | 72 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/rxvt.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term |
domcox@1046 | 73 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/tty-colors.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term |
domcox@1046 | 74 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/vt100.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term |
domcox@1046 | 75 cp -a $_pkg/usr/share/$PACKAGE/$VERSION/lisp/term/xterm.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/term |
domcox@1046 | 76 # Strip executable files |
domcox@1046 | 77 strip -s $fs/usr/bin/* > /dev/null |
domcox@1046 | 78 strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* > /dev/null |
domcox@1046 | 79 # Install specific site file |
domcox@1046 | 80 cp -a stuff/default.el $fs/usr/share/$PACKAGE/site-lisp |
domcox@1046 | 81 # Add lua support |
domcox@1046 | 82 cp stuff/lua-mode.elc $fs/usr/share/$PACKAGE/$VERSION/lisp/progmodes |
domcox@1046 | 83 # Directory workaround |
domcox@1046 | 84 cd $fs/usr/share/$PACKAGE/$VERSION |
domcox@1046 | 85 ln -s ../site-lisp site-lisp |
domcox@1046 | 86 } |
domcox@1380 | 87 |
domcox@1380 | 88 post_remove() |
domcox@1380 | 89 { |
domcox@1380 | 90 rm -rf /usr/share/$PACKAGE |
domcox@1380 | 91 rm -rf /usr/lib/$PACKAGE |
domcox@1900 | 92 } |