wok view lxterminal/receipt @ rev 24757

pkg-config: cheat configure
author Hans-G?nter Theisgen
date Fri Mar 18 06:53:58 2022 +0100 (2022-03-18)
parents 211713be9cab
children 3399d88bfd0e
line source
1 # SliTaz package receipt.
3 PACKAGE="lxterminal"
4 VERSION="0.3.2"
5 CATEGORY="utilities"
6 TAGS="LXDE terminal"
7 SHORT_DESC="LXDE terminal emulator."
8 MAINTAINER="gokhlayeh@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://wiki.lxde.org/en/LXTerminal"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
15 SUGGESTED="lxterminal-locales"
16 DEPENDS="gtk+ vte"
17 BUILD_DEPENDS="gtk+-dev intltool vte-dev vte-terminal"
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/lxde/files/LXTerminal%20%28terminal%20emulator%29/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed "/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 --prefix=/usr \
31 --infodir=/usr/share/info \
32 --mandir=/usr/share/man \
33 $CONFIGURE_ARGS &&
34 make -j 1 &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/share $fs/usr
46 # Remove man & locales
47 rm -rf $fs/usr/share/man
48 rm -rf $fs/usr/share/locale
49 }