summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 32e7cf3b5a35cc690276e5aa08a272f2e3ad975e (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
# Maintainer: Kobus van Schoor <v dot schoor dot kobus at gmail dot com>
pkgname=dotgit
pkgver=1.4.3
pkgrel=1
pkgdesc="A comprehensive solution to managing your dotfiles"
url="http://github.com/Cube777/dotgit"
arch=('any')
depends=('git' 'bash' 'gnupg')
source=('git+https://github.com/Cube777/dotgit.git')
md5sums=('SKIP')

prepare()
{
	cd $pkgname
	git --work-tree . checkout -q tags/$pkgver
}

package()
{
	install -Dm 755 "$srcdir/dotgit/bin/dotgit" "$pkgdir/usr/bin/dotgit"
	cp -r "$srcdir/dotgit/bin/dotgit_headers" "$pkgdir/usr/bin/dotgit_headers"
	chmod 555 "$pkgdir/usr/bin/dotgit_headers"
	install -Dm644 "$srcdir/dotgit/bin/bash_completion" \
		"$pkgdir/usr/share/bash-completion/completions/dotgit"
}