wok-current annotate lgi/receipt @ rev 24618
updated gphoto2 (2.5.23 -> 2.5.28)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 07 09:50:09 2022 +0100 (2022-03-07) |
parents | 5ea0ce1cecc0 |
children |
rev | line source |
---|---|
al@16697 | 1 # SliTaz package receipt. |
al@16697 | 2 |
al@16697 | 3 PACKAGE="lgi" |
Hans-G?nter@21108 | 4 VERSION="0.9.2" |
al@16697 | 5 CATEGORY="development" |
Hans-G?nter@21108 | 6 SHORT_DESC="Dynamic Lua binding to GObject libraries using GObject-Introspection." |
al@16697 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@16697 | 8 LICENSE="MIT" |
al@16697 | 9 WEB_SITE="https://github.com/pavouk/lgi" |
Hans-G?nter@21108 | 10 |
al@16697 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@16697 | 12 WGET_URL="https://github.com/pavouk/lgi/archive/$VERSION.tar.gz" |
al@16697 | 13 |
al@16697 | 14 DEPENDS="glib gobject-introspection lua" |
Hans-G?nter@21108 | 15 BUILD_DEPENDS="gobject-introspection-dev lua-dev" |
al@16697 | 16 # add "cairo-dev gtk+-dev" for `make check` |
al@16697 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24299 | 20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
al@16697 | 24 # Rules to configure and make the package. |
al@16697 | 25 compile_rules() |
al@16697 | 26 { |
al@16697 | 27 # fix paths |
al@16697 | 28 sed -i 's|/usr/local|/usr|g;s|5.1|5.2|g;s|51|52|g' \ |
al@16697 | 29 $src/lgi/Makefile $src/lgi/core.lua $src/lgi/core.c |
Hans-G?nter@21108 | 30 |
al@16697 | 31 # `make check` after `make` produces error |
Hans-G?nter@21108 | 32 make -j 1 && |
al@16697 | 33 make PREFIX=/usr DESTDIR=$install install |
al@16697 | 34 } |
al@16697 | 35 |
al@16697 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@16697 | 37 genpkg_rules() |
al@16697 | 38 { |
al@16697 | 39 cp -a $install/* $fs |
al@16697 | 40 } |