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

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

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

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