summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d679757b6c143b7d7618f6cbbda706fc061b634b (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
38
# Maintainer: Nathan Kessler <nathant93@gmail.com>
_pkgname=dot-templater
pkgname=${_pkgname}-git
pkgver=r77.35a27dd
pkgrel=1
pkgdesc="Templates a folder of dotfiles, supporting feature flags and string substitutions"
arch=('i686' 'x86_64')
url="https://github.com/kesslern/dot-templater"
license=('MIT')
depends=('glibc')
makedepends=('git' 'cargo')
provides=("$pkgname")
conflicts=("$pkgname")
source=('git+https://github.com/kesslern/dot-templater')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/$_pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/$_pkgname"
	make
}

check() {
	cd "$srcdir/$_pkgname"
	make test
}

package() {
	cd "$srcdir/$_pkgname"
        mkdir -p "$pkgdir/usr/bin"
        mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
	make DESTDIR="$pkgdir/usr/bin" install
        cp LICENSE "$pkgdir/usr/share/licenses/$pkgname"
}