jobextra/vala/PKGBUILD-arch

52 lines
1.2 KiB
Plaintext

# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Timm Preetz <timm@preetz.us>
pkgname=vala
pkgver=0.56.1
pkgrel=1
pkgdesc='Compiler for the GObject type system'
url='https://wiki.gnome.org/Projects/Vala'
arch=(x86_64)
license=(LGPL)
depends=(glib2 gtk-doc graphviz ttf-font pkg-config gcc)
makedepends=(libxslt vala git help2man autoconf-archive)
checkdepends=(dbus libx11 gobject-introspection)
provides=(valadoc libvala-${pkgver%.*}.so libvaladoc-${pkgver%.*}.so)
conflicts=(valadoc)
replaces=(valadoc)
options=(debug)
_commit=ef23c1bd93e5c4f3e52f87ef98e3cf7a833a18d9 # tags/0.56.1^0
source=("git+https://gitlab.gnome.org/GNOME/vala.git#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd vala
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd vala
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd vala
./configure --prefix=/usr
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
cd vala
make check
}
package() {
cd vala
make DESTDIR="$pkgdir" install
}
# vim:set sw=2 et: