summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0f1ee72d18ea326dba795257ff25f82e9e395f36 (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
30
31
32
33
# Maintainer: Hauke Rehfeld <aur.archlinux.org@haukerehfeld.de>
pkgname=emacsclient-desktop-git
pkgver=r2.5bdd031
pkgrel=1
pkgdesc="A desktop file for emacsclient."
arch=('x86_64' 'i686')
depends=('emacs')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
url="https://github.com/hrehfeld/emacsclient-desktop"
source=("git+${url}.git")
noextract=()
md5sums=("SKIP")

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	# Git, no tags available
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	cd "$srcdir/${pkgname%-git}"
	git checkout master
}

package() {
    install -Dm755 "$srcdir/${pkgname%-git}/emacsclient.desktop" "$pkgdir/usr/share/applications/emacsclient.desktop"
}