summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 06eb0a80613200e1d0665888788014ec035b8674 (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
34
35
36
37
# Maintainer: Hauke Rehfeld <aur.archlinux.org@haukerehfeld.de>
pkgname=mu-systemd-git
pkgver=r1.035d74b
pkgrel=1
pkgdesc="User systemd service and timer for mu mail indexing."
arch=('x86_64' 'i686')
url="https://github.com/hrehfeld/mu-systemd"
depends=('mu')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
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() {
	for f in "mu.service" "mu.timer"
	do
		install -Dm755 "$srcdir/${pkgname%-git}/$f" "$pkgdir/etc/systemd/user/$f"
	done
}