wok annotate mp/receipt @ rev 24727
cookutils: add repo-cooking (used by tank)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 15 10:59:31 2022 +0000 (2022-03-15) |
parents | 6e8b1bcb30e2 |
children | e1a8d87ac28c |
rev | line source |
---|---|
allan316@3208 | 1 # SliTaz package receipt. |
allan316@3208 | 2 |
allan316@3208 | 3 PACKAGE="mp" |
psychomaniak@18537 | 4 VERSION="5.2.10" |
allan316@3208 | 5 CATEGORY="development" |
allan316@3208 | 6 SHORT_DESC="A text editor for programmers" |
allan316@3208 | 7 MAINTAINER="allan316@gmail.com" |
pascal@15353 | 8 LICENSE="GPL2" |
allan316@3208 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20671 | 10 WEB_SITE="https://triptico.com/software/mp.html" |
pascal@20671 | 11 WGET_URL="https://triptico.com/download/mp/$TARBALL" |
al@17501 | 12 TAGS="text-editor" |
allan316@3208 | 13 |
pascal@15353 | 14 DEPENDS="gtk+" |
pascal@17675 | 15 BUILD_DEPENDS="gtk+-dev" |
pascal@15353 | 16 |
pascal@24453 | 17 # What is the latest version available today? |
pascal@24453 | 18 current_version() |
pascal@24453 | 19 { |
pascal@24453 | 20 wget -O - https://github.com/ttcdt/mp-5.x/tags 2>/dev/null | \ |
pascal@24453 | 21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24453 | 22 } |
pascal@24453 | 23 |
allan316@3208 | 24 # Rules to configure and make the package. |
allan316@3208 | 25 compile_rules() |
allan316@3208 | 26 { |
pascal@15353 | 27 mkdir -p $DESTDIR/usr/bin |
psychomaniak@18537 | 28 # sed -i 's/TRY_DRIVERS()/(0)/' mp_core.c |
pankso@4829 | 29 ./config.sh \ |
pankso@4829 | 30 --prefix=/usr \ |
pankso@4829 | 31 --without-qt4 \ |
pankso@4829 | 32 $CONFIGURE_ARGS |
pascal@15353 | 33 make && make DESTDIR=$DESTDIR install |
allan316@3208 | 34 } |
allan316@3208 | 35 |
allan316@3208 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
allan316@3208 | 37 genpkg_rules() |
allan316@3208 | 38 { |
allan316@3208 | 39 mkdir -p $fs/usr/share |
pascal@15353 | 40 cp -a $install/usr/bin $fs/usr |
pascal@15353 | 41 cp -a $install/usr/share/mp-5 $fs/usr/share |
allan316@3208 | 42 } |