summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 008a32026bf018a35d0e6effa2025f00bd9c9609 (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
# Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
# Original Maintainer: Ionut Biru <ibiru@archlinux.org>
# Contributor: Timm Preetz <timm@preetz.us>

pkgname=vala-git
pkgver=7142.cc038c1
pkgrel=1
pkgdesc="Compiler for the GObject type system"
arch=(i686 x86_64)
url="http://live.gnome.org/Vala"
license=(LGPL)
depends=(glib2)
makedepends=(git libxslt)
provides=("vala=0.28.0")
conflicts=(vala vala-devel)
options=(!libtool)
source=('git+git://git.gnome.org/vala')
sha512sums=('SKIP')

pkgver() {
  cd vala
  echo $(git rev-list --count master).$(git rev-parse --short master)
}

prepare() {
  cd vala

  git describe --tag | sed 's/-.*//g' > .tarball-version
}

build() {
  cd vala

  ./autogen.sh --prefix=/usr --enable-vapigen
  make
}

package() {
  cd vala

  make DESTDIR="${pkgdir}/" install
}