wok view 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 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mp"
4 VERSION="5.2.10"
5 CATEGORY="development"
6 SHORT_DESC="A text editor for programmers"
7 MAINTAINER="allan316@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://triptico.com/software/mp.html"
11 WGET_URL="https://triptico.com/download/mp/$TARBALL"
12 TAGS="text-editor"
14 DEPENDS="gtk+"
15 BUILD_DEPENDS="gtk+-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/ttcdt/mp-5.x/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 mkdir -p $DESTDIR/usr/bin
28 # sed -i 's/TRY_DRIVERS()/(0)/' mp_core.c
29 ./config.sh \
30 --prefix=/usr \
31 --without-qt4 \
32 $CONFIGURE_ARGS
33 make && make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/share/mp-5 $fs/usr/share
42 }