summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 58a456055f49591db1e05b1ba165dfe7f85bdb8a (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
# Maintainer: awe00 < awe00 AT hotmail DOT fr>
pkgname=matcher-git
pkgver=1.0.0.r0.g6c54c26
pkgrel=1
pkgdesc="Intelligently searches through a list of file names for the one you were probably looking for."
arch=('i686' 'x86_64')
url="https://github.com/burke/matcher"
license=('BSD2')
makedepends=('git')
provides=('matcher')
conflicts=('matcher')
source=("git+https://github.com/burke/matcher" "matcher-git.patch")
md5sums=('SKIP' 'f96518bab54f9dd6b404bb7378a52b07')
_gitrepo=matcher

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

prepare() {
  cd "$_gitrepo"
  patch -p1 <../matcher-git.patch
}

build() {
  cd "$_gitrepo"
  make
}

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