wok annotate varka/receipt @ rev 25041

Up fatattr (1.0.1), puzzles (20220128)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 27 17:15:46 2022 +0000 (2022-05-27)
parents b75a8bca8ff9
children
rev   line source
pascal@15723 1 # SliTaz package receipt.
pascal@15723 2
pascal@15723 3 PACKAGE="varka"
pascal@15723 4 VERSION="0.1"
pascal@15723 5 CATEGORY="development"
pascal@15723 6 SHORT_DESC="A library on top of gtk to build applications"
pascal@15723 7 MAINTAINER="al.bobylev@gmail.com"
pascal@15723 8 LICENSE="GPL3"
pascal@15723 9 WEB_SITE="https://launchpad.net/varka"
pascal@15723 10 BRANCH="15"
pascal@15723 11 TARBALL="$PACKAGE-$BRANCH.tar.bz2"
pascal@15723 12 WGET_URL="bzr|lp:varka"
pascal@15723 13
pascal@15723 14 DEPENDS="gtk+3"
pascal@15723 15 BUILD_DEPENDS="bazaar cmake gobject-introspection-dev gtk+3-dev libgio-dev vala"
pascal@15723 16
pascal@24713 17 # What is the latest version available today?
pascal@24713 18 current_version()
pascal@24713 19 {
pascal@24713 20 wget -O - https://code.launchpad.net/varka 2>/dev/null | \
pascal@24713 21 sed '/varka\/[0-9]/!d;s|.*varka/||;s|/files.*||;q'
pascal@24713 22 }
pascal@24713 23
pascal@15723 24 # Rules to configure and make the package.
pascal@15723 25 compile_rules()
pascal@15723 26 {
pascal@20615 27 sed -i 's|.*xalign|//needs Gtk+3.16 &|' lib/GtkPatch/AboutDialog.vala
pascal@15723 28 export LDFLAGS="$LDFLAGS $(pkg-config --libs gio-unix-2.0 gmodule-2.0)"
pascal@15723 29 mkdir build && cd build
pascal@15723 30 cmake .. -DCMAKE_INSTALL_PREFIX=/usr && \
pascal@15723 31 make && \
pascal@15723 32 make DESTDIR=$install install
pascal@15723 33 }
pascal@15723 34
pascal@15723 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15723 36 genpkg_rules()
pascal@15723 37 {
pascal@15723 38 mkdir -p $fs/usr/lib
pascal@15723 39 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@15723 40 }