summaryrefslogtreecommitdiff
path: root/arch/PKGBUILD
blob: af5503ea561cec264d1ea3ab2bc16a85a2a95a9a (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
39
# Maintainer: Pat Brisbin <pbrisbin@gmail.com>
_gitname=rcm
pkgname=$_gitname-git
pkgver=0.0.0
pkgrel=1
pkgdesc="rc file (dotfile) management"
arch=('any')
url="https://github.com/mike-burns/rcm"
license=('BSD')
makedepends=('git')
source=('git://github.com/mike-burns/rcm')
md5sums=('SKIP')

pkgver() {
  cd $_gitname

  git describe --always | sed 's|-|.|g'
}

build() {
  cd $_gitname

  aclocal
  automake --add-missing --copy
  autoconf

  ./configure --prefix=/usr
  make
}

package() {
  cd $_gitname

  make DESTDIR="$pkgdir/" install

  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_gitname/LICENSE"
}

# vim:set ts=2 sw=2 et: