wok annotate automoc4/receipt @ rev 25076

Up marlin (886)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 14 08:17:07 2022 +0000 (2022-06-14)
parents 2a5cc8208d36
children 41a539cfe5f8
rev   line source
pankso@4042 1 # SliTaz package receipt.
pankso@4042 2
pankso@4042 3 PACKAGE="automoc4"
pankso@4042 4 VERSION="0.9.88"
pankso@4042 5 CATEGORY="x-window"
pankso@4042 6 SHORT_DESC="CMake automatic MOC Generation."
pankso@4042 7 MAINTAINER="pankso@slitaz.org"
pascal@15379 8 LICENSE="MIT"
pankso@4042 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@15379 10 WEB_SITE="http://www.kde.org/"
pascal@15379 11 WGET_URL="ftp://ftp.kde.org/pub/kde/stable/$PACKAGE/$VERSION/$TARBALL"
pascal@15379 12
pascal@4998 13 DEPENDS="cmake libQtCore gcc-lib-base"
pankso@4042 14 BUILD_DEPENDS="cmake qmake Qt4-dev"
pankso@4042 15
pascal@24759 16 # What is the latest version available today?
pascal@24759 17 current_version()
pascal@24759 18 {
pascal@24759 19 wget -O - https://github.com/KDE/automoc/tags 2>/dev/null | \
pascal@24759 20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24759 21 }
pascal@24759 22
pankso@4042 23 # Rules to configure and make the package.
pankso@4042 24 compile_rules()
pankso@4042 25 {
pankso@4042 26 cd $src
pankso@4042 27 cmake . -DCMAKE_INSTALL_PREFIX=/usr &&
pankso@4042 28 make &&
pascal@15379 29 make DESTDIR=$DESTDIR install
pankso@4042 30 }
pankso@4042 31
pankso@4042 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4042 33 genpkg_rules()
pankso@4042 34 {
pascal@15379 35 cp -a $install/usr $fs
pankso@4042 36 }