diff --git a/emacs/build.sh b/emacs/build.sh new file mode 100755 index 0000000..8b3802a --- /dev/null +++ b/emacs/build.sh @@ -0,0 +1,84 @@ +#!/bin/bash +# This is a buildpkg build.sh script +# build.sh helper functions +. ${BUILDPKG_SCRIPTS}/build.sh.functions +# +########################################################### +# Check the following 4 variables before running the script +topdir=emacs +version=24.5 +pkgver=1 +source[0]=ftp://ftp.heanet.ie/pub/gnu/$topdir/$topdir-$version.tar.xz +# If there are no patches, simply comment this +#patch[0]= + +# Source function library +. ${BUILDPKG_SCRIPTS}/buildpkg.functions + +# Global settings +export CPPFLAGS="-I$prefix/include" +export LDFLAGS="-L$prefix/lib -R$prefix/lib" +basic_args=("${configure_args[@]}") + +reg prep +prep() +{ + generic_prep +} + +reg build +build() +{ + setdir source + mkdir -p build-nox && cd build-nox + ${__ln_s} ../configure . + configure_args=("${basic_args[@]}" --with-x=no) + generic_build build-nox + setdir source + mkdir -p build-x11 && cd build-x11 + ${__ln_s} ../configure . + configure_args=("${basic_args[@]}" --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no) + generic_build build-x11 +} + +reg check +check() +{ + generic_check +} + +reg install +install() +{ + generic_install DESTDIR build-x11 + ${__install} -pm 755 $srcdir/$topsrcdir/build-nox/src/emacs ${stagedir}${prefix}/${_bindir}/emacs-${version}-nox + (cd ${stagedir}${prefix}/${_bindir} && ${__ln_s} emacs-${version}-nox emacs-nox) + ${__mv} ${stagedir}${prefix}/${_infodir}/{info.info.gz,info.gz} + ${__mv} ${stagedir}${prefix}/${_bindir}/{ctags,gctags} + ${__mv} ${stagedir}${prefix}/${_mandir}/man1/{ctags.1.gz,gctags.1.gz} + ${__rm} -f ${stagedir}${prefix}/var/games/emacs/*scores + ${__rmdir} ${stagedir}${prefix}/var/games/emacs + ${__rmdir} ${stagedir}${prefix}/var/games + ${__rmdir} ${stagedir}${prefix}/var + ${__gsed} -i 's|/usr/bin/perl|/usr/tgcware/bin/perl|' ${stagedir}${prefix}/${_bindir}/grep-changelog + custom_install=1 + generic_install + docs_for emacs-common etc/NEWS COPYING BUGS README +} + +reg pack +pack() +{ + generic_pack +} + +reg distclean +distclean() +{ + clean distclean +} + +################################################### +# No need to look below here +################################################### +build_sh $* diff --git a/emacs/meta/ChangeLog b/emacs/meta/ChangeLog new file mode 100644 index 0000000..be17b91 --- /dev/null +++ b/emacs/meta/ChangeLog @@ -0,0 +1,4 @@ +CHANGELOG +--------- +* Sat Mar 12 2016 Tom G. Christensen - 24.5-1 +- First package diff --git a/emacs/meta/depend b/emacs/meta/depend new file mode 100644 index 0000000..2dc1269 --- /dev/null +++ b/emacs/meta/depend @@ -0,0 +1,2 @@ +TGCemacs emacs-common auto +TGCemacsn emacs-common auto diff --git a/emacs/meta/pkgdef b/emacs/meta/pkgdef new file mode 100644 index 0000000..c48c3ef --- /dev/null +++ b/emacs/meta/pkgdef @@ -0,0 +1,43 @@ +[emacs-common] +pkgname="${pkgprefix}${topdir}c" +name="${topdir}-common - Emacs common files" +pkgcat="application" +pkgvendor="http://www.gnu.org/software/emacs/" +pkgdesc="This package contains all the common files needed by emacs or emacs-nox." +pkgver="$pkgver" +files(-,root,bin) +default_docs +$_bindir/ebrowse +$_bindir/emacsclient +$_bindir/etags +$_bindir/gctags +$_bindir/grep-changelog +$_mandir/man?/* +$_infodir/* +$_sharedir/emacs +libexec/emacs + +[emacs] +pkgname="${pkgprefix}${topdir}" +name="$topdir - GNU Emacs text editor" +pkgcat="application" +pkgvendor="http://www.gnu.org/software/emacs/" +pkgdesc="This package provides an emacs binary with support for X windows." +pkgver="$pkgver" +files(-,root,bin) +$_bindir/emacs +$_bindir/emacs-$version +$_sharedir/applications/emacs.desktop +$_sharedir/icons + +[emacs-nox] +pkgname="${pkgprefix}${topdir}n" +name="${topdir}-nox - GNU Emacs text editor without X support" +pkgcat="application" +pkgvendor="http://www.gnu.org/software/emacs/" +pkgdesc="This package provides an emacs binary with no X windows support." +pkgver="$pkgver" +files(-,root,bin) +$_bindir/emacs-nox +$_bindir/emacs-${version}-nox +