wok view l3afpad/receipt @ rev 24497

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 19 14:19:02 2022 +0000 (2022-02-19)
parents 3e2db8247a86
children 7364ffdaaa60
line source
1 # SliTaz package receipt.
3 PACKAGE="l3afpad"
4 VERSION="0.8.18.1.11"
5 CATEGORY="utilities"
6 TAGS="text-editor"
7 SHORT_DESC="Simple text editor forked from Leafpad, supports GTK+ 3.x"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="LGPL2.1"
10 WEB_SITE="https://github.com/stevenhoneyman/l3afpad"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
15 DEPENDS="gtk+3"
16 BUILD_DEPENDS="autoconf automake gtk+3-dev"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 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 ./autogen.sh &&
28 ./configure \
29 --enable-gtkgrid \
30 --enable-search-history \
31 $CONFIGURE_ARGS &&
32 make &&
33 make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share/pixmaps
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/share/pixmaps/*.png $fs/usr/share/pixmaps
43 }