summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3b83f25656887a64c2de879583d7f5c685c1658d (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
40
41
42
43
44
45
46
# Maintainer: Alberto Fanjul <albertofanjul@gmail.com>
pkgname=git-ignore-tool-git
_name=git-ignore-tool
pkgver=1.0.r0.g97a8a37
pkgrel=1
pkgdesc="Easy configuration of git ignored files"
arch=('i686' 'x86_64')
url="https://github.com/albfan/git-ignore"
license=('GPL')
makedepends=(git pkgconf)
provides=("git-ignore-tool-git")
conflicts=("git-ignore-tool")
source=("$_name::git+https://github.com/albfan/git-ignore.git#branch=master"
        "sharness::git+https://github.com/mlafeldt/sharness.git")
md5sums=('SKIP'
         'SKIP')

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

prepare() {
  cd "$srcdir/$_name"
  git submodule init
  git config submodule.t/sharness.url $srcdir/sharness
  git submodule update
}

build() {
  cd "$srcdir/$_name"
  ./autogen.sh
  ./configure --prefix=/usr
  make
}

check() {
  cd "$srcdir/$_name"
  make check
}

package() {
  cd "$srcdir/$_name"
  make DESTDIR="$pkgdir/" install
}