# Maintainer: Thomas Jost # Comaintainer: Pedro A. López-Valencia # Contributor: Juergen Hoetzel # Contributor: Renchi Raju pkgname=emacs-pretest _pkgname=emacs pkgver=25.1 _pkgver=25.1-rc2 pkgrel=0.2 pkgdesc="The extensible, customizable, self-documenting real-time display editor -- pretest version" arch=('i686' 'x86_64') url="http://www.gnu.org/software/emacs/emacs.html" license=('GPL3') depends=('gtk3' 'gpm' 'm17n-lib' 'alsa-lib' 'imagemagick') install=$pkgname.install provides=('emacs') conflicts=('emacs') source=(ftp://alpha.gnu.org/gnu/emacs/pretest/$_pkgname-$_pkgver.tar.xz{,.sig}) sha384sums=('9ec2a501102f30ae9f520ebcb9f7e36cf6543aac9cd0cbca12d1fb33516ec2943bfe913605ea0a254c3adfb446bf41ed' 'SKIP') validpgpkeys=('28D3BED851FDF3AB57FEF93C233587A47C207910') build() { cd "$srcdir"/$_pkgname-$pkgver # Avoid hardening-wrapper export PATH=$(echo "$PATH" | sed 's!/usr/lib/hardening-wrapper/bin!!g') local confopts=(--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --without-gconf --with-sound=alsa --with-x-toolkit=gtk3 --with-gameuser=:games --with-modules) ./configure "${confopts[@]}" make } package() { cd "$srcdir"/$_pkgname-$pkgver # Avoid hardening-wrapper export PATH=$(echo "$PATH" | sed 's!/usr/lib/hardening-wrapper/bin!!g') 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.gz} # remove conflict with texinfo rm "$pkgdir"/usr/share/info/info.info.gz # fix ownership on usr/share files find "$pkgdir"/usr/share/emacs/$pkgver -exec chown root:root {} \; # fix access permissions on /var/games chmod 775 "$pkgdir"/var/games chmod 775 "$pkgdir"/var/games/emacs chmod 664 "$pkgdir"/var/games/emacs/* chown -R root:games "$pkgdir"/var/games }