2013-05-04 22:46:07 +08:00
|
|
|
pkgname=emacs
|
2018-05-30 06:09:24 +08:00
|
|
|
pkgver=26.1
|
2018-10-24 22:37:50 +08:00
|
|
|
pkgrel=2
|
2013-05-04 22:46:07 +08:00
|
|
|
pkgdesc="The extensible, customizable, self-documenting real-time display editor"
|
|
|
|
arch=('x86_64')
|
2018-05-30 06:09:24 +08:00
|
|
|
url="https://www.gnu.org/software/emacs/emacs.html"
|
2013-05-04 22:46:07 +08:00
|
|
|
license=('GPL3')
|
2016-09-18 10:57:56 +08:00
|
|
|
depends=('librsvg' 'gpm' 'giflib' 'libxpm' 'libotf' 'm17n-lib' 'gtk3' 'hicolor-icon-theme' 'desktop-file-utils'
|
2018-10-24 22:37:50 +08:00
|
|
|
'alsa-lib' 'libmagick6' 'gnutls')
|
2015-04-22 19:45:50 +08:00
|
|
|
conflicts=('emacs-nox')
|
2013-05-04 22:46:07 +08:00
|
|
|
install=emacs.install
|
2015-11-30 00:45:16 +08:00
|
|
|
source=(ftp://ftp.gnu.org/gnu/emacs/$pkgname-$pkgver.tar.xz)
|
2018-05-30 06:09:24 +08:00
|
|
|
md5sums=('649ec46965a8b842bdb2cbf7764c2a9a')
|
2013-05-04 22:46:07 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir"/$pkgname-$pkgver
|
2013-11-11 02:40:09 +08:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
|
2018-05-30 06:09:24 +08:00
|
|
|
--localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules
|
2013-05-04 22:46:07 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir"/$pkgname-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
|
|
|
# remove conflict with ctags package
|
2013-11-11 02:40:09 +08:00
|
|
|
mv "$pkgdir"/usr/bin/{ctags,ctags.emacs}
|
|
|
|
mv "$pkgdir"/usr/share/man/man1/{ctags.1.gz,ctags.emacs.1}
|
2013-05-04 22:46:07 +08:00
|
|
|
|
|
|
|
# fix user/root permissions on usr/share files
|
2013-11-11 02:40:09 +08:00
|
|
|
find "$pkgdir"/usr/share/emacs/$pkgver -exec chown root:root {} \;
|
2013-05-04 22:46:07 +08:00
|
|
|
}
|