aboutsummaryrefslogtreecommitdiffstats
path: root/main/vala/APKBUILD
blob: 084982a6e019c0c8ec0d59d533da1cd8c8c053e0 (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
47
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=vala
pkgver=0.28.0
pkgrel=0
pkgdesc="Compiler for the GObject type system"
url="http://live.gnome.org/Vala"
arch="all"
license="LGPL2+"
subpackages="$pkgname-doc"
depends="glib-dev"
makedepends="libxslt-dev bash glib-dev flex bison"
source="http://download.gnome.org/sources/vala/${pkgver%.*}/vala-$pkgver.tar.xz
	version.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg "$i"; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la
}

md5sums="8d4ceac3451a0d5497e7be38e5e4c2ad  vala-0.28.0.tar.xz
99524c2de7df37c95f314709a041ac65  version.patch"
sha256sums="0d9e3bd3f82145664875f7c29b2f544ba92d2814f75412948f774c0727fc977f  vala-0.28.0.tar.xz
f9b8c4393e6a81f261bdd9a74cb41416736eb68365d03fc4e6889e305755f97d  version.patch"
sha512sums="4f9adc4a3e672c25b508f5193bb1984e848dcaca059c2eb733e93ca7f58b5d58028a56f4234a62baa30ff50b63d87af24510334eba41630692c5f16e580bad88  vala-0.28.0.tar.xz
2c999fb516dd6ed74cb05307c0725bb20d6112cd1a2427a742a9856e1167fe39f9a71253f4dd9d0f53a88a9f29229063e53262b8257f60a71d0cfb168e3f7eb8  version.patch"