summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: de0a488c08915005852a9b69224fa693a1fda4d2 (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=r358.8998a93
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')
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
}