summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e0276ae627e2daa8f69008f65e61b03b332a441b (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
# Maintainer: Husam Bilal <husam212@gmail.com>

pkgname=dotfiles-git
_pkgname=dotfiles
pkgver=r374.9a1f55e
pkgrel=1
pkgdesc='A tool to make managing your dotfile symlinks in $HOME easy, allowing you to keep all of them in a single directory.'
url='https://github.com/jbernard/dotfiles'
license=('ISC')
arch=('any')
depends=('python' 'python-py' 'python-click')
makedepends=('git' 'python-setuptools')
conflicts=('dotfiles')
provides=('dotfiles')
source=('git+https://github.com/jbernard/dotfiles.git')
md5sums=('SKIP')

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

build() {
  cd "$srcdir/$_pkgname"
  python setup.py build
}

package() {
  cd "$srcdir/$_pkgname"
  python setup.py install --root=$pkgdir
}