void-packages/srcpkgs/lua54-lgi/template
q66 34dbb40587 lgi: add all lua versions, version package, disable checks
Also drop dump-typelib as it doesn't work out of box anyway
and is mostly just for development of lgi itself.
2020-07-01 18:20:24 +02:00

85 lines
1.9 KiB
Bash

# Template file for 'lua54-lgi'
pkgname=lua54-lgi
version=0.9.2
revision=4
wrksrc=lgi-${version}
hostmakedepends="pkg-config"
makedepends="libglib-devel libffi-devel lua51-devel lua52-devel lua53-devel
lua54-devel gobject-introspection gir-freedesktop"
depends="lua54 gir-freedesktop"
_desc="Lua binadings for gnome/gobject using gobject-introspection library"
short_desc="${_desc} (5.4.x)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/pavouk/lgi"
distfiles="https://github.com/pavouk/lgi/archive/$version.tar.gz"
checksum=cfc4105482b4730b3a40097c9d9e7e35c46df2fb255370bdeb2f45a886548c4f
# requires X11
do_check() {
:
}
post_patch() {
cd "${wrksrc}"
mkdir -p lua5.1
mv * lua5.1 || true
cp -a lua5.1 lua5.2
cp -a lua5.1 lua5.3
cp -a lua5.1 lua5.4
}
do_build() {
for luaver in 5.1 5.2 5.3 5.4; do
pushd lua${luaver}
make CC=$CC LUA_VERSION=${luaver} ${make_build_args} ${makejobs} \
LUA_CFLAGS=-I${XBPS_CROSS_BASE}/usr/include/lua${luaver}
popd
done
}
do_install() {
for luaver in 5.1 5.2 5.3 5.4; do
pushd lua${luaver}
make DESTDIR=${DESTDIR} PREFIX=/usr LUA_VERSION=${luaver} install
popd
done
vlicense lua5.4/LICENSE
}
lua51-lgi_package() {
depends="lua51 gir-freedesktop"
short_desc="${_desc} (5.1.x)"
pkg_install() {
vlicense "${wrksrc}/lua5.1/LICENSE"
vmove usr/lib/lua/5.1
vmove usr/share/lua/5.1
}
}
lua52-lgi_package() {
depends="lua52 gir-freedesktop"
short_desc="${_desc} (5.2.x)"
pkg_install() {
vlicense "${wrksrc}/lua5.2/LICENSE"
vmove usr/lib/lua/5.2
vmove usr/share/lua/5.2
}
}
lua53-lgi_package() {
depends="lua53 gir-freedesktop"
short_desc="${_desc} (5.2.x)"
pkg_install() {
vlicense "${wrksrc}/lua5.3/LICENSE"
vmove usr/lib/lua/5.3
vmove usr/share/lua/5.3
}
}
lgi_package() {
depends="lua53-lgi>=${version}_${revision}"
short_desc="${_desc} (5.3.x) (transitional dummy package)"
build_style=meta
}