Date: Wednesday, April 27, 2022 @ 00:04:16 Author: freswa Revision: 444073
archrelease: copy trunk to extra-x86_64 Added: emacs/repos/extra-x86_64/PKGBUILD (from rev 444072, emacs/trunk/PKGBUILD) Deleted: emacs/repos/extra-x86_64/PKGBUILD ----------+ PKGBUILD | 188 ++++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 107 insertions(+), 81 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-04-27 00:04:13 UTC (rev 444072) +++ PKGBUILD 2022-04-27 00:04:16 UTC (rev 444073) @@ -1,81 +0,0 @@ -# Maintainer: Juergen Hoetzel <juer...@archlinux.org> -# Maintainer: Frederik Schwan <freswa at archlinux dot org> -# Contributor: Renchi Raju <ren...@green.tam.uiuc.edu> - -pkgbase=emacs -pkgname=(emacs emacs-nativecomp) -pkgver=28.1 -pkgrel=4 -arch=('x86_64') -url='https://www.gnu.org/software/emacs/emacs.html' -license=('GPL3') -depends=('librsvg' 'gpm' 'giflib' 'libxpm' 'libotf' 'm17n-lib' 'gtk3' - 'hicolor-icon-theme' 'desktop-file-utils' 'alsa-lib' 'gnutls' - 'jansson' 'cairo' 'harfbuzz' -) -makedepends=(libgccjit) -validpgpkeys=('17E90D521672C04631B1183EE78DAE0F3115E06B') -options=(debug) -source=(https://ftp.gnu.org/gnu/emacs/${pkgname}-${pkgver}.tar.xz{,.sig}) -b2sums=('42a12bec2dc74f4838ae79b5589fb7439ff415d8ddd34f2ff7a8c503f909ddd4144ad35ae19c758d8627cfa9ed29276b326c5bec3853a77cd179e9fb17d22ad7' - 'SKIP') - -prepare() { - cp -ar ${pkgname}-${pkgver} ${pkgbase}-${pkgver}-nativecomp -} - -build() { - local _confflags="--sysconfdir=/etc \ - --prefix=/usr \ - --libexecdir=/usr/lib \ - --localstatedir=/var \ - --with-cairo \ - --with-harfbuzz \ - --with-modules \ - --with-wide-int \ - --with-x-toolkit=gtk3 \ - --with-xft" - - export ac_cv_lib_gif_EGifPutExtensionLast=yes - - cd ${pkgname}-${pkgver} - ./configure $_confflags - make - - cd ../${pkgbase}-${pkgver}-nativecomp - ./configure \ - --with-native-compilation \ - $_confflags - make NATIVE_FULL_AOT=1 bootstrap -} - -package_emacs() { - pkgdesc='The extensible, customizable, self-documenting real-time display editor' - - cd ${pkgname}-${pkgver} - make DESTDIR="${pkgdir}" install - - # remove conflict with ctags package - mv "${pkgdir}"/usr/bin/{ctags,ctags.emacs} - mv "${pkgdir}"/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1} - - # fix user/root permissions on usr/share files - find "${pkgdir}"/usr/share/emacs/${pkgver} -exec chown root:root {} \; -} - -package_emacs-nativecomp() { - pkgdesc='The extensible, customizable, self-documenting real-time display editor with native compilation enabled' - depends+=(libgccjit) - provides=(emacs) - conflicts=(emacs) - - cd ${pkgbase}-${pkgver}-nativecomp - make DESTDIR="${pkgdir}" install - - # remove conflict with ctags package - mv "${pkgdir}"/usr/bin/{ctags,ctags.emacs} - mv "${pkgdir}"/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1} - - # fix user/root permissions on usr/share files - find "${pkgdir}"/usr/share/emacs/${pkgver} -exec chown root:root {} \; -} Copied: emacs/repos/extra-x86_64/PKGBUILD (from rev 444072, emacs/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-04-27 00:04:16 UTC (rev 444073) @@ -0,0 +1,107 @@ +# Maintainer: Juergen Hoetzel <juer...@archlinux.org> +# Maintainer: Frederik Schwan <freswa at archlinux dot org> +# Contributor: Jaroslav Lichtblau <svetlemo...@archlinux.org> +# Contributor: Renchi Raju <ren...@green.tam.uiuc.edu> + +pkgbase=emacs +pkgname=(emacs emacs-nativecomp emacs-nox) +pkgver=28.1 +pkgrel=5 +arch=('x86_64') +url='https://www.gnu.org/software/emacs/emacs.html' +license=('GPL3') +depends=('librsvg' 'gpm' 'giflib' 'libxpm' 'libotf' 'm17n-lib' 'gtk3' + 'hicolor-icon-theme' 'desktop-file-utils' 'alsa-lib' 'gnutls' + 'jansson' 'cairo' 'harfbuzz' +) +makedepends=(libgccjit) +validpgpkeys=('17E90D521672C04631B1183EE78DAE0F3115E06B') +options=(debug) +source=(https://ftp.gnu.org/gnu/emacs/${pkgname}-${pkgver}.tar.xz{,.sig}) +b2sums=('42a12bec2dc74f4838ae79b5589fb7439ff415d8ddd34f2ff7a8c503f909ddd4144ad35ae19c758d8627cfa9ed29276b326c5bec3853a77cd179e9fb17d22ad7' + 'SKIP') + +prepare() { + cp -ar ${pkgname}-${pkgver} ${pkgbase}-${pkgver}-nativecomp + cp -ar ${pkgname}-${pkgver} ${pkgbase}-${pkgver}-nox +} + +build() { + local _confflags="--sysconfdir=/etc \ + --prefix=/usr \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --with-cairo \ + --with-harfbuzz \ + --with-libsystemd \ + --with-modules" + + export ac_cv_lib_gif_EGifPutExtensionLast=yes + + cd ${pkgname}-${pkgver} + ./configure $_confflags \ + --with-x-toolkit=gtk3 + make + + cd ../${pkgbase}-${pkgver}-nativecomp + ./configure \ + --with-x-toolkit=gtk3 \ + --with-native-compilation \ + $_confflags + make NATIVE_FULL_AOT=1 bootstrap + + cd ../${pkgbase}-${pkgver}-nox + ./configure \ + --without-x \ + --without-sound \ + $_confflags + make +} + +package_emacs() { + pkgdesc='The extensible, customizable, self-documenting real-time display editor' + + cd ${pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + + # remove conflict with ctags package + mv "${pkgdir}"/usr/bin/{ctags,ctags.emacs} + mv "${pkgdir}"/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1} + + # fix user/root permissions on usr/share files + find "${pkgdir}"/usr/share/emacs/${pkgver} -exec chown root:root {} \; +} + +package_emacs-nativecomp() { + pkgdesc='The extensible, customizable, self-documenting real-time display editor with native compilation enabled' + depends+=(libgccjit) + provides=(emacs) + conflicts=(emacs) + + cd ${pkgbase}-${pkgver}-nativecomp + make DESTDIR="${pkgdir}" install + + # remove conflict with ctags package + mv "${pkgdir}"/usr/bin/{ctags,ctags.emacs} + mv "${pkgdir}"/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1} + + # fix user/root permissions on usr/share files + find "${pkgdir}"/usr/share/emacs/${pkgver} -exec chown root:root {} \; +} + +package_emacs-nox() { + pkgdesc='The extensible, customizable, self-documenting real-time display editor without X11 support' + depends=(dbus glib2 gnutls jansson libxml2 ncurses perl) + provides=(emacs) + conflicts=(emacs) + + cd ${pkgbase}-${pkgver}-nox + make DESTDIR="${pkgdir}" install + + # remove conflict with ctags package + mv "${pkgdir}"/usr/bin/{ctags,ctags.emacs} + mv "${pkgdir}"/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1} + + # fix user/root permissions on usr/share files + find "${pkgdir}"/usr/share/emacs/${pkgver} -exec chown root:root {} \; +}