wok-next view emacs/receipt @ rev 21094

Apply "force-arch" for selected dev packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 31 17:23:40 2018 +0200 (2018-12-31)
parents 75632eca5b07
children 943dad97e470
line source
1 # SliTaz package receipt v2.
3 PACKAGE="emacs"
4 VERSION="26.1"
5 CATEGORY="editors"
6 SHORT_DESC="The GNU Emacs editor"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.gnu.org/software/emacs/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 COOKOPTS="force-arch" # different .el.gz in emacs-lisp-sources
16 BUILD_DEPENDS="atk-dev cairo-dev expat-dev dbus-dev freetype-dev \
17 fontconfig-dev glib-dev gnutls-dev gtk2-dev libjpeg-turbo-dev libpng-dev \
18 librsvg-dev ncurses-dev pango-dev tiff-dev xorg-dev xorg-dev-proto lcms2-dev"
19 # giflib-dev: version 4 needed, add --with-gif=no)
20 SPLIT="$PACKAGE-help $PACKAGE-lisp-sources $PACKAGE $PACKAGE-common"
22 COPY_help="info/ tutorials/ refcards/*.pdf etc/[A-Z]* etc/*.txt"
23 COPY_lisp_sources="*.el.gz refcards/*.tex"
24 COPY_std="bin/ libexec/"
25 COPY_common="@std @rm"
27 DEPENDS_help="emacs"
28 DEPENDS_lisp_sources="emacs"
29 DEPENDS_std="dbus fontconfig freetype gdk-pixbuf glib gtk2 lcms2 libgnutls \
30 libice libpng librsvg libsm libx11 libxaw libxcb libxext libxfixes libxft \
31 libxinerama libxml2 libxmu libxpm libxrandr libxrender libxt ncurses libtiff zlib"
32 DEPENDS_common=" "
34 CAT_help="development|help files"
35 CAT_lisp_sources="development|Lisp source files"
36 CAT_common="editors|architecture independent part"
38 SUGGESTED_std="alsa-lib"
39 TAGS_std="text-editor"
41 compile_rules() {
42 ./configure \
43 --without-makeinfo \
44 --without-gconf \
45 --with-gif=no --with-jpeg=no \
46 --with-sound \
47 --with-x \
48 --with-toolkit-scroll-bars \
49 --with-xpm=yes \
50 $CONFIGURE_ARGS &&
51 make $MAKEFLAGS &&
52 make DESTDIR=$install install || return 1
54 # Install specific site file
55 mkdir -p $install/usr/share/emacs/site-lisp/site-start.d
56 cp -a $stuff/default.el \
57 $stuff/site-start.el $install/usr/share/emacs/site-lisp/
58 cp -a $stuff/90-slitaz.el $install/usr/share/emacs/site-lisp/site-start.d
60 # Use default site-lisp
61 ln -s ../site-lisp $install/usr/share/emacs/$VERSION/site-lisp
63 chown -R 0:0 $install
64 find $install -type f -exec chmod g-w '{}' \; # 664->644
65 }