summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0bb30de35f3c81788cea3c676cddb4d9eb5cb94c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: Ruijie Yu <first.last@outlook>

pkgname=emacs-named-daemon
pkgver=1.0.0
pkgrel=1
pkgdesc='Emacs server with named server session'
url=https://gnu.org/software/emacs/emacs.html
arch=(any)
license=(MIT)
depends=(emacs)
source=(@.sed)
b2sums=('e0a1dd069fe35fc16a6a2aa5712a9ebb95b4822d4836504d7cd827d7c0876c2e8e6c407dd666725593565ce30cb0f20aaa45c5cb9dd1def62cd693fbd47c1e52')

build() {
    cd "$srcdir"
    sed -f @.sed \
	/usr/lib/systemd/user/emacs.service \
	> emacs@.service
}

package() {
    cd "$srcdir"
    install -Dvm0644 \
	    emacs@.service \
	    -t "$pkgdir"/usr/lib/systemd/user/
    # mask emacs@server because the default server name is "server".
    ln -sv /dev/null \
       "$pkgdir"/usr/lib/systemd/user/emacs@server.service
}