summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 22ad6d1472f3f6a07c95af4e510c4f87a509d665 (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
# Maintainer: Franek Madej <franek.madej@gmail.com>
pkgname=yadm-git
pkgver=1.07.r1.ga78fe20
pkgrel=1
pkgdesc="Yet Another Dotfiles Manager"
arch=('any')
url="https://github.com/TheLocehiliosan/yadm"
license=('GPL')
groups=()
depends=()
makedepends=('git')
optdepends=()
provides=('yadm')
conflicts=('yadm')
backup=()
options=()
install=
changelog=
source=("${pkgname}::git+https://github.com/TheLocehiliosan/yadm#branch=master")
noextract=()
md5sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe  --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

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

package() {
  cd $srcdir/$pkgname
  install -D -m 755 yadm $pkgdir/usr/bin/yadm
  install -D -m 644 yadm.1 $pkgdir/usr/share/man/man1/yadm.1
}