# Maintainer: Thomas Jost # Comaintainer: Pedro A. López-Valencia # Contributor: Juergen Hoetzel # Contributor: Renchi Raju pkgname=emacs-pretest _pkgname=emacs pkgver=26.3 _pkgver=26.3-rc1 pkgrel=0.1 pkgdesc="The extensible, customizable, self-documenting real-time display editor -- pretest version" arch=('x86_64') url="http://www.gnu.org/software/emacs/emacs.html" license=('GPL3') depends=('gpm' 'm17n-lib' 'gtk3' 'libmagick6') provides=('emacs') conflicts=('emacs') source=(https://alpha.gnu.org/gnu/emacs/pretest/$_pkgname-$_pkgver.tar.xz{,.sig}) sha512sums=('4d5a4319253afb081e105a3697eb6eeb8d8a0da18cd41346e376ca5af1e180a26e641f76c64fad1b0253168f14a511f0a4d9d4141524fb1cf4d04f25b05a76e9' 'SKIP') validpgpkeys=('B29426DEFB07724C3C35E5D36592E9A3A0B0F199' '28D3BED851FDF3AB57FEF93C233587A47C207910' 'D405AA2C862C54F17EEE6BE0E8BCD7866AFCF978') build() { cd "$srcdir"/$_pkgname-$pkgver # Force imagemagick6 detection. export PKG_CONFIG_PATH=/usr/lib/imagemagick6/pkgconfig local confopts=( --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-gameuser=root:games --with-x-toolkit=gtk3 --with-xft --with-modules --without-compress-install # Beware https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25228 # dconf and gconf break font settings set in ~/.emacs # If you insist you'll need to play gymnastics with # set-frame-font and set-menu-font. Good luck! # Seems to be fixed in master. Try emacs-git. --without-gsettings --without-gconf ) ./configure "${confopts[@]}" make } package() { cd "$srcdir"/$_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} mv "$pkgdir"/usr/share/man/man1/{ctags.1,ctags.emacs.1} # fix user/root permissions on usr/share files find "$pkgdir"/usr/share/emacs/ | xargs chown root:root # fix permssions on /var/games mkdir -p "$pkgdir"/var/games/emacs chmod 775 "$pkgdir"/var/games chmod 775 "$pkgdir"/var/games/emacs chown -R root:games "$pkgdir"/var/games }