summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0da0af85803c87e6b7347b2b6e1d8eb119ff024b (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
# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
# for more information on packaging from Mercurial(hg) sources.

# Maintainer: Your Name <youremail@domain.com>
pkgname=valabind-git
pkgver=20150603.305.cd4051f
pkgrel=1
pkgdesc="Tool to parse vala or vapi files to transform them into swig interface files, C++ source files, GIR or GEAR"
arch=('i686' 'x86_64')
url="https://github.com/radare/valabind"
license=('GPLv3')
makedepends=('git')
depends=('vala' 'swig')
conflicts=('valabind' 'valabind-hg')
provides=('valabind')

source=("$pkgname"::"git://github.com/radare/valabind.git")
md5sums=('SKIP')

pkgver () {
  cd "${srcdir}/${pkgname}"
  _date=`date +"%Y%m%d"`
  echo "$_date.$(git rev-list --count master).$(git rev-parse --short master)"
}

build() {
  cd ${srcdir}/${pkgname}
  make
}

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