protobuf-vala: fix cross

This commit is contained in:
Đoàn Trần Công Danh 2021-01-24 17:41:07 +07:00
parent e8014b4af1
commit ea7fc9a0fb

View file

@ -1,21 +1,27 @@
# Template file for 'protobuf-vala'
pkgname=protobuf-vala
version=0.1.0
revision=2
revision=3
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="protobuf"
makedepends="pkg-config libgee08-devel protobuf-devel vala-devel"
hostmakedepends="protobuf pkg-config vala"
makedepends="libgee08-devel protobuf-devel vala-devel"
depends="pkg-config glib-devel"
short_desc="A plugin for the Google protocol buffer compiler to generate Vala code"
short_desc="Plugin for the Google protocol buffer compiler to generate Vala code"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3"
license="GPL-3.0-only"
homepage="http://launchpad.net/protobuf-vala/"
distfiles="${homepage}/trunk/${version}/+download/${pkgname}-${version}.tar.xz"
checksum=c12547813fa22ee2b15967f17146b08e2a4d90800810fe63730332aea6777c48
disable_parallel_build=yes
post_patch() {
if [ "$CROSS_BUILD" ]; then
vsed -i -e '/^noinst_PROGRAMS/s/=.*/=/' src/Makefile.in
fi
}
libprotobuf-vala_package() {
short_desc+=" - shared library"
pkg_install() {