[arch-commits] Commit in remacs/repos/community-x86_64 (PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Mon Mar 11 15:48:57 UTC 2019


    Date: Monday, March 11, 2019 @ 15:48:56
  Author: arodseth
Revision: 439774

archrelease: copy trunk to community-x86_64

Added:
  remacs/repos/community-x86_64/PKGBUILD
    (from rev 439773, remacs/trunk/PKGBUILD)

----------+
 PKGBUILD |   65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)

Copied: remacs/repos/community-x86_64/PKGBUILD (from rev 439773, remacs/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-03-11 15:48:56 UTC (rev 439774)
@@ -0,0 +1,65 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Chris Nixon <chris.nixon at sigma.me.uk>
+
+pkgname=remacs
+pkgver=0.0.0
+pkgrel=1
+pkgdesc='Emacs with parts of it written in Rust'
+arch=(x86_64)
+url='https://github.com/Wilfred/remacs.git'
+license=(GPL)
+depends=(gnutls gpm)
+makedepends=(cargo clang git rustup setconf)
+source=('git+https://github.com/Wilfred/remacs#commit=dc2ea22ddfa1ba077178ffab')
+sha256sums=('SKIP')
+
+prepare() {
+  cd "$pkgname"
+
+  ./autogen.sh
+
+  # Use full path to remacs and remacsclient
+  setconf etc/remacs.service ExecStart '/usr/bin/remacs --fg-daemon'
+  setconf etc/remacs.service ExecStop '/usr/bin/remacsclient --eval "(kill-emacs)"'
+}
+
+build() {
+  cd "$pkgname"
+
+  ./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --libexecdir=/usr/lib \
+    --localstatedir=/var \
+    --mandir=/usr/share/man \
+    --infodir=/usr/share/info \
+    --with-sound=no \
+    --with-modules \
+    --without-xft \
+    --without-gconf \
+    --without-gsettings \
+    --without-cairo \
+    --without-xwidgets \
+    --without-makeinfo \
+    --without-x \
+    --enable-link-time-optimization
+  make
+}
+
+package() {
+  make -C "$pkgname" DESTDIR="$pkgdir" install
+
+  # avoid conflicts with other packages
+  rm "$pkgdir/usr/"{bin/{ctags,etags,ebrowse},share/man/man1/{ctags,etags,ebrowse}.1.gz}
+  mv "$pkgdir/usr/share/man/man1/"{e,re}macs.1.gz
+  mv "$pkgdir/usr/share/man/man1/"{e,re}macsclient.1.gz
+  rm -r "$pkgdir/usr/share/info"
+
+  # skip /var/games, /usr/share/pixmaps and /usr/share/applications
+  rm -rf "$pkgdir/"{var/games,usr/share/{pixmaps,applications}}
+
+  # fix permissions
+  find "$pkgdir"/usr/share/remacs/ -exec chown root:root {} \;
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list