summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoralienzj2021-02-04 19:45:33 +0800
committeralienzj2021-02-04 19:45:33 +0800
commit8130361f6c2568fc7d0431fbb705728cde3cd179 (patch)
tree753b28e72249a808e20b452fcc6a9f6dc75ccfac
downloadaur-8130361f6c2568fc7d0431fbb705728cde3cd179.tar.gz
add emacs-ng-git
-rw-r--r--.SRCINFO38
-rw-r--r--PKGBUILD48
2 files changed, 86 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..cbb3648b738b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,38 @@
+pkgbase = emacs-ng-git
+ pkgdesc = A new approach to Emacs - Including TypeScript, Threading, Async I/O, and WebRender
+ pkgver = 28.0.5
+ pkgrel = 1
+ url = https://www.gnu.org/software/emacs/emacs.html
+ arch = x86_64
+ license = GPL3
+ depends = texinfo
+ depends = libjpeg-turbo
+ depends = libtiff
+ depends = librsvg
+ depends = gpm
+ depends = giflib
+ depends = libxpm
+ depends = libotf
+ depends = m17n-lib
+ depends = gtk3
+ depends = hicolor-icon-theme
+ depends = desktop-file-utils
+ depends = alsa-lib
+ depends = gnutls
+ depends = jansson
+ depends = cairo
+ depends = harfbuzz
+ depends = ncurses
+ depends = libxml2
+ depends = libxt
+ depends = rustup
+ depends = zlib
+ depends = libgccjit
+ provides = emacs-ng=28.0.5
+ conflicts = emacs
+ conflicts = emacs-ng
+ source = emacs-ng::git+https://github.com/emacs-ng/emacs-ng.git
+ sha1sums = SKIP
+
+pkgname = emacs-ng-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..5851a9305990
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Juergen Hoetzel <juergen@archlinux.org>
+# Maintainer: alienzj <alienchuj@gmail.com>
+# Maintainer: Steven Tang <xosdy.t@gmail.com>
+# Contributor: Renchi Raju <renchi@green.tam.uiuc.edu>
+
+_basename=emacs-ng
+pkgname=${_basename}-git
+pkgver=28.0.5
+pkgrel=1
+pkgdesc="A new approach to Emacs - Including TypeScript, Threading, Async I/O, and WebRender"
+arch=('x86_64')
+url="https://www.gnu.org/software/emacs/emacs.html"
+license=('GPL3')
+depends=('texinfo' 'libjpeg-turbo' 'libtiff' 'librsvg' 'gpm' 'giflib' 'libxpm' 'libotf' 'm17n-lib' 'gtk3' 'hicolor-icon-theme' 'desktop-file-utils' 'alsa-lib' 'gnutls' 'jansson' 'cairo' 'harfbuzz' 'ncurses' 'libxml2' 'libxt' 'rustup' 'zlib' 'libgccjit')
+provides=(${_basename}=${pkgver})
+conflicts=("emacs" "emacs-ng")
+source=("emacs-ng::git+https://github.com/emacs-ng/emacs-ng.git")
+sha1sums=('SKIP')
+
+build() {
+ cd "${srcdir}/${_basename}"
+ ./autogen.sh
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --with-x-toolkit=gtk3 \
+ --with-xft \
+ --with-wide-int \
+ --with-modules \
+ --with-cairo \
+ --with-harfbuzz \
+ --with-nativecomp \
+ --with-webrender
+ make -j8
+}
+
+package() {
+ cd "${srcdir}/${_basename}"
+ make DESTDIR="${pkgdir}/" install
+
+ # remove conflict with ctags package
+ mv "${pkgdir}/usr/bin/ctags" "${pkgdir}/usr/bin/ctags.emacs"
+ mv "${pkgdir}/usr/share/man/man1/ctags.1.gz" "${pkgdir}/usr/share/man/man1/ctags.emacs.1"
+
+ # fix user/root permissions on usr/share files
+ find "${pkgdir}/usr/share/emacs/${pkgver}" -exec chown root:root {} \;
+}